> ## 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] [Get API Key](https://platform.ceramic.ai/keys)
>
> Create a Ceramic account for free to get an API key.

## Installation

```bash npm theme={null}
npm install ceramic-ai
```

## 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 |

> [card] [GitHub](https://github.com/CeramicTeam/ceramic-typescript)
>
> View source code

> [card] [npm](https://www.npmjs.com/package/ceramic-ai)
>
> View package


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.