Free Bittensor API

Bittensor data as JSON, with no key and no account.

Taoswap runs on this API, and it is open to anyone building a dashboard, a bot, a wallet, a tax report or research on Bittensor.

First request

Every route sits under https://api.taoswap.org: a plain GET returns JSON, with no key, no account and no sign-up. This request returns the latest trade on subnet 64:

curl 'https://api.taoswap.org/trades/?netuid=64&page_size=1'

CORS admits every website: a page in the browser can call the API directly, as long as it sends no cookies or credentials.

What it covers

  • Subnets and their alpha price candles
  • Validators and their yields
  • The metagraph
  • Accounts and portfolios, with their PnL, ledger and transactions
  • Trades
  • Blocks, extrinsics and events
  • The history before Finney

Rate limits

Limits apply per IP address: 600 requests a minute by default, and 300 on the heavier routes, such as subnets, validators, blocks, events, extrinsics, trades, accounts and portfolios. The proxy also caps each address at 10 requests a second sustained, and blocks for a while an address that keeps exceeding it.

An HTTP 429 answer carries a Retry-After header: wait that long before the next request.

Schema and changes

An OpenAPI 3.0 schema describes every public operation, ready for a client generator.

A route on its way out keeps answering as before for at least 7 days, or 180 for a stable operation, with Deprecation, Sunset and Link headers, then answers 410 Gone, naming its replacement when it has one.

Documentation and support