> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/docs/api/v1/booking/search/get>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/docs/api/v1/booking/search/get.mdx>

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` and `/v2/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** <https://www.socialfetch.dev/openapi.json>

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — every operation with identifiers, pagination, outcomes, media download, credits, and its SDK method. Generated from OpenAPI, so use it for route selection instead of scanning individual pages.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, Make custom app, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 1112 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [Make integration](https://www.socialfetch.dev/docs/integrations/make.mdx) — custom app modules for Make scenarios, API key credentials, and module catalog.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).
- Published blog posts use the same convention: `/blog/{slug}` → `/blog/{slug}.mdx`, or `Accept: text/markdown` on the HTML URL (`Vary: Accept`).

---
# Search Booking.com properties (https://www.socialfetch.dev/docs/api/v1/booking/search/get)

## Summary

Search Booking.com properties for a destination and stay, with prices, ratings and review scores.

**Tags:** `Booking.com`

## HTTP

- **Method:** GET
- **Path:** `/v1/booking/search`
- **Base URL:** `https://api.socialfetch.dev`

## Capability summary

- **SDK mapping:** `client.booking.searchProperties({ query: "London" })`
- **Accepted identifiers:** `query` (query)
- **Pagination:** cursor via `cursor`, next cursor: `data.page.nextCursor`, has more: `data.page.hasMore`
- **Business outcome field:** `data.lookupStatus` with values `found`, `not_found`

## Credits

- 1 credit
- Failed requests are free
- A not-found answer is still charged

## Authentication

- **`x-api-key`**: API key (`sfk_...`)

## Parameters

### `query` (query)

- **Required:** yes
- **Constraints:** type `string`; minLength: 1; maxLength: 100
- **Description:** Where to stay: a city, region, district, landmark, airport or property name, e.g. `London`, `Cornwall` or `Heathrow Airport`.

### `checkIn` (query)

- **Required:** no
- **Constraints:** type `string`; pattern: `^\d{4}-\d{2}-\d{2}$`
- **Description:** Check-in date, `YYYY-MM-DD`, today or later. Default 14 days from today.

### `checkOut` (query)

- **Required:** no
- **Constraints:** type `string`; pattern: `^\d{4}-\d{2}-\d{2}$`
- **Description:** Check-out date, `YYYY-MM-DD`, after `checkIn` and at most 90 nights later. Default one night after check-in.

### `adults` (query)

- **Required:** no
- **Constraints:** type `integer`; default: `2`; minimum: 1; maximum: 30
- **Description:** Adults travelling, 1 to 30. Default 2.

### `childrenAges` (query)

- **Required:** no
- **Constraints:** type `array`
- **Description:** Ages of the children travelling, comma-separated, each 0 to 17, e.g. `5,9`. Omit when no children travel.

### `rooms` (query)

- **Required:** no
- **Constraints:** type `integer`; default: `1`; minimum: 1; maximum: 30
- **Description:** Rooms needed, 1 to 30 and no more than the adults. Default 1.

### `currency` (query)

- **Required:** no
- **Constraints:** type `string`; default: `USD`
- **Description:** Currency of every price, as a three-letter code such as `USD`, `EUR`, `GBP` or `JPY`. Default `USD`.

### `language` (query)

- **Required:** no
- **Constraints:** type `string`; default: `en-us`
- **Description:** Language of names, labels and descriptions, as the site's own code: `en-us`, `en-gb`, `de`, `fr`, `es`, `it`, `ja`, `zh-cn` and so on. Default `en-us`.

### `country` (query)

- **Required:** no
- **Constraints:** type `string`; default: `us`
- **Description:** Visitor country, as a two-letter code such as `us`, `gb`, `de` or `jp`. The site decides from it whether prices include taxes. Default `us`, where prices are shown before taxes and charges.

### `filters` (query)

- **Required:** no
- **Constraints:** type `array`
- **Description:** The site's own filters, comma-separated, e.g. `class=5` (5 stars), `review_score=90` (9+), `ht_id=204` (hotels) or `fc=2` (free cancellation). A first page lists them all in `availableFilters`. A filter the site does not apply to this search is answered with a 400, not charged, never with unfiltered results.

### `sort` (query)

- **Required:** no
- **Constraints:** type `string`; enum: popularity, homes_first, price_lowest_first, price_highest_first, stars_highest_first, stars_lowest_first, stars_and_price, distance, review_score; default: `price_lowest_first`
- **Description:** Order. `price_lowest_first` (default) is the order the site pages consistently: two 300-row walks of the same search share 275 to 300 rows. A row with a deal can sit a few places below where its discounted price would put it, as on the site. `popularity` is the site's own "top picks" order, with its paid placements (`sponsored`), but the site reshuffles it between requests: two 300-row walks of London shared 163 to 292 rows, and one walk returned up to 43 rows twice (dropped, see `page.droppedCount`), so paging it misses rows. Also `price_highest_first`, `stars_highest_first`, `stars_lowest_first`, `stars_and_price`, `homes_first`, `distance` (as consistent as price for a city or a landmark, less for a region or a country) and `review_score`.

### `limit` (query)

- **Required:** no
- **Constraints:** type `integer`; default: `25`; minimum: 1; maximum: 100
- **Description:** Rows per page, 1 to 100. Default 25.

### `cursor` (query)

- **Required:** no
- **Constraints:** type `string`; minLength: 1; maxLength: 1024; pattern: `^[A-Za-z0-9_-]+$`
- **Description:** Pass `page.nextCursor` from the previous response to get the next page. Omit it for the first page.

## Pagination

This endpoint uses **cursor-based pagination** via the `cursor` query parameter.

- Read **hasMore** from `data.page.hasMore`.
- When that value is `true`, read **nextCursor** from `data.page.nextCursor` and pass it as the `cursor` query parameter on the **next** request (URL-encode when building a query string).
- Omit `cursor` on the **first** request.
- Stop when **hasMore** is `false` or **nextCursor** is null (end of list).

## Responses (status codes)

- **200**: Booking.com properties for the stay.
- **400**: Invalid request
- **401**: Missing or invalid API key
- **402**: Insufficient credits
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed.
- **503**: Service temporarily unavailable; safe to retry with backoff.

## Response body (200)

Booking.com properties for the stay.

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **lookupStatus** (required) — type `string`; enum: found, not_found. `not_found` when the site matches the query to no destination.
  - **destination** (required) — type `object`; nullable. The matched destination; null when not found.
    - **id** (required) — type `integer`; nullable. The site's id for the destination.
    - **type** (required) — type `string`; nullable. Destination type: `city`, `region`, `country`, `district`, `landmark`, `airport`, `hotel` and so on.
    - **name** (required) — type `string`; nullable. Destination name as the site resolved the query.
    - **countryCode** (required) — type `string`; nullable. Two-letter country code, lower case.
  - **stay** (required) — type `object`. The stay the prices are for, with every default filled in, so a later page or a repeat search can ask for the same stay.
    - **checkIn** (required) — type `string`. Check-in date, `YYYY-MM-DD`.
    - **checkOut** (required) — type `string`. Check-out date, `YYYY-MM-DD`.
    - **nights** (required) — type `integer`. Nights.
    - **adults** (required) — type `integer`. Adults.
    - **childrenAges** (required) — type `array`. Children's ages.
      - _items:_
        - type `integer`
    - **rooms** (required) — type `integer`. Rooms.
    - **currency** (required) — type `string`. Currency the prices were asked in.
    - **language** (required) — type `string`. Language of the answer.
    - **country** (required) — type `string`. Visitor country the answer is for.
  - **totalCount** (required) — type `integer`; nullable. Properties the site counts for the stay. It moves slightly from request to request as availability changes.
  - **properties** (required) — type `array`. Properties on this page. A property the page before returned, or one the site repeats within the page, is left out and counted in `page.droppedCount`, so a page can hold fewer than `limit`.
    - _items:_
      - **id** (required) — type `integer`. Property id. Pass it as `propertyId` to the property reviews endpoint.
      - **name** (required) — type `string`. Property name.
      - **url** (required) — type `string`; nullable. Property page URL.
      - **pageName** (required) — type `string`; nullable. The property's page name in its URL, e.g. `the-savoy`.
      - **accommodationType** (required) — type `string`; nullable. Kind of property: `hotel`, `apartment`, `hostel`, `guest_house` and so on; null when unknown.
      - **accommodationTypeId** (required) — type `integer`; nullable. The site's id for the kind of property.
      - **stars** (required) — type `number`; nullable. Star or quality rating, 1 to 5; null when none.
      - **starsType** (required) — type `string`; enum: stars, squares, other, null; nullable. `stars` for an official or property-provided star rating, `squares` for the site's own quality rating of homes.
      - **reviewScore** (required) — type `number`; nullable. Guest review score, 1 to 10; null when not shown.
      - **reviewScoreLabel** (required) — type `string`; nullable. The score's word, e.g. `Superb`.
      - **reviewCount** (required) — type `integer`; nullable. Guest reviews counted in the score.
      - **locationScore** (required) — type `number`; nullable. Guest score for the location, 1 to 10, when shown.
      - **externalReviewScore** (required) — type `number`; nullable. Score from reviews collected elsewhere, for a property with few of its own, when shown.
      - **externalReviewCount** (required) — type `integer`; nullable. Reviews behind `externalReviewScore`.
      - **address** (required) — type `string`; nullable. Street address.
      - **city** (required) — type `string`; nullable. City.
      - **countryCode** (required) — type `string`; nullable. Two-letter country code, lower case.
      - **latitude** (required) — type `number`; nullable. Latitude.
      - **longitude** (required) — type `number`; nullable. Longitude.
      - **district** (required) — type `string`; nullable. Area as the site shows it, e.g. `Westminster Borough, London`.
      - **distanceFromCentre** (required) — type `string`; nullable. Distance as the site words it, e.g. `0.3 miles from centre`.
      - **publicTransport** (required) — type `string`; nullable. Nearest station as the site words it, when shown.
      - **photo** (required) — type `string`; nullable. Main photo URL. Link only; not hosted by Social Fetch.
      - **price** (required) — type `object`; nullable. Price of the stay; null when the property shows none.
      - **soldOut** (required) — type `boolean`; nullable. Whether the property has nothing left for the stay.
      - **freeCancellation** (required) — type `boolean`; nullable. Whether a free cancellation rate is offered.
      - **noPrepayment** (required) — type `boolean`; nullable. Whether a rate without prepayment is offered.
      - **mealPlan** (required) — type `string`; nullable. Meals included, as the site words it, e.g. `Breakfast included`.
      - **rooms** (required) — type `array`. The rooms or units the price is for.
        - _items:_
      - **highlights** (required) — type `array`. Facilities the site highlights on the row, e.g. `Fitness centre`.
        - _items:_
          - type `string`
      - **sponsored** (required) — type `boolean`. Whether the row is a paid placement.
      - **sustainabilityCertified** (required) — type `boolean`; nullable. Whether the property holds a sustainability certification.
  - **availableFilters** (required) — type `array`. Filters the site offers for this search, on the first page only (empty on later pages).
    - _items:_
      - **field** (required) — type `string`. Filter group key, e.g. `class` or `ht_id`.
      - **title** (required) — type `string`; nullable. Group name as the site shows it, e.g. `Property rating`.
      - **options** (required) — type `array`. The group's options.
        - _items:_
  - **page** (required) — type `object`. Pagination state for the current page.
    - **hasMore** (required) — type `boolean`. Whether another page is available.
    - **nextCursor** (required) — type `string`; nullable. Pass as `cursor` to get the next page; null on the last page.
    - **offset** (required) — type `integer`; minimum: 0. Position of this page's first row in the full list.
    - **droppedCount** (required) — type `integer`; minimum: 0. Rows the site sent for this page that were left out because the page before, or this page, already had them: the site's order moved between requests. This page holds that many fewer than it could; keep following `nextCursor`. 0 when nothing was dropped.
- **meta** (required) — type `object`. Metadata describing the request and billing outcome.
  - **requestId** (required) — type `string`; minLength: 1. Unique request identifier for tracing this API call.
  - **creditsCharged** (required) — type `integer`; minimum: 0. Credits charged for this request.
  - **version** (required) — type `string`; enum: v1. Public API version that served the response.
  - **stale** (optional) — type `boolean`; enum: true. Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.
  - **fetchedAt** (optional) — type `string`. When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

### Example JSON (found)

```json
{
  "data": {
    "lookupStatus": "found",
    "destination": {
      "id": -2601889,
      "type": "city",
      "name": "London",
      "countryCode": "gb"
    },
    "stay": {
      "checkIn": "2026-12-01",
      "checkOut": "2026-12-02",
      "nights": 1,
      "adults": 2,
      "childrenAges": [],
      "rooms": 1,
      "currency": "USD",
      "language": "en-us",
      "country": "us"
    },
    "totalCount": 3675,
    "properties": [
      {
        "id": 1909124,
        "name": "Astor Kensington Hostel",
        "url": "https://www.booking.com/hotel/gb/astor-queensway.html",
        "pageName": "astor-queensway",
        "accommodationType": "hostel",
        "accommodationTypeId": 203,
        "stars": null,
        "starsType": null,
        "reviewScore": 8,
        "reviewScoreLabel": "Very Good",
        "reviewCount": 1834,
        "locationScore": null,
        "externalReviewScore": 9,
        "externalReviewCount": 129,
        "address": "45 Queensborough Terrace",
        "city": "London",
        "countryCode": "gb",
        "latitude": 51.5117569687341,
        "longitude": -0.185392635581934,
        "district": "Westminster Borough, London",
        "distanceFromCentre": "2.5 miles from downtown",
        "publicTransport": "Queensway station is within 200 yards",
        "photo": "https://cf.bstatic.com/xdata/images/hotel/square600/76216951.jpg?k=bac893c376afc2a3055c5aea894bb6948e5992bd2ab4a0ab98ec3ad3efb1d8e9&o=",
        "price": {
          "amount": 33.62,
          "currency": "USD",
          "text": "$33.62",
          "taxesIncluded": false,
          "taxesAndCharges": 6.72,
          "originalAmount": 37.36,
          "perNight": 33.62,
          "propertyAmount": 25.5,
          "propertyCurrency": "GBP"
        },
        "soldOut": false,
        "freeCancellation": false,
        "noPrepayment": false,
        "mealPlan": null,
        "rooms": [
          {
            "name": "Bed in 8-Bed Mixed Dormitory Room Ensuite (18–40 years)",
            "count": 2,
            "beds": 2,
            "bedrooms": null,
            "bathrooms": null,
            "area": null
          }
        ],
        "highlights": [
          "Baggage storage"
        ],
        "sponsored": false,
        "sustainabilityCertified": false
      }
    ],
    "availableFilters": [
      {
        "field": "mealplan",
        "title": "Meals",
        "options": [
          {
            "id": "mealplan=1",
            "label": "Breakfast included",
            "count": 633,
            "selected": false
          }
        ]
      }
    ],
    "page": {
      "hasMore": true,
      "nextCursor": "eyJvIjoyNSwicyI6IjF5Z2pvaGwiLCJpIjoiMjAyNi0xMi0wMSIsInUiOiIyMDI2LTEyLTAyIiwicCI6IkFCMGhoQUFIY0hVQUJxOVVBQjFPckFERTFKY0E3ckhhQUFVS1hnRUdDT0lBc3NldUFPdFRid0R0ZW9FQXlNVWxBQnpEUHdETFFFWUFCQl9pQUtkZmtRRFlUZFlBX0ZfX0FCWDViUURZYWU4QTUwYWtBTklWZ0FDYnptY0FCTTlKQUJUS2V3In0",
      "offset": 0,
      "droppedCount": 0
    }
  },
  "meta": {
    "requestId": "req_01example_v1_booking_search",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Machine-readable error codes

When an error JSON body is returned, it may include one of these `error.code` values (derived from the OpenAPI schemas for this operation; additional codes may exist at runtime):

- `bad_request`

## Error handling & retries

Interpret HTTP status codes using the descriptions below. Do not assume a JSON body unless the OpenAPI schema defines one for that status.

- **400**: Invalid request **Retry:** Fix the request; retrying the same invalid payload will not help.
- **401**: Missing or invalid API key **Retry:** Fix the API key first; retrying without changes will not help.
- **402**: Insufficient credits **Retry:** Do not retry without resolving billing/credits (retrying the same request will not help).
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed. **Retry:** May be transient; a few retries with backoff are reasonable.
- **503**: Service temporarily unavailable; safe to retry with backoff. **Retry:** Usually safe to retry with exponential backoff and jitter.

### Suggested client defaults

- Send the API key using the `x-api-key` header on every request.
- On `503` (and sometimes `502`), retry with backoff; cap retries and surface a clear error to the user.
- On `402`, surface an actionable billing message rather than blind retries.

## Examples

### TypeScript SDK

```typescript
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const result = await client.booking.searchProperties({
  query: "London",
});

if (!result.ok) {
  console.error(result.error);
} else {
  console.log(result.value.data);
}
```

### Node.js

```javascript
const response = await fetch(
  "https://api.socialfetch.dev/v1/booking/search?query=London",
  {
    headers: {
      "x-api-key": "YOUR_API_KEY"
    }
  }
);

const data = await response.json();
console.log(data);
```

### cURL

```bash
curl "https://api.socialfetch.dev/v1/booking/search?query=London" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://api.socialfetch.dev/v1/booking/search?query=London",
    headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()
print(data)
```

### Example: next page (pagination)

After a successful response, if pagination is not finished, request the next page using `cursor` (URL-encode when composing the query string):

```javascript
const previous = await response.json();
const nextCursor = previous?.data?.page?.nextCursor;
const hasMore = previous?.data?.page?.hasMore;
if (!hasMore || nextCursor == null) {
  // no more pages
} else {
  const nextUrl = new URL("https://api.socialfetch.dev/v1/booking/search");
  nextUrl.searchParams.set("cursor", nextCursor);
  // optionally preserve sort: nextUrl.searchParams.set("sortBy", "latest");
  const nextResponse = await fetch(nextUrl.toString(), {
    headers: { "x-api-key": "YOUR_API_KEY" },
  });
  const nextData = await nextResponse.json();
}
```