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

# Python SDK

> Official Python 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 pip theme={null}
pip install ceramic_ai
```

## Search

```python theme={null}
from ceramic_ai import Ceramic

client = Ceramic(api_key="YOUR_API_KEY")

response = client.search(query="California rental laws")

print(response)
```

## Async Search

```python theme={null}
import asyncio
from ceramic_ai import AsyncCeramic

client = AsyncCeramic(api_key="YOUR_API_KEY")

async def main():
  response = await client.search(query="California rental laws")
  print(response)

asyncio.run(main())
```

### Parameters

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

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

> [card] [PyPI](https://pypi.org/project/ceramic_ai/)
>
> View package


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