API keys provide a simple, long-lived way to authenticate with the Keyword Insights public API. Unlike Bearer tokens (which expire), API keys remain valid until you delete them — making them ideal for scripts, integrations, and automated workflows.Documentation Index
Fetch the complete documentation index at: https://docs.keywordinsights.ai/llms.txt
Use this file to discover all available pages before exploring further.
API key access is available on Professional and Premium plans. If you’re on a different plan, you’ll be prompted to upgrade when attempting to create an API key.
Creating an API Key
- Log in to your Keyword Insights dashboard.
- Navigate to API Keys from the left sidebar menu.
- Click the Create API key button.
- Enter a descriptive name for the key (e.g. “Python scripts”, “N8N integration”).
- Click Create.
kwi_sk_aBcDe...) along with the creation date and last used date.
Using the API Key
Pass your API key in theX-API-Key header with every request:
Storing the Key Securely
We recommend loading your API key from an environment variable:Example: Create a Clustering Order
order_id that you’ll use to retrieve results once the order is processed.
Managing API Keys
You can manage your API keys from the dashboard at any time:- View keys — see all active keys with their prefix, creation date, and last used date.
- Delete keys — revoke a key immediately. Any application using that key will lose access.
Deleting an API key is immediate and permanent. Make sure no active integrations depend on the key before deleting it.
API Key vs. Bearer Token (Deprecated)
| API Key (Recommended) | Bearer Token (Deprecated) | |
|---|---|---|
| How to obtain | Dashboard → API Keys | Login endpoint or browser dev tools |
| Header | X-API-Key: kwi_sk_... | Authorization: Bearer eyJ... |
| Expires | Never (until deleted) | After a set period |
| Best for | Scripts, integrations, automation | — |
Migrating from Bearer Tokens
If you have existing code using Bearer tokens, switching to API keys is a one-line change — replace theAuthorization header with X-API-Key: