# Country of a provider

## Get provider country

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/country/all`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Provider](https://docs.aviowiki.com/data-models/provider) data model.

```json
{
  "iso2": "US",
  "iso3": "USA",
  "isoNumeric": 840,
  "name": "United States",
  "officialName": "United States of America",
  "localIdentifierName": null
}
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:06:44.785Z",
  "status": 400,
  "message": "string",
  "path": "string"
}
```

{% endtab %}

{% tab title="Default Deserialization Exception" %}
Occurs if the response cannot be processed.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:06:44.786Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}
