# GlobalRules Legal Ages Lookup

> GlobalRules Legal Ages 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 legal age thresholds (e.g. drinking, driving, voting, smoking) for a specified country

## Facts

- Endpoint: GET https://globalrules-api.onrender.com/api/v1/country/US/legal_ages
- 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-legal-ages-lookup-656fce08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OBEHhiwg6nfOpBhQpIM1M

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-legal-ages-lookup-656fce08
```

Example prompt: What are the legal ages in the United States — drinking, driving, voting, and smoking — according to GlobalRules?

## When to prefer this

Choose this endpoint when you need a fast, single-field lookup of legal age thresholds for a specific country. It is ideal for travel apps, compliance checks, age-restricted product launches, or parental advisory tools. Prefer this over a general country data API when you specifically need verified legal ages rather than broader country metadata.

## Known failure modes

- Unsupported country code returns 404 or empty result
- Country not among the 106 supported nations returns an error
- Stale data if country recently changed laws and update cycle hasn't refreshed
- Payment failure (x402) if USDC balance is insufficient
- Rate limiting if too many calls made in succession

## 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

A JSON object containing the country code, the specific legal ages data for the requested country (such as drinking age, driving age, voting age, smoking age), 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-legal-ages-lookup-656fce08/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)
