Get Location allowlist IDs

Get Location allowlist IDs, in ascending order, one cursor-paginated page at a time.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

🚧 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.

ParameterTypeRequiredDescription
sizeintegerNoMaximum IDs per page, 1 to 1000. Defaults to 1000.
cursorstringNoThe 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_cursor is opaque. Send it back unchanged and never parse or construct it.
  • When next_cursor is absent, you have reached the last page.
  • A page can hold fewer IDs than size while next_cursor is 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)NowAction
page query parametercursor query parameterSend the previous response's next_cursor instead of a page number
size query parametersize, maximum 1000Keep it, at 1000 or below
sort query parameterRemoved; always ascending by IDDrop it. It is ignored
pagination.pageRemovedStop reading it
pagination.total_elementsRemovedCount IDs as you page, if you need a total
pagination.total_pagesRemovedLoop until next_cursor is absent
—pagination.next_cursor (new)Read it to request the next page

Related

Query Params
int32
1 to 1000
Defaults to 1000

maximum number of IDs to return (between 1 and 1000, defaults to 1000)

string

the pagination.next_cursor of the previous page; omit it to start from the beginning

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json