# GlobalRules Country Currency Lookup

> GlobalRules Country Currency 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 currency information for a specific country (Singapore in this example URL), from a dataset of 106 countries covering 54 country-specific regulatory and practical fields.

## Facts

- Endpoint: GET https://globalrules-api.onrender.com/api/v1/country/SG/currency
- 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-currency-lookup-64871d72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HexyV-MkDf4dj5CjHUyXx

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-currency-lookup-64871d72
```

Example prompt: What currency does Singapore use? Look it up from GlobalRules using the SG country code.

## When to prefer this

Choose this endpoint when you need a single, specific country fact — in this case currency — without pulling a full country dataset. It is ideal for lightweight agent workflows that need to enrich a transaction, form, or travel query with one verified data point per country. At $0.01 USDC per call it is cost-effective for occasional lookups. Prefer alternatives if you need bulk data across many countries simultaneously or if you need real-time exchange rates (this provides currency identity, not rates).

## Known failure modes

- Unsupported or invalid country code returns a 404 or error response
- Country code provided in wrong format (e.g. 3-letter instead of ISO alpha-2) may not resolve
- Payment failure (x402 protocol) if USDC balance is insufficient — returns 402 Payment Required
- Rate limiting or server unavailability on the Render-hosted service may cause timeouts
- Data may be outdated if the verified source has changed since last update

## 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. 162 countries, 56 fields, verified sources. Example: /api/v1/country/JP/vat

## Output

Returns a JSON object containing the country identifier, the currency field value (typically currency name and/or ISO code), and a last-updated timestamp indicating when the data was verified.

## 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-currency-lookup-64871d72/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)
