Piloterr

Expedia Ad

GET
/v2/expedia/ad

Fetch one Expedia hotel from its information URL: name, postal address, and amenity groups.

Credit cost: 2 credits per call

Authorization

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Query Parameters

query*string

An 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-Information

Response Body

Successful response

application/json
  1. response
url?string
name?string
address?
hotel_id?string
amenities?array<>
Example Request
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"      ]    }  ]}