# Penny API – Time Conversion

> Penny API – Time Conversion is a paid API for AI agents from pennyagent.pythonanywhere.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-19).

Converts between Unix epoch timestamps and ISO 8601 UTC datetime strings via a pay-per-call GET endpoint

## Facts

- Endpoint: GET https://pennyagent.pythonanywhere.com/paid/timeconv?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/penny-api-time-conversion-ada3a0d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XC1SZ54PZ20KwBOkl8dDP

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 penny-api-time-conversion-ada3a0d3
```

Example prompt: Can you convert the Unix timestamp 1762300000 to a human-readable ISO 8601 UTC datetime string for me?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call time conversion between Unix epoch and ISO 8601 UTC without setting up your own time library or datetime parsing logic, especially in agent workflows where microtransactions via x402/USDC on Base are already supported. It is ideal for quick one-off conversions at $0.001 per call rather than integrating a heavier datetime SDK.

## Known failure modes

- Missing or invalid input timestamp returns an error response
- Malformed datetime string that cannot be parsed may return a 400-level error
- Payment failure (insufficient USDC balance or x402 handshake failure) results in a 402 Payment Required response
- Network or server unavailability on the PythonAnywhere host may cause timeouts

## How this service works

Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.

## Output

A JSON object containing both the Unix epoch timestamp (integer) and the equivalent ISO 8601 UTC datetime string, e.g. {"epoch": 1762300000, "iso_utc": "2025-11-04T23:46:40Z"}

## 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"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "epoch": 1762300000,
  "iso_utc": "2025-11-04T23:46:40Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-api-time-conversion-ada3a0d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyagent.pythonanywhere.com](https://www.zero.xyz/host/pennyagent.pythonanywhere.com/llms.txt)
