v1

latestOpenAPI 3.1.02026-07-14222.8 KB

Get a specific country

Retrieves a single country by ID.

get/countries/{id}

Path parameters

idinteger required

ID of the country to return.

Query parameters

fieldsstring

Comma-separated list of properties to include in the response. Available values: 'id', 'name', 'iso', 'states'.

embedstring

Comma-separated list of related resources to embed in the response. Available value: 'states'.

Response

The country details.

idinteger

The ID of the country.

namestring

The name of the country.

isostring

The ISO code of the country.