API

SDKs & clients

CoinGraph is plain HTTP and MCP, so every language works today. Official SDKs and agent-framework plugins are being published; until then, these are the supported ways in.

Way inStatusUse it for
HTTP from any languageSupportedEvery endpoint, with the same envelope: { object, id, as_of, data, sources }
Client generated from OpenAPISupportedTyped clients in TypeScript, Python, Go and more from /openapi.json
MCP SDKs (TypeScript, Python)SupportedAgents and assistants; see any MCP client
CoinGraph SDK for TypeScript and PythonBeing publishedTyped calls and retries, with x402 payment once it launches
AgentKit and ElizaOS pluginsBeing publishedCoinGraph checks as actions inside those agent frameworks

Plain HTTP #

For complete scripts you can copy and run, see the starter files.

const res = await fetch("https://coingraph.ai/api/v1/evaluate/chainlink");
const { data, sources } = await res.json();
console.log(data.verdict, data.confidence, sources.length);

A typed client from the OpenAPI spec #

The spec at https://coingraph.ai/openapi.json describes every endpoint, parameter and response. Generate types once and call the API with full autocompletion:

npx openapi-typescript https://coingraph.ai/openapi.json -o coingraph.d.ts
npm install openapi-fetch

Paying per call #

Paid endpoints need an API key: Authorization: Bearer cg_live_…. Pay-per-call with x402 is coming soon; see Keys & pricing to join the waitlist.

✓

Tip

Want the SDK or a framework plugin early? Ask for early access: design partners get it first.