INFURA Ethereum API

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

Overview

INFURA provides hosted Ethereum node access via a simple HTTPS API, eliminating the need to run your own full node to interact with the Ethereum blockchain. Developers can read blockchain state, send transactions, and interact with smart contracts using standard JSON-RPC methods like eth_getBalance and eth_call. It is one of the most widely used Ethereum infrastructure services, powering apps like MetaMask.

💡

Beginner Tip

Sign up for a free INFURA account to get a Project ID, then substitute it into the URL; the free tier allows 100,000 requests per day — more than enough to learn Ethereum development without running any local node software.

Available Data

coin price in USD/EUR
market capitalization
24h price change
trading volume
circulating supply

Example Response

JSON Response
{
  "id": "bitcoin",
  "symbol": "btc",
  "current_price": 65432.1,
  "market_cap": 1280000000000,
  "price_change_24h": 1250.5,
  "price_change_percentage_24h": 1.95,
  "total_volume": 28500000000
}

Field Reference

jsonrpc JSON-RPC protocol version, always "2.0".
id The ID you sent in the request, used to match responses to requests.
result The method's return value encoded as a hex string (e.g., "0x10d4f" for a block number).
error Present only on failure; contains code (integer) and message (string) explaining the error.

Implementation Example

const url = "https://infura.io/product/ethereum";
// 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 (PROJECT_ID_INVALID) The Project ID in the endpoint URL is missing or incorrect.
Replace YOUR_PROJECT_ID in the URL with the actual Project ID from your INFURA dashboard at infura.io.
method not found (-32601) Calling a JSON-RPC method name that does not exist or is misspelled.
Check the Ethereum JSON-RPC specification; common methods are eth_blockNumber, eth_getBalance, and eth_call.
Invalid params (-32602) Ethereum addresses or parameters were passed in the wrong format.
All Ethereum addresses must be 42-character hex strings starting with "0x"; block tags must be "latest", "earliest", or a hex number.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/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 Cryptocurrency
Difficulty Intermediate
Verified: 2026-04-07

Similar APIs

View All →