Get Location allowlist IDs, in ascending order, one cursor-paginated page at a time.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
🚧 Changed on 28 October 2026: cursor-based pagination
This endpoint now uses cursor-based pagination on all versions, including version=1. The previous page-based response fields (page, total_elements, total_pages) are no longer returned, and the page and sort query parameters are ignored. This change was released without advance notice. See the October 2026 release note for details.
Get Allowlist requests
A Get Allowlist request returns the Tripadvisor Location IDs your key is licensed to retrieve. This is the set the Location endpoints and your feeds honor.
| Parameter | Type | Required | Description |
|---|---|---|---|
size | integer | No | Maximum IDs per page, 1 to 1000. Defaults to 1000. |
cursor | string | No | The pagination.next_cursor value from the previous response. Omit it to get the first page. |
IDs are always returned in ascending order.
Get Allowlist responses
{
"data": [187147, 188151, 190420],
"pagination": {
"size": 1000,
"next_cursor": "djE6MTkwNDIw"
}
}next_cursoris opaque. Send it back unchanged and never parse or construct it.- When
next_cursoris absent, you have reached the last page. - A page can hold fewer IDs than
sizewhilenext_cursoris still present. Keep paging until it is absent. - The response does not include a total count. To count your allowlist, page through to the end.
Reading the whole allowlist
curl "https://terra.tripadvisor.com/api/allowlist?version=1&size=1000"
-H "X-API-Key: API_KEY"
then, for each following page:
curl "https://terra.tripadvisor.com/api/allowlist?version=1&size=1000&cursor=NEXT_CURSOR"
-H "X-API-Key: API_KEY"
Migrating from page-based pagination
| Before (until 27 Oct 2026) | Now | Action |
|---|---|---|
page query parameter | cursor query parameter | Send the previous response's next_cursor instead of a page number |
size query parameter | size, maximum 1000 | Keep it, at 1000 or below |
sort query parameter | Removed; always ascending by ID | Drop it. It is ignored |
pagination.page | Removed | Stop reading it |
pagination.total_elements | Removed | Count IDs as you page, if you need a total |
pagination.total_pages | Removed | Loop until next_cursor is absent |
| — | pagination.next_cursor (new) | Read it to request the next page |