Tripadvisor Check Hotel Availability Example
Tripadvisor Check Hotel Availability Example is an example object payload from Tripadvisor, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
Example Payload
{
"request": {
"method": "POST",
"url": "https://api.partner-example.com/availability",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"X-TripAdvisor-API-Key": "{tripadvisor_api_key}"
},
"body": {
"api_version": 8,
"query_key": "query-abc123",
"check_in": "2024-07-15",
"check_out": "2024-07-18",
"num_adults": 2,
"num_children": 0,
"currency_code": "USD",
"user_country": "US",
"hotel_ids": ["hotel_12345", "hotel_67890"],
"device_type": "desktop"
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"api_version": 8,
"query_key": "query-abc123",
"hotels": [
{
"hotel_id": "hotel_12345",
"available": true,
"room_types": [
{
"room_type_id": "standard_king",
"name": "Standard King Room",
"description": "Spacious room with king bed, city view, and modern amenities.",
"total_price": {
"amount": "450.00",
"currency": "USD"
},
"price_per_night": {
"amount": "150.00",
"currency": "USD"
},
"cancellation_policy": "Free cancellation until 48 hours before check-in",
"breakfast_included": false,
"max_occupancy": 2,
"booking_url": "https://partner-booking.example.com/book?room=standard_king&hotel=hotel_12345&checkin=2024-07-15&checkout=2024-07-18"
}
]
},
{
"hotel_id": "hotel_67890",
"available": false,
"reason": "no_availability"
}
]
}
}
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/examples/tripadvisor-check-hotel-availability-example"
curl "https://apis.io/api/v1/examples?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.