# agent402.tools Current Time API

> agent402.tools Current Time API is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13, last successful call 2026-07-17).

Returns the current UTC time in multiple formats (ISO, epoch seconds/ms, day of week/year, ISO week), with optional IANA timezone conversion.

## Facts

- Endpoint: GET https://agent402.tools/api/time
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-17
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-current-time-api-9a5190bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DDi5n3MMecArhjjINDbZF

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 agent402-tools-current-time-api-9a5190bd
```

Example prompt: What's the current time right now — give me UTC and also convert it to America/Chicago so I can see the local time there?

## When to prefer this

Use this endpoint when an agent needs authoritative current time data in multiple formats simultaneously — especially when epoch seconds/ms, ISO week, and day-of-year are all needed at once, or when timezone conversion is required without a separate conversion step. Prefer over local system time when you need a trusted external time source.

## Known failure modes

- Invalid or unrecognized IANA timezone string returns an error response
- Payment not included or insufficient USDC returns 402 Payment Required
- Network timeout on the endpoint returns a connection error

## How this service works

Current time: UTC ISO, epoch seconds/ms, day of week/year, ISO week - optionally rendered in any IANA timezone via ?tz=.

## Output

Returns a JSON object containing the current time as a UTC ISO 8601 string, Unix epoch in seconds and milliseconds, day of week (name/number), day of year, ISO week number, and if ?tz= is provided, the same moment rendered in the requested IANA timezone.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "tz": "America/Chicago"
  }
 }
}
```

## 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",
     "properties": {
      "tz": {
       "type": "string",
       "description": "IANA timezone (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "utc",
      "epochSeconds",
      "dayOfWeek",
      "local"
     ],
     "properties": {
      "utc": {
       "type": "string"
      },
      "local": {
       "type": "string"
      },
      "dayOfWeek": {
       "type": "string"
      },
      "epochSeconds": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "utc": "2026-06-11T10:00:00.000Z",
  "local": "2026-06-11 06:00:00 EDT",
  "dayOfWeek": "Thursday",
  "epochSeconds": 1781172000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-current-time-api-9a5190bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
