API Directory › 🔗 Blockchain & Web3 › Moralis
API KeyHTTPSCORS

Moralis API

Cross-chain Web3 data APIs — balances, NFTs, transfers and more.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open Moralis docs ↗

What it does

Moralis is a Web3 data API: given a wallet address you get native and ERC-20 balances, token and NFT holdings with metadata and prices, transaction and transfer history, DeFi positions, and token/pair price data — across Ethereum, most EVM chains and Solana — without running nodes or indexers.

Base URL

https://deep-index.moralis.io/api/v2.2

Authentication

Sign up for a free API key and send it as the X-API-Key header. The chain is a query parameter (?chain=eth, ?chain=polygon, ?chain=base…).

Code examples

curl
curl -s "https://deep-index.moralis.io/api/v2.2/0xd8dA6BF.../erc20?chain=eth" \
  -H "X-API-Key: $MORALIS_KEY"
Python (wallet NFTs)
import requests

r = requests.get(
  "https://deep-index.moralis.io/api/v2.2/0xd8dA6BF.../nft",
  params={"chain": "eth", "limit": 5, "normalizeMetadata": "true"},
  headers={"X-API-Key": KEY}, timeout=15)
for n in r.json()["result"]:
    print(n["name"], n["token_id"])

Rate limits & quotas

Free plan: roughly 40,000 compute units/day and about 25 requests/second. Endpoints cost different CU amounts (metadata-heavy and price calls cost more). Over the rate limit returns HTTP 429; over the daily CU budget returns a quota error. Many list endpoints paginate with a cursor.

Key response fields

(erc20) [].token_address / symbol / balance / decimalsFungible token holdings
(nft) result[].token_address / token_id / name / metadataNFT holdings (parsed with normalizeMetadata)
(transactions) result[].hash / from_address / value / block_timestampHistory
(price) usdPrice / nativePrice / exchangeNameToken price via on-chain DEX data
cursorOpaque pagination token

Common errors

401Missing or invalid X-API-Key.
429Requests-per-second or daily CU limit exceeded.
400 C0006 / C0005Bad address, unsupported chain, or invalid parameter.
404No data (e.g. a token with no DEX liquidity for a price call).

When to use it (and alternatives)

The fastest route to wallet-centric features — portfolio views, ‘tokens you hold’, NFT galleries, transaction feeds. Covalent is the closest alternative (more chains, credit model); Alchemy pairs similar data endpoints with full RPC.

FAQ

Does Moralis give me RPC access too?

Moralis focuses on the data API. It offers node endpoints on some plans, but if RPC is your main need, pair it with Alchemy or Infura.

How do I get clean NFT metadata?

Pass normalizeMetadata=true so Moralis resolves IPFS and returns a consistent name/image/attributes shape instead of raw, inconsistent token URIs.

What counts against my daily budget?

Compute units, not requests. Check each endpoint’s CU cost in the docs; price and metadata-enrichment calls are the expensive ones.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Blockchain & Web3 APIs

← Back

More Blockchain & Web3 APIs · All 196 APIs