See llms.txt for all machine-readable content.

Back to Templates

Scrape structured Google search results with CoreClaw and a webhook

Created by

Created by: coreclaw || scraper
coreclaw

Last update

Last update 5 days ago

Categories

Share


Quick overview

This workflow exposes a webhook that accepts a Google search query, runs the CoreClaw Google Search Scraper Worker via HTTP, and returns normalized organic results (title, URL, snippet, and position) as a structured JSON response.

How it works

  1. Receives a POST request on a webhook with a search query and optional country, language, and max_results values.
  2. Validates and formats the incoming payload, applying defaults for country (us), language (en), and max_results (10).
  3. Calls the CoreClaw Google Search Scraper Worker API with the formatted parameters using an API key from the CORECLAW_API_KEY environment variable.
  4. Extracts the organic results from the CoreClaw response and normalizes each item to position, title, url, displayed_url, and snippet.
  5. Returns a JSON webhook response containing the original query context, result count, and the normalized results array.

Setup

  1. Create a CoreClaw account and add your API key to n8n as an environment variable named CORECLAW_API_KEY.
  2. Activate the workflow and copy the production webhook URL for the "google-search-scraper" endpoint.
  3. Send a POST request to the webhook with a JSON body containing query (or q/keyword) and optionally country, language, and max_results.

Additional info

Retrieve public web page data using the CoreClaw production-grade Web Data API: https://www.coreclaw.com/?utm_source=google&utm_medium=cpc&utm_campaign=n8&utm_term=&utm_id=n8