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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Use case: Integrate onchain graphql apis & dex apis data into web and mobile applications
Bitquery data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Blockchain
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →