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

# Cookbook

> Runnable recipes for the Quotable API and webhooks: visibility trends, cited-domain rankings, CSV exports, and Slack alerts.

Each recipe solves one real task end to end. You get the goal, the scopes it needs, complete code you can run as-is, and the output to expect.

## Recipes

> [card] [Weekly visibility trend](https://docs.usequotable.com/guides/weekly-visibility-trend.md)
>
> Turn 90 days of daily scores into weekly averages and week-over-week change.

> [card] [Domains AI answers cite](https://docs.usequotable.com/guides/cited-domains.md)
>
> Rank the domains AI answers cite most for your prompts, and see where you stand.

> [card] [Export to a spreadsheet](https://docs.usequotable.com/guides/export-to-spreadsheet.md)
>
> Page through brands, prompts, citations, articles and demand terms into CSV files.

> [card] [Slack alerts from webhooks](https://docs.usequotable.com/guides/slack-alerts-from-webhooks.md)
>
> Post each day's visibility score for a brand to a Slack channel.

> [card] [Prompt for AI coding assistants](https://docs.usequotable.com/guides/ai-assistant-prompt.md)
>
> A prompt that teaches your coding assistant every API convention.

## Setup for every recipe

**1. Create an API key**

In **Settings → API keys**, create a key for the brands the recipe reads. New keys include every scope a recipe lists. See [Authentication](https://docs.usequotable.com/api-reference/authentication.md).

**2. Set environment variables**

```bash theme={"system"}
export QUOTABLE_API_KEY="quotable_live_…"
export QUOTABLE_PROJECT_ID="c4a1e8f2-7d3b-4c6a-9e5f-1b2d3c4e5f60"
```

Find a brand's id with `GET /projects`, as shown in the [API quickstart](https://docs.usequotable.com/api-reference/quickstart.md).

**3. Pick a runtime**

* **Node.js 20 or later.** The recipes use the built-in `fetch` and no packages. Save the code as a `.mjs` file and run it with `node`.
* **Python 3.10 or later** with `requests` (`pip install requests`). Webhook recipes also use Flask (`pip install flask`).

> [!TIP]
>
> Building something the recipes don't cover? Paste the [conventions prompt](https://docs.usequotable.com/guides/ai-assistant-prompt.md) into your AI coding assistant first. It knows the base URL, auth, pagination, errors and rate limits, so the code it writes follows them.


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