Pakistan Countries API
The GeoNames country record for Pakistan, with ISO codes, capital, currency, languages and neighbours, plus every other dataset we hold for Pakistan.
GET /v1/countriesCC BY 4.0PK28 Nov 2026Datasets for Pakistan
Postal CodesMatch postal codes to place names and administrative areas.2,563 recordsAirportsLook up airport identifiers, locations, types and scheduled-service flags.115 recordsPortsFind port locations and reported harbour and vessel dimensions.3 recordsWorld Bank IndicatorsRead country-level development indicators and historical observations.1,502 recordsUniversitiesFind university names, websites and institutional domains.136 recordsCitiesFind populated places, coordinates, populations and time zones.494 recordsCountriesRetrieve country codes, capitals, currencies and geographic reference fields.1 record
Request and response
Add country filtering to the collection endpoint and you get Pakistan records back. The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.
curl 'https://api.apifor.dev/v1/countries' \
-G -d country=PK \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"iso2": "AD",
"iso3": "AND",
"iso_numeric": "020",
"fips": "AN",
"name": "Andorra",
"capital": "Andorra la Vella",
"area_km2": 468,
"population": 82904,
"continent": "EU",
"tld": ".ad",
"currency_code": "EUR",
"currency_name": "Euro",
"postal_code_format": "AD###",
"postal_code_regex": "^(?:AD)*(\\d{3})$",
"languages": "ca",
"geonameid": 3041565,
"neighbours": "ES,FR",
"updated_at": "2026-11-01 08:41:33"
}
]
}Fields
Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.
| Field | Type | Example |
|---|---|---|
| iso2 | string | "AD" |
| iso3 | string | "AND" |
| iso_numeric | string | "020" |
| fips | string | "AN" |
| name | string | "Andorra" |
| capital | string | "Andorra la Vella" |
| area_km2 | integer | 468 |
| population | integer | 82904 |
| continent | string | "EU" |
| tld | string | ".ad" |
| currency_code | string | "EUR" |
| currency_name | string | "Euro" |
| postal_code_format | string | "AD###" |
| postal_code_regex | string | "^(?:AD)*(\\d{3})$" |
| languages | string | "ca" |
| geonameid | integer | 3041565 |
| neighbours | string | "ES,FR" |
| updated_at | string | "2026-11-01 08:41:33" |
Filters and paging
Query parameters accepted by GET /v1/countries. Full detail, including the single-record route, is in the endpoint reference.
| Parameter | Type | Rules |
|---|---|---|
| page | integer | min 1 · default 1 |
| limit | integer | 1 to 200 · default 50 |
| country | string | ISO 3166-1 alpha-2 |
| q | string | 2 to 100 chars |