POST
/
gads
/
get_location_id
Get Location Id
curl --request POST \
  --url https://public.plai.io/gads/get_location_id \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "location": "<string>"
}'
{
  "success": true,
  "results": {
    "success": true,
    "locationId": "<string>",
    "error": "<string>"
  }
}

Request Body

location
string
required
Name of the location to search for its corresponding locationId.Example: "Grand Canyon, Arizona"

Response

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