API para Booking.com: Buscar
Busque hospedagens no Booking.com por destino e datas, com ocupação opcional de hóspedes e quartos, e receba resultados de hotéis (nome, preço, nota de avaliação, localização) em JSON normalizado.
Teste
Faça sua primeira requisição
{
"data": {
"items": [
{
"address": "123 Main St",
"city": "San Francisco",
"country": "US",
"currency": "USD",
"discountBadge": "example",
"distanceFromCenter": "example",
"freeCancellation": true,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"isClosed": false,
"isSoldOut": true,
"latitude": 37.7749,
"location": "example",
"longitude": -122.4194,
"name": "Example title",
"noPrepayment": true,
"originalPrice": 19.99,
"price": 19.99,
"pricePerNight": 19.99,
"rating": 4.6,
"reviewScore": 4.6,
"reviewScoreLabel": "A short example description of this item.",
"reviewsCount": 12500,
"roomId": "a1b2c3d4",
"stars": 5,
"thumbnail": "https://example.com/image.jpg",
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface BookingSearchResponse {
data: {
items: {
address?: string;
city?: string;
country?: string;
currency?: string;
discountBadge?: string;
distanceFromCenter?: string;
freeCancellation?: boolean;
id?: string;
image?: string;
isClosed?: boolean;
isSoldOut?: boolean;
latitude?: number;
location?: string;
longitude?: number;
name: string;
noPrepayment?: boolean;
originalPrice?: number;
price?: number;
pricePerNight?: number;
rating?: number;
reviewScore?: number;
reviewScoreLabel?: string;
reviewsCount?: number;
roomId?: string;
stars?: number;
thumbnail?: string;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/booking.search \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"adults":2,"checkIn":"2026-09-01","checkOut":"2026-09-03","limit":3,"query":"New York"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "New York"Cidade de destino onde buscar hospedagens (ex.: Paris). |
| adults | integer | 2Número de hóspedes adultos (ex.: 2). |
| checkIn | string | "2026-09-01"Data de check-in no formato YYYY-MM-DD (ex.: 2026-07-01). O padrão é amanhã. |
| checkOut | string | "2026-09-03"Data de check-out no formato YYYY-MM-DD (ex.: 2026-07-05). O padrão é o dia seguinte ao check-in. |
| children | integer | Número de crianças (ex.: 1). |
| currency | string | Código da moeda dos preços (ex.: EUR). |
| limit | integer | 3Número máximo de hotéis a retornar (1-20, padrão 20). A cobrança é por resultado retornado, então um limite menor custa menos. |
| rooms | integer | Número de quartos a reservar (ex.: 1). |
| Resposta | ||
| data | object | |
| data.items | object[] | Hotel result records: name, price, review score, star rating, address, and location. Populated whenever the provider has data for the entity. |
| data.items[].address | string | |
| data.items[].city | string | |
| data.items[].country | string | ISO country code. |
| data.items[].currency | string | |
| data.items[].discountBadge | string | Promotion label Booking.com shows on the offer (e.g. Getaway Deal). |
| data.items[].distanceFromCenter | string | Distance from the city center as Booking.com phrases it. |
| data.items[].freeCancellation | boolean | Whether the offer can be cancelled free of charge. |
| data.items[].id | string | Booking.com hotel identifier. Populated whenever the provider has data for the entity. |
| data.items[].image | string | Primary hotel photo URL. Populated whenever the provider has data for the entity. |
| data.items[].isClosed | boolean | Whether the property is closed. |
| data.items[].isSoldOut | boolean | Whether the property is sold out for the requested dates. |
| data.items[].latitude | number | |
| data.items[].location | string | Neighborhood or area label. |
| data.items[].longitude | number | |
| data.items[].name | string | Populated whenever the provider has data for the entity. |
| data.items[].noPrepayment | boolean | Whether the offer needs no payment up front. |
| data.items[].originalPrice | number | Pre-discount total stay price in the requested currency. |
| data.items[].price | number | Total stay price in the requested currency. |
| data.items[].pricePerNight | number | |
| data.items[].rating | number | Guest review score (0-10). |
| data.items[].reviewScore | number | Guest review score (0-10). |
| data.items[].reviewScoreLabel | string | Word Booking.com uses for the review score (e.g. Fabulous). |
| data.items[].reviewsCount | integer | |
| data.items[].roomId | string | Identifier of the room the quoted price is for. |
| data.items[].stars | integer | Star rating class (1-5). |
| data.items[].thumbnail | string | Small hotel photo URL. |
| data.items[].url | string | Populated whenever the provider has data for the entity. |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição (teto) | USD | US$ 0,102 |
| Preço /mil resultados | USD | US$ 4,86 |
Dúvidas frequentes
Sobre o endpoint Buscar da API para Booking.com
O endpoint Buscar da AnyAPI para Booking.com retorna dados de Booking.com em JSON normalizado com uma chamada POST para /v1/run/booking.search. Busque hospedagens no Booking.com por destino e datas, com ocupação opcional de hóspedes e quartos, e receba resultados de hotéis (nome, preço, nota de avaliação, localização) em JSON normalizado. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa US$ 4,86 por mil resultados, e nunca mais de US$ 0,102 por requisição, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Buscar da API para Booking.com feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,8 segundos, em 24 chamadas medidas.