---
title: "Fetch all countries"
method: GET
path: "/countries"
tags: ["Country"]
---

# Fetch all countries

`GET /countries`

Returns all countries from the system

## Query parameters

- `q` string, string
- `filter` string, string

## Response `200`

Fetched countries

- 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)
