# GlobalRules Country Calling Code Lookup

> GlobalRules Country Calling Code 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-13).

Returns the international telephone calling code for a specified country using its ISO 3166-1 alpha-2 country code.

## Facts

- Endpoint: GET https://globalrules-api.onrender.com/api/v1/country/JP/calling_code
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/globalrules-country-calling-code-lookup-54f6ea08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1NgSkH1duFP59jWZDJpgB

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-calling-code-lookup-54f6ea08
```

Example prompt: What's the international calling code for Japan? I need the country dialing prefix so I can format a phone number correctly.

## When to prefer this

Use this endpoint when you need a single, verified calling code fact for a specific country without building your own country database. Ideal for agents that need to format international phone numbers, auto-populate dial prefix fields, or provide travel dialing instructions. At $0.01 per call it is cost-effective for on-demand lookups. Prefer this over a full country dataset download when you only need the calling code for one country at a time.

## Known failure modes

- Invalid or unsupported country code returns an error or empty response
- Country code must be exactly 2 uppercase letters (ISO 3166-1 alpha-2); malformed codes will fail
- Service hosted on Render free tier may have cold-start latency or occasional downtime
- Only 106 countries are supported; obscure territories may not be available
- Payment failure via x402 protocol will block the request

## 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's ISO code, its international telephone calling code (e.g. +81 for Japan), 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-calling-code-lookup-54f6ea08/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)
