> ## 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 Airport code

## Use Case Overview

This [search](/api-reference/endpoint/post-hotel-search) allows users to find hotels within a specified radius around a given airport. It’s particularly useful for users looking for accommodations near airports for convenience, layovers, or quick access to urban cities associated with the airport’s location.

### Parameters

* **Airport Code**: A 3-letter IATA airport code (e.g., "JFK" for John F. Kennedy International Airport).
* **Radius**: The distance in miles around the airport to include in the search results.

<Tip>Airport code is referred to as iata\_code in the location type.</Tip>

### Example

A user searching for hotels around "JFK" with a radius of 10 miles would retrieve a list of hotels located within 10 miles of JFK Airport.

```json theme={null}
{
  "stay_info": {
    "check_in_date": "2025-01-01",
    "check_out_date": "2025-01-03",
    "guests": {
      "adults": 1
    }
  },
  "filter": {
    "location": {
      "type": "iata_code",
      "details": {
        "iata_code": "JFK"
      },
      "radius": {
        "value": 10,
        "type": "mi"
      }
    }
  }
}
```
