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

# Indexer API

> The GraphQL API that powers the Lunya app

## What it is

Lunya runs a [Ponder](https://ponder.sh)-based indexer that follows the protocol's contracts and exposes their state through a **GraphQL API**. It is the same API the official web app uses — the token grid, candle charts, and trade feeds are all reads from this endpoint.

## What it indexes

* **Launchpad tokens** — every token created on the launch surface, with its curve state and graduation status
* **Trades** — buys and sells, on the bonding curve and on exchange pools
* **Candles** — 1-minute and 1-hour OHLC series per token
* **Pools** — exchange pool state for graduated tokens

## Using it

The API is standard GraphQL: introspect the schema, then query.

```graphql theme={null}
# Example: recent tokens with their latest trades
query {
  tokens(orderBy: "createdAt", orderDirection: "desc", limit: 20) {
    items {
      address
      name
      symbol
      graduated
    }
  }
}
```

<Note>
  The public endpoint URL and the full schema reference will be published here at launch. The schema may evolve until then.
</Note>

## Polling

The official app polls the API every few seconds rather than holding subscriptions. For most integrations a similar short-interval poll is the simplest correct approach.
