Try the RankNibbler SEO API

Countries Beta

GET /api/v1/countries

The supported country, currency and language codes, so location-aware integrations can be built without guesswork. Reference data — this endpoint takes no url.

Beta. This endpoint is new: it is live and safe to call on every plan, but its response shape may still change while we take feedback. Nothing here is scheduled for removal — if you depend on a particular field, tell us and we will keep it stable for you.

Authentication

Send your API key as an X-API-Key header, or as a key query parameter. Available on every plan, including Free — plans differ only in requests per day. This call costs one request against your daily quota, which is shared across every key on the account. See Authentication.

Query parameters

NameTypeDescription
key optionalstringYour API key, if not sent as the X-API-Key header.

Request

Response

200 · application/json
  1. {
  2. "count": 98,
  3. "countries": [{ "code": 2012, "name": "Algeria", "iso2": "dz",
  4. "currency": "DA", "lang": "en" }],
  5. "usage": { "used": 1, "dailyLimit": 100, "tier": "free" }
  6. }

Response fields

FieldTypeDescription
countintegerHow many countries are returned.
countries[].codeintegerRankNibbler's internal location code.
countries[].iso2stringLower-case ISO 3166-1 alpha-2 code.
countries[].currencystringCurrency symbol or code for that country.
countries[].langstringDefault language code.

Errors

StatusWhen
401Missing or invalid API key.
429Burst rate limit (60 req/10s per IP, 30 req/10s per key) or your daily quota. See Rate limits.
503The country list is unavailable on this server. This check runs before authentication.

Errors return { "error": "…" }; see Errors.