Bitquery API

Blockchain / API Key Intermediate HTTPS CORS
Varies by plan (check documentation)

Overview

Bitquery provides GraphQL APIs for querying on-chain data across 40+ blockchains including Ethereum, Solana, and BSC. It's ideal for tracking transactions, token transfers, DEX trades, and wallet activity.

💡

Beginner Tip

Use the Bitquery IDE at ide.bitquery.io to write and test GraphQL queries interactively before integrating them into your code — it has schema autocomplete and live results.

Available Data

Use case: Integrate onchain graphql apis & dex apis data into web and mobile applications
Bitquery data via REST API
JSON-formatted response data
Requires API key authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Bitquery",
    "description": "Onchain GraphQL APIs & DEX APIs",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

data Root wrapper for all GraphQL response data; your queried blockchain data lives here.
hash Unique transaction hash (txid) that identifies this transaction on the blockchain.
gasValue Amount of ETH spent on gas fees for this transaction.
sender.address Wallet address that initiated the transaction.
receiver.address Wallet address that received the transaction.

Implementation Example

const url = "https://graphql.bitquery.io/ide";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized / X-API-KEY missing API key not included in the request header
Add 'X-API-KEY: YOUR_API_KEY' to every request header; get your key by signing up at bitquery.io.
GraphQL syntax error Malformed GraphQL query — common issues include missing closing braces or incorrect field names
Use the Bitquery IDE to validate queries before sending them programmatically; check field names against the schema explorer.
Rate limit exceeded Free tier has limited query points per day
Cache query results locally, reduce query frequency, or upgrade your plan; use the 'limit' argument in queries to fetch only what you need.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 17/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Blockchain
Difficulty Intermediate
Verified: 2026-04-07

Similar APIs

View All →