# three.ws Market Coin Data

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

Fetches real-time cryptocurrency market data (price, market cap, ATH, rank) for a given coin by CoinGecko ID or Solana token mint address.

## Facts

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

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-market-coin-data-fa43b853
```

Example prompt: What's the current price, market cap, and all-time high for Bitcoin right now? Use the CoinGecko slug 'bitcoin'.

## When to prefer this

Choose this endpoint when you need quick, pay-per-call cryptocurrency market data (price, market cap, ATH, rank) for either a named CoinGecko coin or a Solana SPL token by mint address, without needing a subscription API key. Ideal for lightweight agent workflows that need spot crypto data infrequently and want micropayment-based access.

## Known failure modes

- Invalid or unknown CoinGecko coin ID returns an error or empty result
- Invalid Solana mint address (not a valid base58 public key) causes a lookup failure
- Neither 'id' nor 'contract' provided results in a missing required parameter error
- Payment of 0.001 USDC not received causes a 402 Payment Required response
- CoinGecko upstream outage may cause stale or unavailable data

## 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 with the coin's CoinGecko ID, name, ticker symbol, global rank, current price, market cap, all-time high, and homepage URL.

## 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",
     "properties": {
      "id": {
       "type": "string",
       "description": "CoinGecko coin id (lowercase slug, e.g. bitcoin). Required unless contract is set."
      },
      "contract": {
       "type": "string",
       "description": "Solana token mint (base58) — alternative lookup key to id."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": {
   "id": "bitcoin",
   "name": "Bitcoin",
   "rank": 1,
   "links": {
    "homepage": "https://bitcoin.org"
   },
   "market": {
    "ath": 126789.55,
    "price": 108234.12,
    "market_cap": 2140000000000
   },
   "symbol": "BTC"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/three-ws-market-coin-data-fa43b853/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)
