# Overview (https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/api/overview/content.md)



Access TON data via public liteservers, hosted APIs (TON Center v2/v3, dTON), or self-hosted options.

<Callout type="note">
  For available SDKs that rely on some of these APIs, see the [SDK overview](https://docs-mpppm4893-ton-core-docs.vercel.app/llms/applications/sdks/content.md) in the Applications section.
</Callout>

## Comparison table [#comparison-table]

### Requests [#requests]

| Feature                   | Public liteservers                | TON Center v2            | TON Center v3         | dTON              |
| ------------------------- | --------------------------------- | ------------------------ | --------------------- | ----------------- |
| **Can be self-hosted?**   | ✅                                | ✅                       | ✅                    | ❌                |
| **Open-source**           | ✅                                | ✅                       | ✅                    | ❌                |
| **Indexer**<sup>1</sup>   | ❌                                | ❌                       | ✅                    | ✅                |
| **Archival**<sup>2</sup>  | 🟡 Varies                         | 🟡 Depends on liteserver | ✅                    | ✅                |
| **Proofs**<sup>3</sup>    | ✅                                | ❌                       | ❌                    | ❌                |
| **Mainnet endpoint**      | [Config][c]                       | [Endpoint][etc-v2]       | [Endpoint][etc-v3]    | [GraphQL][edt]    |
| **Testnet endpoint**      | [Config][c-tn]                    | [Endpoint][etc-v2-tn]    | [Endpoint][etc-v3-tn] | [GraphQL][edt-tn] |
| **Source / Deploy guide** | [Run node / liteserver][ls-setup] | [Deploy][etc-v2-src]     | [Source][etc-v3-src]  | —                 |
| **Documentation**         | [Guide][ls-doc]                   | [Docs][etc-v2-doc]       | [Docs][etc-v3-doc]    | [Site][edt-doc]   |

<sup>1</sup> **Indexer** means the service maintains its own database derived from blockchain data for richer queries (traces, jettons, NFTs, etc.), beyond raw liteserver RPC.

<sup>2</sup> **Archival** indicates historical data retention. For liteservers, this depends on the node's archival configuration; hosted indexers typically keep full history, but exact retention policies are service-specific.

<sup>3</sup> **Proofs** denote responses that can be verified without trust using cryptographic proofs from the network (liteserver/tonlib-based). HTTP indexers typically do not return proof bundles in their REST/GraphQL responses.

### Streaming [#streaming]

| Feature                    | TON Center Streaming API v2                |
| -------------------------- | ------------------------------------------ |
| **Protocol compatibility** | Native reference implementation            |
| **Mainnet endpoints**      | [SSE][etc-sse], [WebSocket][etc-wss]       |
| **Testnet endpoints**      | [SSE][etc-sse-tn], [WebSocket][etc-wss-tn] |
| **Authentication**         | [TON Center][etc-key]                      |
| **Documentation**          | [Docs][etc-stream-doc]                     |

## References [#references]

* [TON node and liteserver source](https://github.com/ton-blockchain/ton)
* [Mainnet liteserver config][c], [testnet config][c-tn]
* [TON Center landing page](https://toncenter.com)
* [TON Center v2 (C++, newer, recommended) source and deploy instructions][etc-v2-src]
* [TON Center v2 (Python, older) source and deploy instructions](https://github.com/toncenter/ton-http-api)
* [TON Center v3 source and deploy instructions][etc-v3-src]
* [dTON GraphQL][edt]

[c]: https://ton-blockchain.github.io/global.config.json

[c-tn]: https://ton-blockchain.github.io/testnet-global.config.json

[etc-v2]: https://toncenter.com/api/v2

[etc-v2-tn]: https://testnet.toncenter.com/api/v2

[etc-v2-src]: https://github.com/toncenter/ton-http-api-cpp

[etc-v2-doc]: https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/api/toncenter/v2/overview/content.md

[etc-v3]: https://toncenter.com/api/v3

[etc-v3-tn]: https://testnet.toncenter.com/api/v3

[etc-v3-src]: https://github.com/toncenter/ton-indexer

[etc-v3-doc]: https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/api/toncenter/v3/overview/content.md

[etc-sse]: https://toncenter.com/api/streaming/v2/sse

[etc-sse-tn]: https://testnet.toncenter.com/api/streaming/v2/sse

[etc-wss]: wss://toncenter.com/api/streaming/v2/ws

[etc-wss-tn]: wss://testnet.toncenter.com/api/streaming/v2/ws

[etc-key]: https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/api/toncenter/get-api-key/content.md

[etc-stream-doc]: https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/api/toncenter/streaming/overview/content.md

[edt]: https://dton.io/graphql

[edt-tn]: https://testnet.dton.io/graphql

[edt-doc]: https://docs.dton.io/

[ls-setup]: https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/nodes/cpp/setup-mytonctrl/content.md

[ls-doc]: https://docs-mpppm4893-ton-core-docs.vercel.app/llms/ecosystem/nodes/overview/content.md
