---
title: "Fetch country"
method: GET
path: "/countries/{countryId}"
tags: ["Country"]
---

# Fetch country

`GET /countries/{countryId}`

Returns a country based on a single ID

## Path parameters

- `countryId` integer, required

## Query parameters

- `filter` string, string

## Response `200`

Fetched country

- Country
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `iso2` string
  - `iso_alpha3` string
  - `iso_numeric` integer
  - `fips_code` string
  - `name` string
  - `capital` string
  - `areainsqkm` number, float
  - `population` integer
  - `continent` string
  - `tld` string
  - `currency` string
  - `currencyname` string
  - `phone` string
  - `postalcodeformat` string
  - `postalcoderegex` string
  - `languages` string
  - `geonameid` integer
  - `neighbours` string
  - `equivalentfipscode` string

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/versions/8db13a44d758/schema)
