---
title: "Shoof AI SDKs: AI search for JavaScript, Python and PHP"
description: "Official Shoof AI SDKs for JavaScript and TypeScript, Python and PHP: AI search, autocomplete, AI answers with sources, recommendations and indexing."
url: https://shoofai.com/sdks/
lang: en
---

SDKs

# The Shoof AI SDKs

Official clients for JavaScript and TypeScript, Python and PHP. Search, stream AI answers and show recommendations in a few lines, and index your records from your server.

[Start free](https://app.shoofai.com/signup) [Read the docs](https://docs.shoofai.com/js-client/)

Every plan, Free included.

**JavaScript**

```
// npm install @shoof/js-client
import { ShoofClient } from "@shoof/js-client";

const client = new ShoofClient({
  appId: "my-store",
  apiKey: "shf_pub_…",
});

const res = await client.search({
  q: "waterproof jacket under 500",
  facets: ["brand", "price"],
});
```

**Python**

```
# pip install shoofai
from shoofai import ShoofClient

client = ShoofClient("my-store", "shf_pub_…")

res = client.search(
    "waterproof jacket under 500",
    facets=["brand", "price"],
)
for hit in res["hits"]:
    print(hit["title"])
```

**PHP**

```
// composer require shoofai/shoofai
use ShoofAI\ShoofClient;

$client = new ShoofClient('my-store', 'shf_pub_…');

$res = $client->search('waterproof jacket under 500', [
    'facets' => ['brand', 'price'],
]);
foreach ($res['hits'] as $hit) {
    echo $hit['title'], "\n";
}
```

## What the SDKs do

- ### JavaScript and TypeScript
@shoof/js-client, for browsers and Node, with types for every request and response.
- ### Python
shoofai, for Python 3.9 and later, with only the standard library.
- ### PHP
shoofai/shoofai, for PHP 8.1 and later with curl.
- ### Search, answers and recommendations
Search, autocomplete, streamed AI answers with sources, related and trending items, and events.
- ### An admin client
Index records in batches, replace every record, and change settings, synonyms and rules, on your server.
- ### Retries built in
Rate-limited and failed requests are retried, and writes carry an idempotency key so a retry runs once.

FAQ

## Questions, answered.

[More in the docs](https://docs.shoofai.com)

Which key goes in which client?

The search client takes a search key (`shf_pub_…`) or a secured key, which are safe in a browser. The admin client takes the admin key (`shf_adm_…`), which stays on your server. See [API keys](https://docs.shoofai.com/guides/api-keys/) .

My language has no SDK. What now?

Call the REST API directly. It is described by an [OpenAPI 3.1 spec](https://shoofai.com/openapi.json) , so you can generate a client from it.

## See the difference for yourself

Free plan, no card needed.

[Start free](https://app.shoofai.com/signup) [Read the docs](https://docs.shoofai.com)
