Use these APIs to read chain state, submit transactions, index historical data, and fund test accounts. Most application code should go through an [official SDK](/build/sdks); the HTTP, GraphQL, and gRPC endpoints below are the underlying services those SDKs call.

## Choose an API

[](#choose-an-api)

<table><thead><tr><th>You need</th><th>Use</th></tr></thead><tbody><tr><td>Latest on-chain state, transaction submission, or simulation</td><td><a href="/build/apis/fullnode-rest-api">Fullnode REST API</a></td></tr><tr><td>NFTs, objects, historical activity, or aggregated tables</td><td><a href="/build/indexer">Indexer GraphQL API</a></td></tr><tr><td>A real-time or historical transaction feed for a custom indexer</td><td><a href="/build/indexer/txn-stream">Transaction Stream (gRPC)</a></td></tr><tr><td>Test APT on Devnet or Testnet</td><td><a href="/build/apis/faucet-api">Faucet API</a></td></tr><tr><td>SQL, dashboards, or third-party RPC</td><td><a href="/build/apis/data-providers">Data providers</a></td></tr></tbody></table>

## Official Aptos Labs endpoints

[](#official-aptos-labs-endpoints)

[Aptos Labs](https://aptoslabs.com) operates these deployments for each [Aptos network](/network/nodes/networks) on behalf of the [Aptos Foundation](https://aptosnetwork.com/foundation). `fullnode.{network}.aptoslabs.com` is an alias of `api.{network}.aptoslabs.com`; prefer the `api.` hostnames.

<table><thead><tr><th>Network</th><th>REST API (<code dir="auto">/v1</code>)</th><th>Indexer GraphQL</th><th>Transaction Stream gRPC</th><th>Faucet</th></tr></thead><tbody><tr><td>Mainnet</td><td><code dir="auto">https://api.mainnet.aptoslabs.com/v1</code></td><td><code dir="auto">https://api.mainnet.aptoslabs.com/v1/graphql</code></td><td><code dir="auto">grpc.mainnet.aptoslabs.com:443</code></td><td>—</td></tr><tr><td>Testnet</td><td><code dir="auto">https://api.testnet.aptoslabs.com/v1</code></td><td><code dir="auto">https://api.testnet.aptoslabs.com/v1/graphql</code></td><td><code dir="auto">grpc.testnet.aptoslabs.com:443</code></td><td><a href="/network/faucet">Mint page</a> and <code dir="auto">https://faucet-e2.testnet.aptoslabs.com</code> (Google sign-in)</td></tr><tr><td>Devnet</td><td><code dir="auto">https://api.devnet.aptoslabs.com/v1</code></td><td><code dir="auto">https://api.devnet.aptoslabs.com/v1/graphql</code></td><td><code dir="auto">grpc.devnet.aptoslabs.com:443</code></td><td><code dir="auto">https://faucet.devnet.aptoslabs.com</code> (programmatic)</td></tr></tbody></table>

The Node API spec is published on this site as [OpenAPI JSON](/aptos-spec.json) and a browsable [REST API reference](/rest-api). Live Swagger UIs also run on each fullnode at `/v1/spec`.

## Fullnode REST API

[](#fullnode-rest-api)

This API ships with every fullnode. It is the low-latency path for reading state, submitting transactions, and simulating transactions.

[REST API reference](/rest-api) Browsable docs generated from the Aptos Node API OpenAPI spec

[REST API guide](/build/apis/fullnode-rest-api) Rate limits, pruning, view functions, and how to query state

[Mainnet explorer](https://api.mainnet.aptoslabs.com/v1/spec#/) Live Swagger UI against api.mainnet.aptoslabs.com

[Testnet explorer](https://api.testnet.aptoslabs.com/v1/spec#/) Live Swagger UI against api.testnet.aptoslabs.com

[Devnet explorer](https://api.devnet.aptoslabs.com/v1/spec#/) Live Swagger UI against api.devnet.aptoslabs.com

## Indexer

[](#indexer)

[Indexer GraphQL API](/build/indexer) High-level GraphQL for NFTs, Aptos Objects, fungible assets, and custom contract data

[Transaction Stream API](/build/indexer/txn-stream) gRPC stream of historical and real-time transactions for Aptos Core Indexing and app-specific processors

## Faucet (Devnet and Testnet)

[](#faucet-devnet-and-testnet)

[Faucet API](/build/apis/faucet-api) Mint test APT on Devnet programmatically, or on Testnet through Google sign-in / the mint page

## Geomi and data providers

[](#geomi-and-data-providers)

[Geomi](/build/apis/aptos-labs-developer-portal) API keys, higher rate limits, gas station, and no-code indexing for Aptos Labs hosted APIs

[Data providers](/build/apis/data-providers) SQL datasets, analytics dashboards, and third-party RPC endpoints

The Node API, Indexer, Transaction Stream, and faucet implementations are open source in [aptos-core](https://github.com/aptos-labs/aptos-core). Anyone can run them; independent operators and builders do so worldwide. Additional RPC vendors are listed in the [Aptos ecosystem directory](https://aptosnetwork.com/ecosystem/directory/category/rpc).

## Authentication and rate limits

[](#authentication-and-rate-limits)

Labs-hosted Node, Indexer, and Transaction Stream APIs allow **anonymous** access with a low per-IP rate limit. For higher limits and usage metrics, create a [Geomi](https://geomi.dev/) API key and send it as a bearer token.

```
curl "https://api.mainnet.aptoslabs.com/v1" \  -H "Authorization: Bearer YOUR_API_KEY"
```

```
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
const aptos = new Aptos(  new AptosConfig({    network: Network.MAINNET,    clientConfig: { API_KEY: process.env.APTOS_API_KEY },  }),);
```

Note

Usage is metered in compute units (CUs), and organizations also have HTTP rate limits. See the [Geomi billing docs](https://geomi.dev/docs/admin/billing) for current limits and pricing. Create a key from the [Geomi getting started guide](https://geomi.dev/docs/start).