78trust / 100

Timezone

by agentshelf.syntexa.ch in Weather & location

x402 APIPassing, checked 2 h ago

Call when an agent needs an IANA timezone, local_time ISO, utc_offset, and dst for coordinates or a city. Send lat and lon together (example 40.7128 and -74.006) or city (example New York). A city is geocoded first. Timezone data is offline. No arbitrary URL. Send JSON {"lat":40.7128,"lon":-74.006}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/timezone first.

POST https://agentshelf.syntexa.ch/v1/timezone

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentshelf.syntexa.ch/v1/timezone" \
  -H "content-type: application/json" \
  -d '{"lat":40.7128,"lon":-74.006}'
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%2Fagentshelf.syntexa.ch%2Fv1%2Ftimezone
const res = await pay("https://agentshelf.syntexa.ch/v1/timezone", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"lat":40.7128,"lon":-74.006}),
});
console.log(await res.json());

Example input

{
  "lat": 40.7128,
  "lon": -74.006
}

Example output

{
  "billed": true,
  "dst": false,
  "lat": 40.7128,
  "local_time": "2026-01-15T12:00:00-05:00",
  "lon": -74.006,
  "ok": true,
  "place": null,
  "receipt_id": "rcpt_01EXAMPLE000000000000000",
  "resolved_from": "coordinates",
  "timezone": "America/New_York",
  "utc_offset": "-05:00",
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40231 ms$0.002
6 h agoPassed40230 ms$0.002
9 h agoPassed40233 ms$0.002
13 h agoPassed40234 ms$0.002
17 h agoPassed40232 ms$0.002
20 h agoPassed40231 ms$0.002
23 h agoPassed40231 ms$0.002
27 h agoPassed40233 ms$0.002
31 h agoPassed40231 ms$0.002
35 h agoPassed40234 ms$0.002
38 h agoPassed40232 ms$0.002
42 h agoPassed40230 ms$0.002
45 h agoPassed40235 ms$0.002
2 days agoPassed40229 ms$0.002