POST
/
meta
/
search_targeting_locations
Search Targeting Locations
curl --request POST \
  --url https://public.plai.io/meta/search_targeting_locations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "query": "<string>"
}'
{
  "success": true,
  "results": {
    "success": true,
    "locations": [
      {
        "key": "<string>",
        "name": "<string>",
        "region": "<string>",
        "country_name": "<string>",
        "type": "<string>",
        "country_code": "<string>",
        "region_id": 123,
        "supports_region": true,
        "supports_city": true
      }
    ],
    "error": "<string>"
  }
}

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
query
string
required
Location Search Query, for example: New York

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object