> ## 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 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 pip theme={null}
  pip install ceramic_ai
  ```
</CodeGroup>

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

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

  <Card title="PyPI" icon="python" href="https://pypi.org/project/ceramic_ai/" arrow="true">
    View package
  </Card>
</Columns>
