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

# Indexer Installation

Sequence Indexer is a simple API to query any blockchain token and NFT data. Below are instructions
on how to integrate the Sequence Indexer API into your Webapps, Games, and backends. In case you missed
it, please also see the [Indexer Overview](/api-references/indexer/overview).

## インストール方法

The Sequence Indexer is built as a HTTP API with RPC endpoints that you may call directly
from your Webapp, Game or server backend. Below you'll find information on the RPC endpoint
schema with sample curl commands, along with examples in both Javascript/Typescript and Go.

[Web / node.js](https://github.com/0xsequence/sequence.js) および [Go](https://github.com/0xsequence/go-sequence) 用のSDKをご用意しています。
他の言語でIndexerと連携したい場合は、下記のAPIリファレンスに従ってHTTPリクエストを実装してください。
また、Typescriptクライアントのソースコードも[Indexer APIクライアントの参考実装](https://github.com/0xsequence/sequence.js/blob/master/packages/services/indexer/src/indexer.gen.ts)としてご覧いただけます。

### Web / node.js Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install 0xsequence ethers
  ```

  または

  ```bash pnpm theme={null}
  pnpm install 0xsequence ethers
  ```

  または

  ```bash yarn theme={null}
  yarn add 0xsequence ethers
  ```
</CodeGroup>

<Note>
  This code requires an API Access Key from [Sequence Builder](https://sequence.build).
</Note>

```ts theme={null}
import { SequenceIndexer } from '@0xsequence/indexer'

// see https://docs.sequence.xyzhttps://status.sequence.info for list of
// indexer hosts for the chain you'd like to query
const indexer = new SequenceIndexer('https://mainnet-indexer.sequence.app', 'AQAAAAAAAF_JvPALhBthL7VGn6jV0YDqaFY')

// see examples below for the kinds of queries you can make
const tokenBalances = await indexer.getTokenBalances(...)
```

**NOTE:** if you're using `@0xsequence/indexer` from node.js, we recommend using node v18.x or newer.

<br />

### Go Installation

```bash Terminal theme={null}
go get -u github.com/0xsequence/go-sequence@latest
```

then in your app,

```go Go theme={null}
import (
	"github.com/0xsequence/go-sequence/indexer"
)

// see https://docs.sequence.xyzhttps://status.sequence.info for list of
// indexer hosts for the chain you'd like to query
seqIndexer := indexer.NewIndexer("https://polygon-indexer.sequence.app", "AQAAAAAAAF_JvPALhBthL7VGn6jV0YDqaFY")

// see examples below for the kinds of queries you can make
accountAddress := "ACCOUNT_ADDRESS"
includeMetadata := true
metadataOptions := indexer.MetadataOptions{
	VerifiedOnly: true,
}

_, tokenBalances, err := seqIndexer.GetTokenBalances(context.Background(), &accountAddress, nil, nil, &includeMetadata, &metadataOptions, nil, nil)
```

### Unity or Unreal Installation

Sequence Indexerは、それぞれの[Sequence Unity](/sdk/unity/)および[Sequence Unreal](/sdk/unreal/overview) SDKに直接統合されています。
