Integrate indexed blockchain data into your applications using the OpenScan.AI REST API.
The REST API is the primary integration surface: every page on xdcscan.io is backed by public endpoints you can call from any language. No proprietary SDK is required — the API is Blockscout-compatible, so standard HTTP and web3 libraries work directly.
When to use the API
- Dashboards showing balances, transfers, or network stats
- Backends that need transaction history or token holder data
- Bots and automation reacting to on-chain events
- Wallets and portfolio trackers
- Analytics pipelines exporting chain data
Quick example
curl https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678const res = await fetch( "https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678",);const { coin_balance } = await res.json();console.log(Number(coin_balance) / 1e18, "XDC");Where to go next
The complete API documentation lives in the API Documentation section:
- REST API v2 Overview — endpoint groups and conventions
- Tokens API Reference — tokens, transfers, holders
- Search & Filtering Guide — search and pagination
- Client SDKs & Libraries — fetch, axios, viem, web3.py
- Quick Start — first calls in minutes
- API Keys & Rate Limits — authenticate for higher limits
- Examples — portfolio tracker, whale alerts, CSV export
- Full API Reference — every endpoint
Interactive, try-it-now docs are at xdcscan.io/api-docs.
Related services
- Alerts & Webhooks — push notifications instead of polling
- Contract Verification — make your contracts decodable via the API
- Account API — keys, watchlists, private tags