---
title: "Search airlines"
---

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

# Search airlines

Path: Nicer API › Search

`GET /search/carriers`

URL: `https://api.nicer.travel/search/carriers`

Airlines by name, IATA or ICAO code from the travel reference, ranked with exact codes first. Airlines that stopped flying are left out. Anonymous calls share one budget across the search routes, 600 per hour per IP; a valid bearer token lifts it.

## Authentication

Requires one of the following:

- 
- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `q` (`search.carriers.list.query.q`; string, required) — An airline name, or its IATA or ICAO code.
  - maxLength: `100` · minLength: `2`
- `limit` (`search.carriers.list.query.limit`; integer, optional) — Maximum airlines after ranking.
  - maximum: `50` · minimum: `1` · default: `10`

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.search.carriers.list({
  "q": "string"
});
```

### Nicer CLI

```bash
nicer search carriers list --q 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/search/carriers?q=string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/search/carriers?q=string';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/search/carriers?q=string"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "iataCode": "string",
      "icaoCode": "string"
    }
  ]
}
```

- `items` (`search.carriers.list.response.200.items`; array of object, required)
  - `id` (`search.carriers.list.response.200.items.id`; string, required)
  - `name` (`search.carriers.list.response.200.items.name`; string, required)
  - `iataCode` (`search.carriers.list.response.200.items.iataCode`; string, optional)
  - `icaoCode` (`search.carriers.list.response.200.items.icaoCode`; string, optional)

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`search.carriers.list.response.400.errorCode`; string, required)
- `errorMessage` (`search.carriers.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`search.carriers.list.response.401.errorCode`; string, required)
- `errorMessage` (`search.carriers.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`search.carriers.list.response.403.errorCode`; string, required)
- `errorMessage` (`search.carriers.list.response.403.errorMessage`; string, required)

### 429

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`search.carriers.list.response.429.errorCode`; string, required)
- `errorMessage` (`search.carriers.list.response.429.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Search/search.carriers.list/index.md
