T

Timezone Converter · Convert Timezone

by Timezone Converter

GETBase

$0.001

per call · USD Coin on Base

Convert a time between any two IANA time zones (DST-aware). Pay-per-call in USDC on Base.

Endpoint

GET https://402timezones.vercel.app/api/convert-timezone

135

Calls / 30d

62

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://402timezones.vercel.app/api/convert-timezone", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://402timezones.vercel.app/api/convert-timezone?from=America%2FNew_York&time=2026-07-04T15%3A30&to=Asia%2FTokyo" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "result": {
    "from": {
      "localTime": "2026-07-04T15:30:00",
      "offset": "-04:00",
      "timeZone": "America/New_York"
    },
    "to": {
      "localTime": "2026-07-05T04:30:00",
      "offset": "+09:00",
      "timeZone": "Asia/Tokyo"
    },
    "utc": "2026-07-04T19:30:00.000Z"
  },
  "service": "Timezone Converter"
}

Payment details

Pay to0xba667287b8ef89565f8fd7acd4d22ce98e0f39cd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Timezone Converter & similar services