sg.trip.com API
trip.com
Trip.com — global online travel agency. Public-API actions for hotel and flight search, city lookup, and flight comfort/amenity details. No auth required.
- Actions
- 4
- Category
- Travel
- Login
- Some actions
- Output
- JSON
Call the sg.trip.com API
Submit a task, then poll the job until it settles. This example runs act_trip_com_flight_comfort.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_trip_com_flight_comfort",
"params": {
"flight_no": "AA302",
"departure_city": "NYC",
"arrival_city": "LAX",
"departure_date": "2026-11-21"
}
}'4 actions on trip.com
Read
Flight Comfort
act_trip_com_flight_comfortread1 credit / callComfort details for a Trip.com flight: aircraft type, seat pitch, wifi, power and meals.
- flight_no
- string · required
- departure_city
- string · required
- arrival_city
- string · required
- departure_date
- string · required
Hotel Search
trip_hotel_searchread1 credit / callSearch hotels in a city for a date range.
- city_id
- string · required
- check_in
- string · required
- check_out
- string · required
- adults
- integer
- children
- integer
- rooms
- integer
- page
- integer
- page_size
- integer
- seen_hotel_ids
- string
Search Cities
act_trip_com_search_citiesread1 credit / callAutocomplete Trip.com cities, airports and hotels by keyword, returning id, name, type, country and IATA code.
- keyword
- string · required
- locale
- string
- currency
- string
Trip.com Flight Search
trip_flight_searchread1 credit / callSearch flights on sg.trip.com by route, date, passengers (SGD).
- from_city
- string · required
- to_city
- string · required
- depart_date
- string · required
- return_date
- string
- adults
- integer
- children
- integer
- infants
- integer
- cabin_class
- string
- sort_by
- string
sg.trip.com API questions
- Is there an API for sg.trip.com?
- sg.trip.com does not offer a public data API for this, but Anakin Wire provides 4 maintained endpoints for trip.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape sg.trip.com data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when trip.com changes its markup, Anakin updates the action.
- Do I need a sg.trip.com account?
- Some sg.trip.com actions read data that is only visible when signed in, so those need a credential you connect once. Actions marked "read" without a login requirement run anonymously.
- What does the sg.trip.com API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Travel APIs
AAT Kings
ADS-B Exchange
ADS-B Exchange - live flight tracking, aircraft positions, route history, and details.
Aer Lingus
Aer Lingus post-travel enquiry and compensation claim form definition
Aeromexico
Aeromexico - flight and fare search, schedules, flight status, and destinations.
Afar
Travel destination guides, articles, and curated itineraries.
Agoda
Agoda - travel platform for hotels, vacation rentals, flights, and tours.