Piloterr

Expedia Ad

Usar em massa com o DataflowExecute este endpoint sobre um arquivo ou uma lista, uma vez ou com agendamento.

GET
/v2/expedia/ad

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

Credit cost: 2 credits per call

Autorização

ApiKeyAuth
headerx-api-key<token>

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

Parâmetros de consulta

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
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Corpo da resposta

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"
      ]
    }
  ]
}