# QuickBuild Current Time API

> QuickBuild Current Time API is a paid API for AI agents from quickbuild.quynguyenbac.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-23).

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.

## Facts

- Endpoint: GET https://quickbuild.quynguyenbac.workers.dev/api/util/time?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quickbuild-current-time-api-74995779
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KuquwNBi6ef6vQb_H0Aan

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability quickbuild-current-time-api-74995779
```

Example prompt: What is the current time in America/New_York — give me the ISO timestamp, unix time, and day of the week?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quickbuild-current-time-api-74995779/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quickbuild.quynguyenbac.workers.dev](https://www.zero.xyz/host/quickbuild.quynguyenbac.workers.dev/llms.txt)
