# three.ws Crypto Market Chart

> three.ws Crypto Market Chart is a paid API for AI agents from three.ws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-23).

Fetches historical OHLCV-style price data for a given cryptocurrency over a specified time window using CoinGecko coin IDs.

## Facts

- Endpoint: GET https://three.ws/api/x402/market-chart?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/three-ws-crypto-market-chart-43d8d9e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B5D9MUqEh0P01s2J_TQZd

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 three-ws-crypto-market-chart-43d8d9e0
```

Example prompt: Can you pull up the 30-day historical price chart for bitcoin from three.ws — I want to see the timestamp and price data points?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call historical cryptocurrency price data billed in USDC micropayments via the x402 protocol, especially within an agent workflow that already operates on the three.ws platform or needs to avoid subscription-based data providers.

## Known failure modes

- Invalid or unrecognized CoinGecko coin ID returns an error or empty data
- Invalid 'days' value (not in 1/7/30/90/365) may return an error or fall back to default
- Missing required 'id' query parameter returns a 400-level error
- Payment not processed (x402 micropayment failure) results in 402 response blocking data access
- Rate limiting or upstream CoinGecko unavailability may cause 5xx errors

## How this service works

Make a 3D AI agent from a selfie in 60 seconds. Drop one HTML tag to embed it on any website. Agents think on IBM watsonx.ai (Granite); optionally charge per chat with built-in micropayments.

## Output

Returns a JSON object containing an array of [timestamp, price] pairs covering the requested time window (default 30 days), plus the 'days' field confirming the window used. Timestamps are Unix milliseconds; prices are in USD.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "CoinGecko coin id (lowercase slug, e.g. bitcoin)."
      },
      "days": {
       "type": "string",
       "description": "Window: 1, 7, 30, 90, or 365. Default 30."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   [
    1751846400000,
    107544.8
   ],
   [
    1751932800000,
    108234.12
   ]
  ],
  "days": 30
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/three-ws-crypto-market-chart-43d8d9e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from three.ws](https://www.zero.xyz/host/three.ws/llms.txt)
