> For the complete documentation index, see [llms.txt](https://docs.megatao.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.megatao.com/api-sdk.md).

# API & SDK

MegaTAO exposes a public REST API and two official SDKs for building trading bots, analytics tools, and integrations.

|                    |                                                               |
| ------------------ | ------------------------------------------------------------- |
| **REST API**       | `https://api.megatao.com` — read-only market and account data |
| **Python SDK**     | `pip install megatao-sdk` — REST reads + on-chain writes      |
| **TypeScript SDK** | `@megatao/sdk` — on-chain reads and writes via viem           |

## Pages

* [REST API](/api-sdk/rest-api.md) — endpoint reference
* [Python SDK](/api-sdk/python-sdk.md) — installation, info client, chain client
* [TypeScript SDK](/api-sdk/typescript-sdk.md) — on-chain reads and writes
