Skip to main content
POST
/
api
/
ubersuggest
/
locations
/
search
/ubersuggest/locations/search
curl --request POST \
  --url https://api.anysite.io/api/ubersuggest/locations/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "query": "<string>",
  "count": 2,
  "timeout": 300,
  "lang": "en"
}
'
[
  {
    "id": 123,
    "name": "<string>",
    "@type": "@ubersuggest_location",
    "parent_id": 123,
    "is_country": false
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
query
string
required

Location name to search for, e.g. a country, region or city

Minimum string length: 1
Examples:

"united states"

"germany"

"london"

count
integer
required

Max number of results

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
lang
enum<string>
default:en

Interface language for location names

Available options:
en,
es,
de,
fr,
it,
pt,
nl,
pl,
ru,
ja,
hi

Response

Successful Response

id
integer
required
name
string
required
@type
string
default:@ubersuggest_location
parent_id
integer | null
is_country
boolean
default:false