81trust / 100

Proxy Timezone

by Timezone and Local Time in Weather & location

x402 APIPassing, checked 1 h ago

Resolve a city name or coordinates to its IANA timezone and return the current local time, UTC offset, DST flag and weekday. Use for scheduling across regions, 'what time is it in X', or normalizing timestamps. Params: location (required, e.g. 'Tokyo' or '35.68,139.69').

POST https://agentsvc.io/api/v1/proxy/timezone

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
27 ms typical, 27 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/timezone" \
  -H "content-type: application/json" \
  -d '{"location":"Tokyo"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Ftimezone
const res = await pay("https://agentsvc.io/api/v1/proxy/timezone", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"location":"Tokyo"}),
});
console.log(await res.json());

Example input

{
  "location": "Tokyo"
}

Example output

{
  "data": {
    "abbreviation": "JST",
    "is_dst": false,
    "local_date": "2026-09-09",
    "local_time": "2026-09-09T21:00:00+09:00",
    "location": {
      "country": "Japan",
      "lat": 35.6895,
      "lon": 139.6917,
      "name": "Tokyo"
    },
    "timezone": "Asia/Tokyo",
    "unix_time": 1788955200,
    "utc_offset": "+09:00",
    "utc_offset_seconds": 32400,
    "utc_time": "2026-09-09T12:00:00.000Z",
    "weekday": "Wednesday"
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402122 ms$0.002
6 h agoPassed40227 ms$0.002