1. Create a token
Open API Tokens, create a token withlocation:read, and copy the token shown. Location endpoints also require API access on the project, available on the Business plan.
Set the token in the terminal where you will run your integration:
Terminal
YOUR_TOKEN with your token. Keep it on your server, in an environment variable or secret manager. Do not include it in public browser JavaScript or your repository. See authentication for permissions and revocation.
Test in your browser
- Open List projects and click Try it beside the endpoint URL.
- Paste the token into Authorization without the
Bearerprefix, then click Send. - Check for
200 OKand adataarray. Copy theidof the project you want to use. - Open List locations, click Try it, enter the project ID, and click Send. Expect
200 OKwithdata,linksandmeta.
2. Find your project ID
Choose your language and run the request below. Save JavaScript asrequest.mjs and run node request.mjs; save PHP as request.php and run php request.php. cURL runs directly in your terminal.
200 with a data array. Choose the project you intend to manage; do not assume the first one is correct.
Example response
id, kept as a string. Set it in the same terminal:
Terminal
3. Read locations
data, links and meta. data is an array, including when there is one location. A project with no locations returns an empty array. This request reads the first page; use the pagination guide to read every page.
If your request fails
The error reference explains field validation and safe retries. JavaScript and PHP examples report the HTTP status and error body instead of treating an API error as success.
Build your integration
Sync location updates
Read every page, preview changes and apply them with PATCH.
API reference
Find methods, field names, filters and response formats.