Created
February 25, 2014 23:02
-
-
Save soloman1124/9219867 to your computer and use it in GitHub Desktop.
ElasticSearch API Pagination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // request url: http://supporter.dev/api/v2/search/charities?q=is%20a&page=2&page_size=2 | |
| { | |
| "charities": [ | |
| { | |
| "id": 6403, | |
| "name": "1 STEP 2 HOPE", | |
| "slug": "1-step-2-hope", | |
| "cause_ids": [ | |
| 16 | |
| ], | |
| "country_code": "us", | |
| "description": null, | |
| "logo_url": null, | |
| "url": "http://localhost:3000/charity/view?charity=273949762", | |
| "active": true, | |
| "campaign_uids": [ | |
| "au-0", | |
| "us-0", | |
| "us-d0731eeb-3080-47e5-9dd5-983b674ce9d6" | |
| ], | |
| "kyc_status": "pending", | |
| "claimed": false, | |
| "tax_number": "273949762", | |
| "street_address": "3600 ESTACADO LN", | |
| "locality": "PLANO", | |
| "region": "Texas", | |
| "_score": 0.00024623884, | |
| "_type": "charity", | |
| "_sort": null | |
| }, | |
| { | |
| "id": 6404, | |
| "name": "1 WISER CONSUMER EDUCATION INC", | |
| "slug": "1-wiser-consumer-education-inc", | |
| "cause_ids": [], | |
| "country_code": "us", | |
| "description": null, | |
| "logo_url": null, | |
| "url": "http://localhost:3000/charity/view?charity=273842735", | |
| "active": true, | |
| "campaign_uids": [ | |
| "au-0", | |
| "us-0", | |
| "us-d0731eeb-3080-47e5-9dd5-983b674ce9d6" | |
| ], | |
| "kyc_status": "pending", | |
| "claimed": false, | |
| "tax_number": "273842735", | |
| "street_address": "PO BOX 191", | |
| "locality": "KRUM", | |
| "region": "Texas", | |
| "_score": 0.00024623884, | |
| "_type": "charity", | |
| "_sort": null | |
| } | |
| ], | |
| "meta": { | |
| "facets": {}, | |
| "pagination": { | |
| "current_page": 2, | |
| "count": 36, | |
| "total_pages": 19, | |
| "first_page": false, | |
| "last_page": false | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment