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
- 2
- 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 trip_hotel_search.
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": "trip_hotel_search",
"params": {
"city_id": "725",
"check_in": "2026-07-20",
"check_out": "2026-07-23"
}
}'2 actions on trip.com
Read
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
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 2 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
ADS-B Exchange
ADS-B Exchange - live flight tracking, aircraft positions, route history, and details.
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.
Airbnb
Airbnb - stay search by destination and dates with full property details.
Airbnb Portugal
Airbnb Portugal - stay search, listings, pricing, availability, and reviews.