GET /countrydata/:code
Hent den komplette profilen for et enkelt land etter ISO 3166-1 alpha-2-kode. Returnerer offisielt navn, hovedstad, befolkning, areal, språk, valutaer, ringenumre, grenser, region, underregion og mer. Mer effektivt enn å hente alle 250 land når du bare trenger ett. Ideelt for landsdetaljsider og dyptgående geografisk innhold.
code
påkrevd
Country code
| Navn | Påkrevd | Standard | Beskrivelse |
|---|---|---|---|
code |
Ja | - | Country code |
curl https://nordapi.ee/api/v1/countrydata/NO
curl https://nordapi.ee/api/v1/countrydata/NO
curl https://nordapi.ee/api/v1/countrydata/JP
curl https://nordapi.ee/api/v1/countrydata/BR
{
"data": {
"area_km2": null,
"borders": null,
"capital": null,
"code": null,
"code_alpha3": null,
"continents": null,
"currencies": null,
"drives_on": null,
"flag_png": null,
"flag_svg": null,
"languages": null,
"latitude": null,
"longitude": null,
"name": null,
"official_name": null,
"population": null,
"region": null,
"start_of_week": null,
"subregion": null,
"timezones": null
},
"success": true
}