example-data.com

countries

countries

Page 2 of 3.

Switzerland

CH

Capital: Bern · Region: Europe

Austria

AT

Capital: Vienna · Region: Europe

Japan

JP

Capital: Tokyo · Region: Asia

South Korea

KR

Capital: Seoul · Region: Asia

China

CN

Capital: Beijing · Region: Asia

India

IN

Capital: New Delhi · Region: Asia

Showing first 6 of 24 on this page.

curl -sS \
  "https://example-data.com/api/v1/countries?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/countries?limit=25"
);
const { data, meta } = await res.json();
import type { Countrie, ListEnvelope } from "https://example-data.com/types/countries.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/countries?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Countrie>;
import requests

res = requests.get(
    "https://example-data.com/api/v1/countries",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 25,
      "name": "Switzerland",
      "alpha2": "CH",
      "alpha3": "CHE",
      "numericCode": "756",
      "capital": "Bern",
      "region": "Europe",
      "subregion": "Western Europe",
      "currencyCode": "CHF",
      "callingCode": "+41",
      "flagEmoji": "🇨🇭"
    },
    {
      "id": 26,
      "name": "Austria",
      "alpha2": "AT",
      "alpha3": "AUT",
      "numericCode": "040",
      "capital": "Vienna",
      "region": "Europe",
      "subregion": "Western Europe",
      "currencyCode": "EUR",
      "callingCode": "+43",
      "flagEmoji": "🇦🇹"
    },
    {
      "id": 27,
      "name": "Japan",
      "alpha2": "JP",
      "alpha3": "JPN",
      "numericCode": "392",
      "capital": "Tokyo",
      "region": "Asia",
      "subregion": "Eastern Asia",
      "currencyCode": "JPY",
      "callingCode": "+81",
      "flagEmoji": "🇯🇵"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 50,
    "totalPages": 3
  },
  "links": {
    "self": "/api/v1/countries?page=2",
    "next": "/api/v1/countries?page=3",
    "prev": "/api/v1/countries?page=1"
  }
}
Draftbit