OpenScan.AI API Usage
The OpenScan.AI API is available at https://xdcscan.io/api/v2 and is Blockscout-compatible, so existing integrations and tooling work out of the box. No API key is required to get started.
Interactive reference and machine-readable spec:
-
Swagger UI — explore and try every endpoint in the browser
-
OpenAPI spec — the OpenAPI definition is served from the Swagger UI; import it into Postman or your codegen tooling
-
XDC API landing page — endpoints overview, quick start, and rate limits
-
REST API v2 — query indexed chain data (blocks, transactions, addresses, tokens, stats) over HTTP
-
Endpoint Showcase — see which v2 endpoints power each explorer UI page, with copy-paste curl examples
-
OpenScan.AI SDK — programmatic access with JavaScript/TypeScript, including transaction notifications and history UI components
-
Migrating from Etherscan — port over seamlessly by swapping base URLs
-
MCP Server — expose the explorer API to AI agents and automation tools via the Model Context Protocol
Get started in 3 steps
No API key is needed today. When keys for higher rate limits go live, they will be created in XDCScan My Account.
Open the API docs
Browse every endpoint interactively in the Swagger UI at xdcscan.io/api-docs. No account or API key needed today.
Copy your first call
Grab the snippet below — it hits the live stats endpoint and works from any terminal or HTTP client.
Make the call
Run it and you have live XDC chain data. When API keys for higher rate limits go live, they will be created in XDCScan My Account.
curl https://xdcscan.io/api/v2/stats