← Geo og vær

Landsdetaljer

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.

Parametere

code påkrevd

Country code

Eksempelforespørsler

Grunnleggende bruk
curl https://nordapi.ee/api/v1/countrydata/NO
Norway full profile
curl https://nordapi.ee/api/v1/countrydata/NO
Japan full profile
curl https://nordapi.ee/api/v1/countrydata/JP
Brazil full profile
curl https://nordapi.ee/api/v1/countrydata/BR

Livesvar

{
  "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
}