Expedia Ad
GET
Fetch one Expedia hotel from its information URL: name, postal address, and amenity groups.
Credit cost: 2 credits per call
ApiKeyAuthheader
x-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringAn Expedia hotel information URL. The response is one flat hotel. hotel_id comes from .h{id}.Hotel-Information when that pattern is in the URL, and is null otherwise. A destination, a non-Expedia URL, or an empty value returns 400.
Hotel URL
https://www.expedia.com/New-York-Hotels-Hilton-New-York-Fashion-District.h3117215.Hotel-InformationSuccessful response
application/json- response
url?stringname?stringaddress?hotel_id?stringamenities?array<>curl -X GET 'https://api.piloterr.com/v2/expedia/ad?query=string'Example Response
{ "url": "https://www.expedia.com/New-York-Hotels-Hilton-New-York-Fashion-District.h3117215.Hotel-Information", "name": "Hilton New York Fashion District", "address": { "city": "New York", "region": "NY", "street": "152 W 26th Street", "country": "USA", "postal_code": "10001" }, "hotel_id": "3117215", "amenities": [ { "name": "Internet", "items": [ "Available in all rooms: Free WiFi" ] } ]}