---
title: "Get country by code"
method: GET
path: "/geo/countries/{countryCode}"
tags: ["Geo"]
---

# Get country by code

`GET /geo/countries/{countryCode}`

## Request

- Base URL: `https://api.companyenrich.com`
- URL: `https://api.companyenrich.com/geo/countries/{countryCode}`
- Auth: API key in header `Authorization`

Searches a country by its ISO 3166-1 alpha-2 code.

## Path parameters

- `countryCode` string, required

## Response `200`

OK

- CountryInfo2
  - `code` string: The ISO 3166-1 alpha-2 code of the country
  - `name` string: The name of the country
  - `latitude` number, float, nullable: The latitude of the country
  - `longitude` number, float, nullable: The longitude of the country

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests

---

[API](https://skmtc.dev/companyenrich/apis/company-enrich-api.md) - [All operations](https://skmtc.dev/companyenrich/apis/company-enrich-api/llms.txt) - [OpenAPI document](https://skmtc.dev/companyenrich/apis/company-enrich-api/revisions/07f84debab87?raw)
