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

# TypeScript SDK

> Official TypeScript SDK for Ceramic

<Card title="Get API Key" icon="key" href="https://platform.ceramic.ai/keys" arrow="true">
  Create a Ceramic account for free to get an API key.
</Card>

## Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install ceramic-ai
  ```
</CodeGroup>

## Search

```typescript theme={null}
import { Ceramic } from "ceramic-ai";

const client = new Ceramic({ apiKey: "YOUR_API_KEY" });

const response = await client.search({ query: "California rental laws"});

console.log(response);
```

### Parameters

| Parameter | Type   | Description       | Default  |
| --------- | ------ | ----------------- | -------- |
| `query`   | string | The search query. | Required |

<Columns cols={2}>
  <Card title="GitHub" icon="github" href="https://github.com/CeramicTeam/ceramic-typescript" arrow="true">
    View source code
  </Card>

  <Card title="npm" icon="npm" href="https://www.npmjs.com/package/ceramic-ai" arrow="true">
    View package
  </Card>
</Columns>
