Skip to content

Indexer API Access

Aptos Labs hosts a public version of the Indexer GraphQL API that anyone can use to get basic historical and aggregate data about transactions, fungible assets, and tokens from on-chain.

You can explore it by hand by viewing the Hasura Explorer below for the network you are interested in.

You can also access the API via the GraphQL endpoints below. For more information on the format of data in each field / table, please see the table reference page.

The primary way to use the Indexer is to access it through the TypeScript SDK.

The TypeScript SDK will automatically handle rate limits, and can seamlessly allow for both Fullnode REST API access and Indexer access depending on what data is needed.

Choose a network to explore the free Aptos-Hosted Indexer API using the Hasura Explorer:

If you need to directly make GraphQL queries to the Aptos-Labs hosted Indexer API, then use the following endpoints:

  • Mainnet: https://api.mainnet.aptoslabs.com/v1/graphql
  • Testnet: https://api.testnet.aptoslabs.com/v1/graphql
  • Devnet: https://api.devnet.aptoslabs.com/v1/graphql

Learn more about the rate limits that apply to the Aptos Labs hosted indexer API by reading the Aptos Build docs.

If you need a higher rate limit, consider the following solutions:

  1. Get an API Key from Aptos Build. Learn more about API keys at the Aptos Build docs site.
  2. Run the Aptos Indexer API yourself. See the guide to self-hosting here.