# Country Languages API

> Country Languages lists official and commonly spoken languages for any country using its two-letter ISO code. It returns the common country name, formal official name, an array of recognized languages, and the total language count.

**Endpoint:** `GET https://api.apiverve.com/v1/countrylanguages`  
**Category:** Geography  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/countrylanguages

## Overview

Pass a two-letter ISO country code such as ZW or FR in the query string. The endpoint looks up the country record and responds with its common name, formal official name, an array of official and commonly spoken languages, and the total language count. Invalid or unrecognized country codes return an error.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/countrylanguages?country=ZW" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | Yes | The Country 2 letter ISO code for which you want to get languages for data (e.g., ZW) |

## Response fields

- `country` — string · The 2-letter ISO country code for the requested country
- `name` — string · The common name of the country
- `officialName` — string · The official formal name of the country
- `officialLanguages` — array · Array of official and commonly spoken languages in the country
- `officialLanguageCount` — number · Total count of official and commonly spoken languages

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "ZW",
    "name": "Zimbabwe",
    "officialName": "Republic of Zimbabwe",
    "officialLanguages": [
      "Chibarwe",
      "English",
      "Kalanga",
      "Khoisan",
      "Ndau",
      "Northern Ndebele",
      "Chewa",
      "Shona",
      "Sotho",
      "Tonga",
      "Tswana",
      "Tsonga",
      "Venda",
      "Xhosa",
      "Zimbabwean Sign Language"
    ],
    "officialLanguageCount": 15
  }
}
```

## Use cases

- **Multilingual Customer Onboarding** — When an international user selects their home country during registration, prefill preferred locale choices using the returned official languages.
- **Storefront Locale Selection** — Digital storefronts inspect the visitor country code to offer language switcher options based on that country's commonly spoken languages.
- **Help Desk Agent Matching** — Route incoming support callers from specific sovereign states to phone representatives fluent in that nation's recognized languages.
- **Regional Document Translation** — Before distributing corporate compliance agreements abroad, legal teams verify which languages require certified translations for each jurisdiction.

## SDKs

- **npm** — `npm install @apiverve/countrylanguages` (https://www.npmjs.com/package/@apiverve/countrylanguages)
- **PyPI** — `pip install apiverve-countrylanguages` (https://pypi.org/project/apiverve-countrylanguages/)
- **NuGet** — `dotnet add package APIVerve.API.CountryLanguages` (https://www.nuget.org/packages/APIVerve.API.CountryLanguages)
- **Source** — https://github.com/apiverve/countrylanguages-api

## More

- Full reference: https://docs.apiverve.com/ref/countrylanguages
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
