Api Endpoint

Country Code Lookup (ISO 3166)

Country lookup: find a country or territory by ISO 3166-1 alpha-2, alpha-3 or numeric code, or by name, and get the other codes, the official and common English names, the UN M49 region and sub-region, the currencies in use, the country-code TLD, and optionally the full ISO 3166-2 subdivision list with each subdivision's type. Also resolves an ISO 3166-2 subdivision code such as NL-NH directly. Names are matched case- and accent-insensitively.

Open interactive test console

Offering

Provider
api.duoleads.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Location And Travel
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.duoleads.com/v1/ref/country
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
Country, country-code, iso-3166, countries, ref

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
2002 ms
Average latency
915 ms
HTTP status
402
Last checked
Reachability
92.3% over 13 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": {
        "code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2, alpha-3 or numeric code, or an ISO 3166-2 subdivision code such as NL-NH.",
          "maxLength": 16
        },
        "name": {
          "type": "string",
          "description": "Substring search on country names, case- and accent-insensitive.",
          "maxLength": 128
        },
        "include": {
          "type": "string",
          "description": "Comma-separated: subdivisions, m49, currency, tld. Default m49,currency,tld.",
          "maxLength": 64,
          "default": "m49,currency,tld"
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "code": {
              "description": "ISO 3166-1 alpha-2, alpha-3 or numeric code, or an ISO 3166-2 subdivision code such as NL-NH.",
              "maxLength": 16,
              "type": "string"
            },
            "include": {
              "default": "m49,currency,tld",
              "description": "Comma-separated: subdivisions, m49, currency, tld. Default m49,currency,tld.",
              "maxLength": 64,
              "type": "string"
            },
            "name": {
              "description": "Substring search on country names, case- and accent-insensitive.",
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "properties": {
                "alpha_2": {
                  "type": "string"
                },
                "alpha_3": {
                  "type": "string"
                },
                "currencies": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "found": {
                  "type": "boolean"
                },
                "kind": {
                  "type": "string"
                },
                "m49": {
                  "properties": {
                    "intermediate": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "intermediate_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "region": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "region_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "subregion": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "subregion_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "region",
                    "region_name",
                    "subregion",
                    "subregion_name",
                    "intermediate",
                    "intermediate_name"
                  ],
                  "type": "object"
                },
                "matches": {
                  "items": {
                    "properties": {
                      "alpha_2": {
                        "type": "string"
                      },
                      "alpha_3": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "numeric": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "alpha_2",
                      "alpha_3",
                      "numeric",
                      "name"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "name": {
                  "type": "string"
                },
                "numeric": {
                  "type": "string"
                },
                "official_name": {
                  "type": "string"
                },
                "subdivision": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "parent": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "name",
                    "type",
                    "parent"
                  ],
                  "type": "object"
                },
                "subdivision_count": {
                  "type": "integer"
                },
                "subdivisions": {
                  "items": {
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "parent": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "name",
                      "type",
                      "parent"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tld": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "total_matches": {
                  "type": "integer"
                }
              },
              "required": [
                "found"
              ],
              "type": "object"
            },
            "meta": {
              "properties": {
                "computed_at": {
                  "type": "string"
                },
                "deterministic": {
                  "type": "boolean"
                },
                "disclaimer": {
                  "type": "string"
                },
                "price_usd": {
                  "type": "string"
                },
                "request_id": {
                  "type": "string"
                },
                "sources": {
                  "type": "array"
                }
              },
              "required": [
                "request_id",
                "computed_at",
                "price_usd",
                "deterministic",
                "disclaimer"
              ],
              "type": "object"
            },
            "ok": {
              "const": true
            },
            "route": {
              "const": "/v1/ref/country"
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "ok",
            "route",
            "version",
            "data",
            "meta"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}