Skip to main content
0xAPI gives developers fast, structured access to on-chain data across multiple networks. Designed for reliability and ease of use, it offers targeted endpoints for core blockchain entities like:
  • tokens,
  • NFTs,
  • transactions,
  • blocks,
  • wallets, and
  • events

No account yet?

Create an account - free dev plan, no card required.

Prerequisites

Before you begin, make sure you have:

Get started

Step 1: Identify the base URL

The base URL for all requests is:
https://api.data.ormilabs.com/
Each query starts with this base URL, followed by a specific endpoint path.

Step 2: Add the endpoint path

0xGraph API Keys
For example, to fetch block data from Ethereum mainnet:
/v2/eth-mainnet/blocks

Resources

Step 3: Include query parameters

Use query parameters to customize your request and narrow down the results. Common examples include filtering by wallet address, limiting response size, or selecting specific block ranges.
?wallet_address=0x...&limit=20&from_block=10000000
0xGraph API Keys
Each endpoint supports its own parameter set - see the API Reference for details.

Step 4: Add authentication headers

Authorization: Bearer YOUR_API_KEY

Step 5: Make the request

Use your REST client to send a GET request to the constructed URL. Below is a minimal example using curl:
curl --request GET \
  --url https://api.data.ormilabs.com/v2/{chain_name}/blocks \
  --header 'Authorization: Bearer <token>'
Replace <token> with your API key and {chain_name} with the network you’re querying (ex. eth-mainnet).

Next steps

I