> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK & API

> Reference for Raydium's TypeScript SDK, REST API, Anchor IDLs, and integration patterns for Rust, Python, and AI tools.

## Who this chapter is for

Developers integrating against Raydium from off-chain (TS/JS, Python, backends) or from another Solana program (Rust CPI). Also AI agents and coding-tool integrators — see [AI integration](/sdk-api/ai-integration).

<Info>
  **Want to run something first?** Three paste-and-go scripts — swap, deploy CPMM pool, deploy CLMM pool — live in [Quick start](/quick-start). Run a real transaction in five minutes, then come back here for the full reference.
</Info>

## Pick your integration path

Five paths to choose from. The right one depends on what's calling Raydium and how much control you need.

| Path                                              | Best for                                                                   | Latency        | Custom logic              | Languages                       |
| ------------------------------------------------- | -------------------------------------------------------------------------- | -------------- | ------------------------- | ------------------------------- |
| [Trade API](/sdk-api/trade-api)                   | Backends, bots, Blinks — anywhere you want a server-built tx               | Lowest         | Limited (preset routes)   | Any                             |
| [TypeScript SDK](/sdk-api/typescript-sdk)         | Node/TS apps and frontends needing full builder access                     | Medium         | Full                      | TS / JS                         |
| [Python integration](/sdk-api/python-integration) | Python backends and ML pipelines                                           | Medium         | Full (manual instr build) | Python                          |
| [Rust CPI](/sdk-api/rust-cpi)                     | Composing programs that call Raydium from on-chain                         | N/A (on-chain) | Full + composable         | Rust                            |
| [Anchor IDL](/sdk-api/anchor-idl)                 | Codegen for languages without first-party support (Go, Kotlin, Swift, ...) | Variable       | Full                      | Any with an Anchor codegen tool |

If you're not sure: backends and bots → **Trade API**; frontends and full-control apps → **TypeScript SDK**; on-chain composition → **Rust CPI**.

## Chapter contents

<CardGroup cols={2}>
  <Card title="TypeScript SDK" icon="js" href="/sdk-api/typescript-sdk">
    `@raydium-io/raydium-sdk-v2`: installation, initialization, core modules (pool, farm, launch), transaction builders, common pitfalls.
  </Card>

  <Card title="REST API" icon="cloud" href="/sdk-api/rest-api">
    Public endpoints for pool info, mint info, price, and server-built transactions. Rate limits, caching guidance, versioning.
  </Card>

  <Card title="Trade API" icon="right-left" href="/sdk-api/trade-api">
    Server-built swap transactions: quote, build, sign, send. The SDK-free integration pattern for backends, bots, and Blinks.
  </Card>

  <Card title="Anchor IDL" icon="file-code" href="/sdk-api/anchor-idl">
    Where to find each program's IDL, how to regenerate clients from it, what to watch for when the IDL is updated.
  </Card>

  <Card title="Rust CPI" icon="rust" href="/sdk-api/rust-cpi">
    Patterns for invoking Raydium programs from another Solana program — account list construction, signer seeds, error handling.
  </Card>

  <Card title="Python integration" icon="python" href="/sdk-api/python-integration">
    `solders` + `solana-py` recipes for building Raydium swaps/pool ops from Python. Useful for backends and bots.
  </Card>

  <Card title="AI integration" icon="robot" href="/sdk-api/ai-integration">
    MCP server, `llms.txt` index, per-page copy menu, pre-built context files for Claude Code / Cursor / Windsurf and other coding agents.
  </Card>
</CardGroup>

## Version discipline

Every code sample on every page in this chapter has a banner at the top:

```
SDK:       @raydium-io/raydium-sdk-v2 vX.Y.Z
Program:   see /reference/program-addresses
Cluster:   mainnet-beta
Verified:  YYYY-MM-DD
```

If you touch a code sample, update the banner.
