Current price, market cap, and 24h change for a single cryptocurrency by symbol or name (C
Current price, market cap, and 24h change for a single cryptocurrency by symbol or name (CoinGecko).
1000 (raw units)
price
4
calls / 30d
4
unique payers
2026-09-14
updated
Provider
currency-api-production-4a8d.up.railway.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"coin": "bitcoin",
"vs_currency": "usd"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"cached": false,
"change_24h_pct": 1.85,
"coin_id": "bitcoin",
"market_cap": 1327000000000,
"price": 67250,
"query": "bitcoin",
"source": "CoinGecko",
"vs_currency": "usd"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"coin": {
"description": "Cryptocurrency symbol or name, e.g. 'bitcoin', 'btc', or 'ethereum'.",
"type": "string"
},
"vs_currency": {
"description": "Quote currency code, e.g. 'usd'. Defaults to usd if omitted.",
"type": "string"
}
},
"required": [
"coin"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"cached": {
"type": "boolean"
},
"change_24h_pct": {
"type": [
"number",
"null"
]
},
"coin_id": {
"type": "string"
},
"market_cap": {
"type": [
"number",
"null"
]
},
"price": {
"type": "number"
},
"query": {
"type": "string"
},
"source": {
"type": "string"
},
"vs_currency": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://currency-api-production-4a8d.up.railway.app/crypto/price" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://currency-api-production-4a8d.up.railway.app/crypto/price");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://currency-api-production-4a8d.up.railway.app/crypto/price")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/13421.json, and this resource appears in /discovery/resources and /discovery/search.