0X Swap Get Chains Example is an example object payload from 0x, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"request": {
"method": "GET",
"url": "https://api.0x.org/swap/chains",
"headers": {
"0x-api-key": "YOUR_API_KEY",
"0x-version": "v2"
}
},
"response": {
"status": 200,
"body": {
"chains": [
{"chainId": 1, "name": "Ethereum", "shortName": "eth"},
{"chainId": 2741, "name": "Abstract", "shortName": "abstract"},
{"chainId": 42161, "name": "Arbitrum One", "shortName": "arb"},
{"chainId": 43114, "name": "Avalanche C-Chain", "shortName": "avax"},
{"chainId": 8453, "name": "Base", "shortName": "base"},
{"chainId": 80094, "name": "Berachain", "shortName": "bera"},
{"chainId": 56, "name": "BNB Smart Chain", "shortName": "bnb"},
{"chainId": 999, "name": "HyperEVM", "shortName": "hyperevm"},
{"chainId": 57073, "name": "Ink", "shortName": "ink"},
{"chainId": 59144, "name": "Linea", "shortName": "linea"},
{"chainId": 5000, "name": "Mantle", "shortName": "mantle"},
{"chainId": 143, "name": "Monad", "shortName": "monad"},
{"chainId": 10, "name": "OP Mainnet", "shortName": "op"},
{"chainId": 9745, "name": "Plasma", "shortName": "plasma"},
{"chainId": 137, "name": "Polygon", "shortName": "polygon"},
{"chainId": 534352, "name": "Scroll", "shortName": "scroll"},
{"chainId": 146, "name": "Sonic", "shortName": "sonic"},
{"chainId": 4217, "name": "Tempo", "shortName": "tempo"},
{"chainId": 130, "name": "Unichain", "shortName": "unichain"},
{"chainId": 480, "name": "World Chain", "shortName": "world"}
]
}
}
}
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/0x-swap-get-chains-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
A second provider on the same verified email joins the account you already have.