Scraper · OTA

Cleartrip Hotels

Per-room, per-rate prices as Cleartrip shows them, plus the hotel's profile and a destination walk. Cleartrip is the sixth hotel OTA on the shared endpoints — no new paths. Submit a job, receive a job_id, poll for the result.

POST/api/v1/scraper/ota-price/— submit
GET/api/v1/scraper/ota-price/{job_id}/— poll

Base URL: https://api.scrapeguys.com · Auth: X-API-Key: gsk_… · See the Overview.

Shared endpoints. Set "ota": "cleartrip" (aliases ct, cleartrip.com, or the numeric channel code 6) on the endpoints you already call. The envelope is the same as the other hotel OTAs; this page documents what is Cleartrip-specific.
Availability: Cleartrip hotels are enabled per key. A key needs the matching scope (table below) or gets 403 {"detail": "This API key does not have the 'ota:cleartrip' scope."}; where Cleartrip is not enabled for you, you get 400 before any job is created. Contact us to enable it.

Where Cleartrip is available

EndpointCleartripScope
/ota-price/, /cheapest-room/Rooms × rates, per room / per night, before tax; tax split per rateota:cleartrip
/hotel-details/Profile (rating, amenities, images, rules, policies) and room catalogue, no pricesdetails:cleartrip
/destination-search/Destination walk, enabled separatelydestination:cleartrip
/rate-shop/Not offered—

GET /otas/ lists Cleartrip with code 6 and the endpoints it actually offers to your key.

Submit a job

FieldTypeRequiredDefaultNotes
otastringRequired on /ota-price/—"cleartrip", "ct", "cleartrip.com" or code 6.
hotel_name, citystringConditional—Required together unless ota_hotel_id is given.
ota_hotel_idstringOptional""Cleartrip's numeric hotel id (e.g. 4290277). A slug, a cleartrip.com/hotels/details/… URL, or the cleartrip.com/hotels/results?hotelId=… link Google Hotels shows is accepted too and read down to the id. A Cleartrip link may run to 1,000 characters (other OTAs' ids: 128); one longer than 128 is echoed back as the numeric id, and the link's own stay and party are not read — your request's are priced. An id or link that cannot be a Cleartrip hotel id is a 400; an unknown id returns quickly with a "no listing for hotel …" message.
check_in, check_outdateRequired—YYYY-MM-DD; not past, ≤ 1 year ahead; ≤ 30 nights.
adultsintOptional2Party total across all rooms.
roomsintOptional11–6. Above 6 is a 400 under rooms. Prices stay per room: the exact party is requested (adults split as evenly as they go, so 3 adults in 2 rooms is 2 + 1) and the total divided by rooms.
children_agesint[]Optional[]One age per child. At most 2 children per room (and 4 adults); a party that cannot be seated is a 400 before any job runs. Children go to the rooms with fewer adults first. On destination search, a child aged 0 is searched as 1 (Cleartrip takes ages 1–17).
device_typestringOptionaldesktopdesktop or mobile; echoed. app_android is rejected with a 400.
POST /api/v1/scraper/ota-price/ — Cleartrip
curl -X POST https://api.scrapeguys.com/api/v1/scraper/ota-price/ \ -H "X-API-Key: gsk_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "ota": "cleartrip", "ota_hotel_id": "4290277", "check_in": "2026-12-15", "check_out": "2026-12-17", "adults": 2, "rooms": 1 }'

The 202 Accepted body and polling are identical to the other OTAs: poll poll_url until status is completed or failed.

Response

The result is the shared room_types[] → offers[] structure (see the response schema). Cleartrip-specific points:

Hotel details and destination search

POST /hotel-details/ with "ota": "cleartrip" returns the hotel profile — rating, amenities, images, rules, policies — and the room catalogue, without prices. Review texts are not included. The room list covers one night, and the failure flags and incomplete sections say what was not delivered. Photos are capped at 60, shared across gallery sections. POST /destination-search/ with "ota": "cleartrip" walks a destination's hotels (unplaceable or made-up text is refused as an unresolved destination; star_ratings and sort=bayesian_review_score are supported; cards carry is_ad, country_code and landmark distance); see the Destination Search guide.

Result outcomes

Cleartrip-specific notes