See llms.txt for all machine-readable content.

Back to Templates

Fetch keyword volume, CPC and difficulty with Apify and Google Sheets

Quick overview

This manual workflow reads a keyword list from Google Sheets, fetches search volume, CPC, competition, and difficulty metrics from Apify’s Google Keyword Search Volume and Difficulty Actor, and then appends or updates the results back into a Results sheet.

How it works

  1. Starts when you run the workflow manually.
  2. Reads the keyword column from the Keywords tab in Google Sheets.
  3. Cleans the keyword list, applies a configured country and optional language, and builds a single request payload for Apify.
  4. Calls the Apify API to run the tessellate~keyword-search-volume-difficulty Actor and returns the dataset items with keyword metrics.
  5. Normalizes a lookupKey value as keyword|country|language to uniquely identify each result row.
  6. Appends new rows or updates existing rows in the Results tab in Google Sheets by matching on lookupKey.

Setup

  1. Add Google Sheets credentials and select your target spreadsheet in both Google Sheets nodes.
  2. Create Keywords and Results tabs in the spreadsheet, with a keyword header in Keywords and the expected metric headers (including lookupKey) in Results.
  3. Add an Apify token and configure an n8n HTTP Header Auth credential named Authorization with the value Bearer YOUR_TOKEN, then select it in the Apify HTTP Request node.
  4. Update the COUNTRY (and optionally LANGUAGE) constants in the code step to match your target market before running the workflow.