# List supported countries

`GET https://api.answerline.dev/v1/countries`

Lists every supported country code in ISO 3166-1 alpha-2 format. Filter by model to see which countries a given engine supports.

## Parameters

- `model` ("aimode" | "aioverview" | "chatgpt" | "copilot" | "gemini" | "google" | "grok" | "perplexity", in query): Limit the list to countries a given model supports

## Responses

- 200: Country codes that are supported
- 400: Bad Request - the model parameter is not valid
- 401: Unauthorized - authentication failed
- 404: Not Found - No such route
- 429: Too Many Requests - the service dropped the request because it was overloaded (`SERVICE_OVERLOADED`), which returns `Retry-After` without any limit headers, or one address presented too many unknown keys (`RATE_LIMIT_EXCEEDED`, with `Retry-After`)
- 500: Internal Server Error

## Request

curl:

```bash
curl -X GET "https://api.answerline.dev/v1/countries" \
  -H "Authorization: Bearer $API_KEY"
```


## Example responses

200:

```json
[
  "AD",
  "AE",
  "AF",
  "AG",
  "AL"
]
```

400:

```json
{
  "success": false,
  "error": "Request validation failed",
  "details": [
    {
      "field": "prompt",
      "message": "Prompt must not be empty"
    }
  ]
}
```

