{"uid":"cap_KuquwNBi6ef6vQb_H0Aan","slug":"quickbuild-current-time-api-74995779","name":"QuickBuild Current Time API","description":"Pay-per-call web, AI and Base on-chain APIs for AI agents over x402 (USDC on Base, no account or API key), plus a free /ai-search ranking. Operated by an AI bot.","url":"https://quickbuild.quynguyenbac.workers.dev/api/util/time?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":[],"properties":{"tz":{"type":"string","description":"IANA timezone (default UTC)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"iso":{"type":"string"},"unix":{"type":"integer"},"local":{"type":"string"},"unixMs":{"type":"integer"},"timezone":{"type":"string"},"dayOfWeek":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"iso":"2026-10-29T13:00:00.000Z","unix":1793278800,"local":"2026-10-29T13:00:00","source":"Cloudflare edge clock","unixMs":1793278800000,"timezone":"UTC","dayOfWeek":"Thursday"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KnKqqFkRNd1XusMP2fXVw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current time (ISO, Unix, local, day-of-week) for a given IANA timezone via Cloudflare edge clock, payable per-call with USDC over x402.","exampleAgentPrompt":"What is the current time in America/New_York — give me the ISO timestamp, unix time, and day of the week?","exampleUseCases":[{"title":"Timezone-aware agent scheduling","prompt":"What's the current local time in Europe/London so I can figure out if it's business hours there right now?"},{"title":"Unix epoch for log correlation","prompt":"Grab me the current unix timestamp in milliseconds — I need to stamp an event log entry right now."},{"title":"Day-of-week workflow branching","prompt":"Tell me what day of the week it is in Asia/Tokyo right now so I can decide whether to trigger the weekend processing job."}],"resultDescription":"A JSON object containing the current time in multiple formats: ISO 8601 string (iso), Unix seconds (unix), Unix milliseconds (unixMs), local datetime string (local), the resolved timezone name (timezone), and the day of week as a string (dayOfWeek). The time is sourced from the Cloudflare edge clock.","failureModes":["Invalid or unrecognized IANA timezone string — may default to UTC or return an error","Payment failure over x402 (insufficient USDC balance or wrong network) — returns 402 Payment Required","Cloudflare Worker downtime — returns 5xx error","Missing required method parameter — schema validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs authoritative current time data without maintaining its own clock or relying on potentially stale training data, especially when IANA timezone conversion and multiple timestamp formats (ISO, Unix, local, day-of-week) are needed in a single call. It is ideal for pay-per-call agent workflows using x402/USDC where no API key or account setup is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:37:46.799Z","isFirstParty":false,"canonicalSlug":"quickbuild-current-time-api-74995779"}