Skip to main content
The Keyword Insights public API authenticates every request with an API key. An API key remains valid until you delete it, which makes it a good fit for scripts, integrations, and automated workflows.
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

  1. Log in to your Keyword Insights dashboard.
  2. Navigate to API Keys from the left sidebar menu.
  3. Click the Create API key button.
  4. Enter a descriptive name for the key (e.g. “Python scripts”, “N8N integration”).
  5. Click Create.
Once created, your API key will be displayed once. Copy it immediately and store it in a secure location — you will not be able to see the full key again. Your key will look like this:
After you close the modal, the key list will show only the prefix (e.g. kwi_sk_aBcDe...) along with the creation date and last used date.

Using the API Key

Pass your API key in the X-API-Key header with every request:
Treat your API key like a password. Do not commit it to version control or share it publicly. Use environment variables to store it securely.

Storing the Key Securely

We recommend loading your API key from an environment variable:
Then in Python:

Example: Create a Clustering Order

The response will contain an 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.
To delete a key, click the trash icon next to the key and confirm the deletion.
Deleting an API key is immediate and permanent. Make sure no active integrations depend on the key before deleting it.

Migrating from Bearer tokens

The public API no longer accepts Bearer tokens. A request with only an Authorization: Bearer ... header gets a 401 response. Replace the Authorization header with X-API-Key: