Expedia Ad
Usar em massa com o DataflowExecute este endpoint sobre um arquivo ou uma lista, uma vez ou com agendamento.
Fetch one Expedia hotel from its information URL: name, postal address, and amenity groups.
Credit cost: 2 credits per call
ApiKeyAuthx-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-Informationfields?stringComma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).
is_async?booleanRun the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.
falsesoft_fail?booleanReturn HTTP 200 even when the request fails; the error is in the error field of the body.
falseSuccessful response
application/json- response
url?stringname?stringaddress?hotel_id?stringamenities?array<>curl -X GET 'https://api.piloterr.com/v2/expedia/ad?query=string'{
"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"
]
}
]
}