Skip to content
SynupAPI
Get an API key
GETapi.synup.com/api/v4/tags/locations

List locations by tags

This API retrieves locations associated with specified tags and supports pagination for efficient data retrieval.

Features:

  • Supports cursor-based pagination for navigating large datasets.
  • Allows filtering by archived/unarchived locations.
  • Returns detailed location information, including business details and metadata.
Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Query

NameTypeRequiredDescription
tagsarrayrequiredArray of tag names to filter locations by
archivedbooleanoptional

Filter for archived status:

  • If omitted - returns all locations
  • If false - returns only unarchived locations
  • If true - returns only archived locations
afterstringoptionalCursor for pagination - fetch records after this cursor
beforestringoptionalCursor for pagination - fetch records before this cursor
firstintegeroptionalNumber of records to fetch from the beginning
lastintegeroptionalNumber of records to fetch from the end

Request

Request
curl -X GET 'https://api.synup.com/api/v4/tags/locations?tags=&archived=&after=&before=&first=&last=' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200Successfully retrieved locations
400Bad request - Invalid parameters
401Unauthorized - Authentication required
403Forbidden - Insufficient permissions
Example response
{
  "data": {
    "searchLocationsByTag": {
      "edges": [
        {
          "cursor": "TG9jYXRpb246NzMzMzA=",
          "node": {
            "name": "test test",
            "id": "TG9jYXRpb246NzMzMzA="
          }
        },
        {
          "cursor": "TG9jYXRpb246NzMzMTI=",
          "node": {
            "name": "Bombay Cocktail Bar",
            "id": "TG9jYXRpb246NzMzMTI="
          }
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "total": 3
      }
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.searchLocationsByTagobjectoptional
data.searchLocationsByTag.edgesarray of objectoptionalArray of location edges containing cursor and node data
data.searchLocationsByTag.edges[].cursorstringoptionalPagination cursor for this location
data.searchLocationsByTag.edges[].nodeobjectoptional
data.searchLocationsByTag.edges[].node.idstringoptionalUnique identifier for the location
data.searchLocationsByTag.edges[].node.namestringoptionalName of the location
data.searchLocationsByTag.pageInfoobjectoptionalPagination metadata
data.searchLocationsByTag.pageInfo.hasNextPagebooleanoptionalIndicates if there are more results after this page
data.searchLocationsByTag.pageInfo.hasPreviousPagebooleanoptionalIndicates if there are more results before this page
data.searchLocationsByTag.pageInfo.totalintegeroptionalTotal number of locations matching the query