Locations
List locations
Read a paginated list with supported filters and optional relationships.
GET
Requires
Omit an include flag or use
Keep the same filters and include flags on every page. An empty result has
location:read and project API access. Returns a data array with pagination links and meta.
string
required
The public project ID returned by List projects.
number
default:"1"
Positive integer page number to retrieve.
number
default:"15"
Integer page size from 1 to 100; larger values use the default size.
number
Send
1 to include the hours object, or null if there is no schedule.number
Send
1 to include the filters array.number
Send
1 to include the custom-fields array.number
Send
1 to include the calls-to-action array.0 to leave that relationship out. Use numeric 1/0, rather than the string false.
JavaScript examples run in Node.js 22 or later; PHP examples require PHP 8.2 or later with cURL. Both read STOREROCKET_TOKEN from your environment. See the quickstart for setup.
Supported filters
Use bracket notation, such as
city[eq]=Seattle or name[like]=Downtown. like matches a substring. Supplied filters are combined.
The query field is postalCode, although the location response uses postcode. Plain city=Seattle, postcode=98101, and visible are not supported list filters.
Use --data-urlencode in curl for bracketed parameters.
Response
Each element ofdata uses the location response format. Follow links.next until it is null, or use meta.current_page and meta.last_page.
The example below uses limit=1 with two locations. Location fields and meta.links are shortened for readability; the request example above uses limit=25 and filters.
"data": []; stop once links.next is null. The sync guide includes a working pagination loop.
Errors: 401 authentication, 403 access/permission, 404 inaccessible project, 429 rate limit. See errors.