# apiwitchcraft Crypto Price Lookup (CoinGecko)

> apiwitchcraft Crypto Price Lookup (CoinGecko) is a paid API for AI agents from apiwitchcraft.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns current cryptocurrency prices by CoinGecko coin ID via a GET request.

## Facts

- Endpoint: GET https://apiwitchcraft.duckdns.org/crypto/price
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiwitchcraft-crypto-price-lookup-coingecko-dffb7d6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YqzjdiNHGiJAiowSso5UN

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 apiwitchcraft-crypto-price-lookup-coingecko-dffb7d6a
```

Example prompt: What's the current price of Bitcoin and Ethereum? Use the CoinGecko IDs 'bitcoin' and 'ethereum'.

## When to prefer this

Use this endpoint when you need current cryptocurrency prices by CoinGecko coin ID, especially in x402/micropayment-enabled agent workflows where per-call billing is acceptable. Prefer over scraping or free tiers when you need reliable, low-latency price data in an automated pipeline.

## Known failure modes

- Missing or invalid 'ids' query parameter returns an error
- Unknown or misspelled CoinGecko coin ID returns no price data
- CoinGecko upstream outage causes service unavailability
- Rate limiting or payment failure (x402) blocks the request

## How this service works

Real-time cryptocurrency spot prices for any asset by ticker (BTC, ETH, SOL), CoinGecko id, or chain:address (base:0x...). Returns current price, 24h change, market cap, volume, and a confidence score aggregated from multiple exchanges. x402 pay-per-call on Base USDC — no API key, no subscription. Built for trading bots, portfolio trackers, and AI agents needing live token pricing.

## Output

Returns current price data for the requested CoinGecko coin IDs, including USD market price values sourced from CoinGecko.

## 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": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiwitchcraft-crypto-price-lookup-coingecko-dffb7d6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiwitchcraft.duckdns.org](https://www.zero.xyz/host/apiwitchcraft.duckdns.org/llms.txt)
