# GlobalRules Country TLD Lookup

> GlobalRules Country TLD Lookup is a paid API for AI agents from globalrules-api.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the top-level domain (TLD) for a specified country using its ISO country code

## Facts

- Endpoint: GET https://globalrules-api.onrender.com/api/v1/country/GB/tld
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/globalrules-country-tld-lookup-f0b773a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EXgi65l02yx0d1W_2FIGP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability globalrules-country-tld-lookup-f0b773a4
```

Example prompt: What is the official top-level domain for Great Britain? I need the ccTLD associated with GB.

## When to prefer this

Use this endpoint when you need a single, verified fact — specifically the ccTLD — for a given country without needing to scrape Wikipedia or rely on unverified sources. Ideal for agents building country-aware features, localization pipelines, or domain registration workflows where accuracy matters. At $0.01 per call it is cost-effective for spot lookups across the 106 supported countries.

## Known failure modes

- Unsupported country code returns 404 or error — only 106 countries are supported
- Invalid or malformed ISO country code returns a validation error
- Service hosted on Render free tier may have cold-start latency or downtime
- Some countries have complex TLD situations (e.g. UK uses .uk not .gb) which may not reflect all variations
- Stale data if the verified source has not been updated recently

## How this service works

One specific fact for one country: VAT/GST rate, public holidays by country, visa requirements for travelers, tipping customs, power plug type, minimum wage, corporate tax, digital nomad visa, customs duty-free allowance and more. 138 countries, 55 fields, verified sources. Example: /api/v1/country/JP/vat

## Output

Returns a JSON object containing the country ISO code, its official country-code top-level domain (ccTLD, e.g. '.gb' or '.uk'), and a timestamp indicating when the data was last verified/updated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "country": {
       "type": "string"
      },
      "updated": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/globalrules-country-tld-lookup-f0b773a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from globalrules-api.onrender.com](https://www.zero.xyz/host/globalrules-api.onrender.com/llms.txt)
