API
API
A JSON API over HTTPS. Every response is sourced and timed, and anything that goes on the record carries an id you can prove.
Base URL #
https://coingraph.ai/api/v1
No key is needed to start. The base URL already includes /v1; paths below are written as /v1/… so that they read like the OpenAPI spec.
curl "https://coingraph.ai/api/v1/state/cardano?sections=market"Requests and responses #
- Send JSON bodies with
content-type: application/json. Bodies are limited to 16 KB. - Tokens can be given as a CoinGecko id (
cardano), a symbol (LINK) or a contract address. - Every response is
{ object, id, as_of, data, sources }. See Concepts. - Paid calls take
Authorization: Bearer cg_live_…; pay-per-call with x402 is coming soon. Prices are in credits; 1 credit is $0.01. See Keys & pricing. - CORS is open, so browsers can call the API directly. Errors, limits and clamps: Errors & limits.
Endpoints #
Discover · Find what CoinGraph covers and whether it is healthy.
| Endpoint | Call | Auth | Credits |
|---|---|---|---|
| List & search tokens | GET /v1/tokens | none | free |
| Service status | GET /v1/status | none | free |
Understand · Everything CoinGraph knows, as data.
| Endpoint | Call | Auth | Credits |
|---|---|---|---|
| Token state | GET /v1/state/{token} | key after 25 a day | 1 |
| Token history | GET /v1/history/{token} | key after 25 a day | 1 |
| Market overview | GET /v1/market | key after 25 a day | 1 |
| Inspect an address | GET /v1/inspect/{chain}/{address} | key | 5 |
Decide · Ask CoinGraph to think. Creates objects with ids that go on the public record.
| Endpoint | Call | Auth | Credits |
|---|---|---|---|
| Evaluate a token | GET /v1/evaluate/{token} | none | free |
| POST /v1/evaluate | key | 5 | |
| Explain a move | GET /v1/explain/{token} | none | free |
| GET /v1/explain/{token}/{id} | none | free | |
| POST /v1/explain | key | 5 | |
| Ask or check a claim | POST /v1/ask | key | 10 |
| Run an agent | GET /v1/agents | none | free |
| GET /v1/agents/{id} | none | free | |
| POST /v1/agents/{id} | key | 5 (premium) or 25 (pro) |
Watch · Get told when something changes.
| Endpoint | Call | Auth | Credits |
|---|---|---|---|
| Monitors & webhooks | POST /v1/monitor | key | 5 |
| GET /v1/monitor | secret | free | |
| DELETE /v1/monitor/{id} | secret | free |
Trust · Check CoinGraph's record and prove what you were told.
| Endpoint | Call | Auth | Credits |
|---|---|---|---|
| Track record | GET /v1/record | none | free |
| GET /v1/record/{token} | none | free | |
| Verify a proof | GET /v1/verify/{id} | none | free |
Machine-readable #
| Resource | Use |
|---|---|
| /openapi.json | OpenAPI 3.1 for code generators and agent frameworks. |
| /llms.txt | A short guide for language models. |
| /mcp | The same capabilities as MCP tools. |
Credits
Discover and Trust calls are free. Data calls have a daily free allowance of 25, then cost 5 credits. Premium calls cost 25, written answers 50 and Pro agents 125, with an API key. Pay-per-call with x402 is coming soon. The MCP tools cost the same as the REST calls behind them.