Skip to main content
On this page, you’ll find the guide on how to connect Keyword Insights API with N8N to run clustering.

Step 1

Authentication via API key

Create an API key in the Keyword Insights dashboard under API Keys. The dashboard shows the full key only one time, so copy it immediately. See API Key Authentication. Use an HTTP Request node and select the following options:
  • Authentication -> Generic Credential Type
  • Generic Auth Type -> Header Auth
  • Header Auth -> Create new credential
HTTP Request node with Header Auth N8N opens the credential modal. Enter your API key, then click Save:
  • Name -> X-API-Key
  • Value -> your API key, for example kwi_sk_aBcDeFgHiJkLmNoPqRsTuVwXyZ1234567890abc
Header Auth credential with the X-API-Key name N8N saves the credential as Header Auth account. To change it later, click the pencil icon next to the Header Auth field.

Step 2

Creating a clustering order

In the same HTTP Request node, update the following settings: Paste the following json into the body, make sure to update the keywords, volumes you want to cluster, and URL, you can also customize further based on the configuration you want. You can also pass folder_id if you want it placed in a specific folder in the platform.
That’s all!