Api Endpoint

CoinGecko Crypto Price & Data

OHLC candlestick data for crypto — daily open/high/low/close candles over 1-365 days for any coin by CoinGecko id, chart-ready.

Open interactive test console

Offering

Provider
coingecko.use.x402atlas.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://coingecko.use.x402atlas.com/ohlc
MIME type
application/json
First seen
2026-10-16T01:50:06.715Z
Last seen
Tags
ohlc, Candles, OHLCV, Crypto, chart, market-data, Price, Coingecko

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.005 USDC
Atomic price: 5000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.005 USDC
Atomic price: 5000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 4
0.005 USDC
Atomic price: 5000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "5000",
    "payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "5000",
    "payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "5000",
    "payTo": "3nXsChcZGke6xebDPmndNMCt8L3yi6xyN4Pd6q5cQrgv"
  }
]

Observed health

Status
Healthy
Latest latency
13 ms
Average latency
97 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "method": {
      "enum": [
        "GET"
      ],
      "type": "string"
    },
    "queryParams": {
      "properties": {
        "days": {
          "description": "Window size in days: one of 1, 7, 14, 30, 90, 180, 365",
          "enum": [
            1,
            7,
            14,
            30,
            90,
            180,
            365
          ],
          "type": "integer"
        },
        "id": {
          "description": "CoinGecko coin id slug",
          "type": "string"
        },
        "vs_currency": {
          "default": "usd",
          "description": "Target currency code (default: usd)",
          "type": "string"
        }
      },
      "required": [
        "id",
        "days"
      ],
      "type": "object"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "days": {
              "description": "Window size in days: one of 1, 7, 14, 30, 90, 180, 365",
              "enum": [
                1,
                7,
                14,
                30,
                90,
                180,
                365
              ],
              "type": "integer"
            },
            "id": {
              "description": "CoinGecko coin id slug",
              "type": "string"
            },
            "vs_currency": {
              "default": "usd",
              "description": "Target currency code (default: usd)",
              "type": "string"
            }
          },
          "required": [
            "id",
            "days"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "candles": {
              "description": "OHLC bars, oldest first",
              "items": {
                "properties": {
                  "close": {
                    "description": "Close price",
                    "type": "number"
                  },
                  "high": {
                    "description": "High price",
                    "type": "number"
                  },
                  "low": {
                    "description": "Low price",
                    "type": "number"
                  },
                  "open": {
                    "description": "Open price",
                    "type": "number"
                  },
                  "time": {
                    "description": "Candle timestamp (UTC)",
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "required": [
                  "time",
                  "open",
                  "high",
                  "low",
                  "close"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "days": {
              "description": "Requested window size in days",
              "type": "integer"
            },
            "id": {
              "description": "CoinGecko coin id slug",
              "type": "string"
            },
            "queried_at": {
              "description": "UTC timestamp the upstream was queried",
              "format": "date-time",
              "type": "string"
            },
            "vs_currency": {
              "description": "Currency the candles are quoted in",
              "type": "string"
            }
          },
          "required": [
            "queried_at",
            "id",
            "vs_currency",
            "days",
            "candles"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}