> ## Documentation Index
> Fetch the complete documentation index at: https://docs.selfbook.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search by Property code

## Use Case Overview

This [search](/api-reference/endpoint/post-hotel-search) allows users to filter hotels based on specific hotel chain codes and property codes, which represent particular brands or individual hotels within a chain. This is useful for loyalty members, corporate clients, or brand-loyal travelers who prefer specific hotel chains or properties.

### Parameters

* **Hotel Chain Code**: A unique code representing a hotel brand or chain (e.g., "HY" for Hyatt).
* **Property Code**: A unique code representing a specific hotel property within a chain.

<Tip>Hotel Chain code and property codes can be pulled from the Vector Database along other metadata.</Tip>

### Example

A user could search for hotels under the Waldorf Astoria in Beverly hills using its chain code and further specify a property code.

```json theme={null}

{
  "stay_info": {
    "check_in_date": "2024-01-01",
    "check_out_date": "2024-01-02",
    "guests": {
      "adults": 1
    }
  },
  "filter": {
    "hotel": {
      "chain_code": "WA",
      "property_code": "C8639"
    }
  }
}
```
