Trip Com Scraper

ENDPOINTS
GET/destinations/search

Search Destinations

Turn a city, landmark or hotel name into the Trip.com city ID that Search Hotels takes, plus country and time zone.

QUERY PARAMS

City, landmark or hotel name to look up. A landmark or hotel name returns its city plus the keyword that narrows Search Hotels to it.

Examples:

  • Las Vegas
  • Eiffel Tower
{
  "query": "Las Vegas",
  "count": 4,
  "results": [
    {
      "id": 26282,
      "type": "city",
      "name": "Las Vegas",
      "country": "United States",
      "country_id": 66,
      "timezone_offset_seconds": -28800,
      "keyword": null,
      "link": "https://www.trip.com/hotels/list?city=26282"
    },
    {
      "id": 59401,
      "type": "city",
      "name": "La Vega",
      "country": "Colombia",
      "country_id": 37,
      "timezone_offset_seconds": -18000,
      "keyword": null,
      "link": "https://www.trip.com/hotels/list?city=59401"
    },
    {
      "id": 43964,
      "type": "city",
      "name": "Las Vegas",
      "country": "United States",
      "country_id": 66,
      "timezone_offset_seconds": -25200,
      "keyword": null,
      "link": "https://www.trip.com/hotels/list?city=43964"
    },
    {
      "id": 75017,
      "type": "city",
      "name": "La Vega",
      "country": "Dominican Republic",
      "country_id": 276,
      "timezone_offset_seconds": -14400,
      "keyword": null,
      "link": "https://www.trip.com/hotels/list?city=75017"
    }
  ]
}