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



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

## Comparison table [#comparison-table]

### Requests [#requests]

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

<sup>1</sup> TonAPI's full indexer is not open-source; [OpenTonAPI][eta-oss-src] is a limited open-source version.

<sup>2</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>3</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>4</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                | TonAPI Streaming API                       |
| -------------------------- | ------------------------------------------ | ------------------------------------------ |
| **Protocol compatibility** | Native reference implementation            | Compatible with TON Center                 |
| **Mainnet endpoints**      | [SSE][etc-sse], [WebSocket][etc-wss]       | [SSE][eta-sse], [WebSocket][eta-wss]       |
| **Testnet endpoints**      | [SSE][etc-sse-tn], [WebSocket][etc-wss-tn] | [SSE][eta-sse-tn], [WebSocket][eta-wss-tn] |
| **Authentication**         | [TON Center][etc-key]                      | [Ton Console][eta-key]                     |
| **Documentation**          | [Docs][etc-stream-doc]                     | [Same as TON Center][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]
* [TonAPI site](https://tonapi.io), [REST docs][eta-doc], [Swagger][eta-swagger]
* [OpenTonAPI (limited open-source)][eta-oss-src]
* [dTON GraphQL][edt]

{/* Config */}

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

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

{/* TON Center */}

[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]: /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]: /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]: /llms/ecosystem/api/toncenter/get-api-key/content.md

[etc-stream-doc]: /llms/ecosystem/api/toncenter/streaming/overview/content.md

{/* TON API */}

[eta-v2]: https://tonapi.io/v2

[eta-v2-tn]: https://testnet.tonapi.io/v2

[eta-oss-src]: https://github.com/tonkeeper/opentonapi

[eta-doc]: https://docs.tonconsole.com/tonapi/rest-api

[eta-swagger]: https://tonapi.io/api-v2

[eta-sse]: https://tonapi.io/streaming/v2/sse

[eta-sse-tn]: https://testnet.tonapi.io/streaming/v2/sse

[eta-wss]: wss://tonapi.io/streaming/v2/ws

[eta-wss-tn]: wss://testnet.tonapi.io/streaming/v2/ws

[eta-key]: https://tonconsole.com/tonapi/api-keys

{/* dTON */}

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

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

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

{/* Liteservers */}

[ls-setup]: /llms/ecosystem/nodes/cpp/setup-mytonctrl/content.md

[ls-doc]: /llms/ecosystem/nodes/overview/content.md
