Skip to main content
POST
/
api
/
trip
/
destinations
/
search
/trip/destinations/search
curl --request POST \
  --url https://api.anysite.io/api/trip/destinations/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "name": "<string>",
    "@type": "@trip_destination",
    "id": 123,
    "type": "<string>",
    "description": "<string>",
    "city_id": 123,
    "city_name": "<string>",
    "district_name": "<string>",
    "province_id": 123,
    "province_name": "<string>",
    "country_id": 123,
    "country_name": "<string>",
    "latitude": 123,
    "longitude": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Destination keyword to resolve, e.g. a city, district, or landmark name

Minimum string length: 1
Examples:

"New York"

"Tokyo"

"Manhattan"

count
integer
required

Max number of destinations to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

name
string
required
@type
string
default:@trip_destination
id
integer | null
type
string | null
description
string | null
city_id
integer | null
city_name
string | null
district_name
string | null
province_id
integer | null
province_name
string | null
country_id
integer | null
country_name
string | null
latitude
number | null
longitude
number | null