πŸ“Š SERP competitor research with Scrape.do API & Google Sheets

⚑ 294 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

πŸ” Extract Competitor SERP Rankings from Google Search to Sheets with Scrape.do

This template requires a self-hosted n8n instance to run.

A complete n8n automation that extracts competitor data from Google search results for specific keywords and target countries using Scrape.do SERP API, and saves structured results into Google Sheets for SEO, competitive analysis, and market research.


πŸ“‹ Overview

This workflow provides a lightweight competitor analysis solution that identifies ranking websites for chosen keywords across different countries. Ideal for SEO specialists, content strategists, and digital marketers who need structured SERP insights without manual effort.

Who is this for?

What problem does this workflow solve?


βš™οΈ What this workflow does

  1. Manual Trigger β†’ Starts the workflow manually
  2. Get Keywords from Sheet β†’ Reads keywords + target countries from a Google Sheet
  3. URL Encode Keywords β†’ Converts keywords into URL-safe format
  4. Process Keywords in Batches β†’ Handles multiple keywords sequentially to avoid rate limits
  5. Fetch Google Search Results β†’ Calls Scrape.do SERP API to retrieve raw HTML of Google SERPs
  6. Extract Competitor Data from HTML β†’ Parses HTML into structured competitor data (top 10 results)
  7. Append Results to Sheet β†’ Writes structured SERP results into a Google Sheet

πŸ“Š Output Data Points

FieldDescriptionExample
KeywordOriginal search termdigital marketing services
Target Country2-letter ISO code of target regionUS
positionRanking position in search results1
websiteTitlePage title from SERP resultDigital Marketing Software & Tools
websiteUrlExtracted website URLhttps://www.hubspot.com/marketing
websiteDescriptionSnippet/description from search resultsGrow your business with HubSpot’s tools…

βš™οΈ Setup

Prerequisites

Google Sheet Structure

This workflow uses one Google Sheet with two tabs:

Input Tab: β€œKeywords”

ColumnTypeDescriptionExample
KeywordTextSearch querydigital marketing
Target CountryText2-letter ISO codeUS

Output Tab: β€œResults”

ColumnTypeDescriptionExample
KeywordTextOriginal search termdigital marketing
positionNumberSERP ranking1
websiteTitleTextTitle of the pageDigital Marketing Software & Tools
websiteUrlURLWebsite/page URLhttps://www.hubspot.com/marketing
websiteDescriptionTextSnippet textGrow your business with HubSpot’s tools

πŸ›  Step-by-Step Setup

  1. Import Workflow: Copy the JSON β†’ n8n β†’ Workflows β†’ + Add β†’ Import from JSON
  2. Configure Scrape.do API:
    • Endpoint: https://api.scrape.do/
    • Parameter: token=YOUR_SCRAPEDO_TOKEN
    • Add render=true for full HTML rendering
  3. Configure Google Sheets:
    • Create a sheet with two tabs: Keywords (input), Results (output)
    • Set up Google Sheets OAuth2 credentials in n8n
    • Replace placeholders: YOUR_GOOGLE_SHEET_ID and YOUR_GOOGLE_SHEETS_CREDENTIAL_ID
  4. Run & Test:
    • Add test data in Keywords tab
    • Execute workflow β†’ Check results in Results tab

🧰 How to Customize


πŸ“Š Use Cases


πŸ“ˆ Performance & Limits


🧩 Troubleshooting


🀝 Support & Community


🎯 Final Notes

This workflow provides a repeatable foundation for extracting competitor SERP rankings with Scrape.do and saving them to Google Sheets.
You can extend it with filtering, richer parsing, or integration with reporting dashboards to create a fully automated SEO intelligence pipeline.

πŸ”— Nodes Used

Google Sheets, HTTP Request

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup