Api Endpoint

1gateway

Use when scheduling across time zones or turning a local time into UTC without guessing DST. Input: to (IANA zones or KST, PST, CET...), optional from (zone of a local time, default UTC), time (ISO 8601, Unix seconds, or now). Output: JSON UTC instant, Unix time, and per zone: local ISO time with offset, weekday, abbreviation, DST and business-hours flags, day difference. Example: ?time=2026-10-12T09:00&from=Asia/Seoul&to=America/New_York,Europe/London

Open interactive test console

Offering

Provider
1gateway.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://1gateway.dev/v1/time/convert
MIME type
application/json
First seen
2026-10-16T01:50:24.663Z
Last seen
Tags
timezone, time-conversion, DST, Scheduling, UTC

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "payTo": "AwV6UZobYPyTdsuNa2NknZZrnmmUoH5ckEv3wNgL26WT"
  }
]

Observed health

Status
Healthy
Latest latency
31 ms
Average latency
1046 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "to": {
          "type": "string",
          "description": "1–25 target zones, comma-separated (IANA names like Asia/Seoul, UTC, or abbreviations like KST, PST, CET)",
          "pattern": "^[A-Za-z0-9_+\\-/]+(\\s*,\\s*[A-Za-z0-9_+\\-/]+){0,24}$",
          "examples": [
            "America/New_York,Europe/London"
          ]
        },
        "from": {
          "type": "string",
          "description": "Zone of the input local time (default UTC; ignored when time has an offset)",
          "pattern": "^[A-Za-z0-9_+\\-/]+$",
          "default": "UTC",
          "examples": [
            "Asia/Seoul"
          ]
        },
        "time": {
          "type": "string",
          "description": "ISO 8601 date-time (2026-10-12T09:00, 2026-10-12T09:00:00+09:00), Unix seconds/ms, or now",
          "pattern": "^(now|\\d{9,13}|\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?)?\\s*(Z|z|[+-]\\d{2}:?\\d{2})?)$",
          "default": "now",
          "examples": [
            "2026-10-12T09:00"
          ]
        }
      },
      "required": [
        "to"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "from": {
              "default": "UTC",
              "description": "Zone of the input local time (default UTC; ignored when time has an offset)",
              "examples": [
                "Asia/Seoul"
              ],
              "pattern": "^[A-Za-z0-9_+\\-/]+$",
              "type": "string"
            },
            "time": {
              "default": "now",
              "description": "ISO 8601 date-time (2026-10-12T09:00, 2026-10-12T09:00:00+09:00), Unix seconds/ms, or now",
              "examples": [
                "2026-10-12T09:00"
              ],
              "pattern": "^(now|\\d{9,13}|\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?)?\\s*(Z|z|[+-]\\d{2}:?\\d{2})?)$",
              "type": "string"
            },
            "to": {
              "description": "1–25 target zones, comma-separated (IANA names like Asia/Seoul, UTC, or abbreviations like KST, PST, CET)",
              "examples": [
                "America/New_York,Europe/London"
              ],
              "pattern": "^[A-Za-z0-9_+\\-/]+(\\s*,\\s*[A-Za-z0-9_+\\-/]+){0,24}$",
              "type": "string"
            }
          },
          "required": [
            "to"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "from": {
              "properties": {
                "abbreviation": {
                  "type": "string"
                },
                "businessHours": {
                  "type": "boolean"
                },
                "date": {
                  "type": "string"
                },
                "isDst": {
                  "type": "boolean"
                },
                "local": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "utcOffset": {
                  "type": "string"
                },
                "utcOffsetMinutes": {
                  "type": "integer"
                },
                "weekday": {
                  "type": "string"
                },
                "zone": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "input": {
              "type": "string"
            },
            "notes": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "to": {
              "items": {
                "properties": {
                  "abbreviation": {
                    "type": "string"
                  },
                  "businessHours": {
                    "type": "boolean"
                  },
                  "date": {
                    "type": "string"
                  },
                  "dayDiff": {
                    "type": "integer"
                  },
                  "hoursAheadOfSource": {
                    "type": "integer"
                  },
                  "isDst": {
                    "type": "boolean"
                  },
                  "local": {
                    "type": "string"
                  },
                  "time": {
                    "type": "string"
                  },
                  "utcOffset": {
                    "type": "string"
                  },
                  "utcOffsetMinutes": {
                    "type": "integer"
                  },
                  "weekday": {
                    "type": "string"
                  },
                  "zone": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "unix": {
              "type": "integer"
            },
            "utc": {
              "type": "string"
            }
          },
          "required": [
            "input",
            "utc",
            "unix",
            "from",
            "to",
            "notes"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}