# Country Facts Time Difference

> Country Facts Time Difference is a paid API for AI agents from country-facts.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns the clock difference in hours and minutes between two countries or IANA time zones at a specified moment, with warnings for countries spanning multiple offsets.

## Facts

- Endpoint: GET https://country-facts.x402tookit.com/time-difference?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-facts-time-difference-f84cbf2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fBxd2vZ-fnPrED2M42wF6

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 country-facts-time-difference-f84cbf2e
```

Example prompt: What's the time difference between India and Japan right now — and does either country have multiple time zones I should know about?

## When to prefer this

Use this endpoint when you need a quick, authoritative clock offset between two countries or IANA time zones at a specific moment — especially when you want automatic flagging of multi-offset countries (like the US, Russia, or Brazil) that could complicate scheduling. Prefer it over generic world-clock APIs when you want both a numeric difference and a human-readable verdict with contextual warnings in one call.

## Known failure modes

- Unrecognized country name or code returns null entries for that location
- Country spanning multiple time zones returns an array of offsets rather than a single value, with reasons flagging the ambiguity
- Invalid datetime string for 'at' parameter may cause parsing failure or default to current time
- IANA zone not found returns null offset data
- Network or upstream data errors may set degraded=true with a disclaimer

## How this service works

Clock difference in hours between two countries or IANA zones at a given moment, flagging countries with several offsets.

## Output

Returns a JSON object containing: the clock difference in hours and minutes between the two locations (differenceHours, differenceMinutes), the UTC offsets in minutes for each location (offsetsMinutes), human-readable labels for each zone (label), the resolved timestamp (at, asOf), a plain-English summary and verdict, any reasons flagging complexity (e.g. multi-offset countries), a degraded flag if the result is approximate, a disclaimer, and a list of anything not checked (notChecked).

## 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",
     "required": [
      "a",
      "b"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "First country (code or name) or IANA zone, e.g. India or America/New_York"
      },
      "b": {
       "type": "string",
       "description": "Second country or IANA zone, e.g. Japan"
      },
      "at": {
       "type": "string",
       "description": "UTC moment, e.g. 2026-07-15 or 2026-07-15T12:00Z (default now)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "a": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "label": {
         "type": [
          "null",
          "string"
         ]
        },
        "offsetsMinutes": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "number"
         }
        }
       }
      },
      "b": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "label": {
         "type": [
          "null",
          "string"
         ]
        },
        "offsetsMinutes": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "number"
         }
        }
       }
      },
      "at": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-facts-time-difference-f84cbf2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from country-facts.x402tookit.com](https://www.zero.xyz/host/country-facts.x402tookit.com/llms.txt)
