G

GlobalRules · Countries

by GlobalRules

GETBase

$0.005

per call · USD Coin on Base

List all 162 countries covered by the GlobalRules country-facts API, returned as ISO 3166-1 alpha-2 codes with country names. Use this endpoint first to discover which countries you can query for practical travel and business facts such as VAT rates, public holidays, tipping customs, power plugs, emergency numbers and visa rules (56 topics per country). Designed for AI agents, travel planners and cross-border e-commerce tools.

Endpoint

GET https://globalrules-api.onrender.com/api/v1/countries

6

Calls / 30d

5

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://globalrules-api.onrender.com/api/v1/countries", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://globalrules-api.onrender.com/api/v1/countries" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "countries": [
    {
      "code": "JP",
      "name": "Japan"
    }
  ],
  "updated": "2026-09-04"
}

Payment details

Pay to0x22c24daf579629a6d7418e09e9c71e6c8883f8e2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from GlobalRules & similar services