API reference / JSON:API

get/v3/countries/{iso3}

One country, in JSON:API

Operation
v3GetCountry
Authentication
API key

Request

Parameters

iso3pathrequiredstring

Responses

200A JSON:API single-resource document.
metaobjectrequired
dataJsonApiCountryResourcerequired
400A malformed parameter, or a filter/include/language this endpoint cannot honour. Refused rather than ignored: an ignored filter returns a full answer that looks filtered.
errorsobject[]required
401No key, an unknown key, a revoked key, or an inactive tenant.
errorsobject[]required
403The key is valid but does not hold `reference:read`.
errorsobject[]required
404No such resource.
errorsobject[]required

Example

curl
curl -X GET https://api.haavisa.com/v3/countries/<iso3> \
  -H "Authorization: Bearer $HAAVISA_API_KEY"

More in JSON:API

Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.