Api Endpoint

Country Profile

Country profile by ISO 3166 alpha-2 code: ISO codes, name, region, income group, lending type, capital with coordinates, and the latest population and GDP per capita with their years, as JSON.

Open interactive test console

Offering

Provider
pennydatahq.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://pennydatahq.com/api/country/:code
MIME type
application/json
First seen
2026-11-05T17:26:24.043Z
Last seen
Tags
Country, reference, geography, economy, iso

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0xd0A3c0f5612EcD88e4b16Ef1cD458e1a5E8FFD49"
  }
]

Observed health

Status
Healthy
Latest latency
130 ms
Average latency
139 ms
HTTP status
402
Last checked
Reachability
100% over 8 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {}
    },
    "pathParams": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "2-letter ISO 3166 country code, any case. Regions and income groups (for example WLD, EU) are not countries and return not found."
        }
      },
      "required": [
        "code"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "iso2": {
          "type": "string"
        },
        "iso3": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "region": {
          "type": [
            "string",
            "null"
          ]
        },
        "income_group": {
          "type": [
            "string",
            "null"
          ]
        },
        "lending_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "capital": {
          "type": [
            "string",
            "null"
          ]
        },
        "capital_latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "capital_longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "population": {
          "type": [
            "object",
            "null"
          ],
          "description": "Total population, latest year with data; null when none",
          "properties": {
            "value": {
              "type": "number"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "gdp_per_capita_usd": {
          "type": [
            "object",
            "null"
          ],
          "description": "GDP per capita in current US dollars, latest year with data; null when none",
          "properties": {
            "value": {
              "type": "number"
            },
            "year": {
              "type": "integer"
            }
          }
        }
      },
      "required": [
        "iso2",
        "iso3",
        "name"
      ]
    }
  },
  "required": [
    "type"
  ]
}