Organic search results

Google Search Scraper

Run the same set of searches on a schedule and keep every result with its position, title and snippet. After a few weeks you can see who is gaining ground and which pages are doing the work.

On JMLP: 10 credits per result, from $0.25 per 1,000 results. Start with 500 free credits.

Ways to use this scraper.

Three examples to start from.

Track searches that matter to your buyers

Pick the ten searches your buyers type, like best CRM for small teams, and run them every week in the same market. Watch for new names and for the promises competitors put in their titles.

A weekly SERP review: where you rank, and who moved.

Choose what content to research next

Sort the recurring titles by what the searcher wants: comparisons, pricing, tutorials, alternatives. The gaps show up quickly, and so do the pages of yours that answer a different question.

A ranked list of content ideas, each linked to the results that prompted it.

Find companies in a specific niche

Search a narrow category and go through the domains that come back. Check the sites by hand, then pass the shortlist to Website Contacts.

A company list where every entry has a source search and a site someone has checked.

Your first run.

  1. Open the Actor on Apify and go to the Input tab. Switch to the JSON editor if you’d rather paste a configuration.
  2. Replace the sample query with your own. Put each search in queries as a separate string. Quotes, site: and minus terms work as they do in Google; avoid turning a whole watchlist into one long query.
  3. Set country and language explicitly, then start with maxItems 20 per query. The Actor uses Apify’s GOOGLE_SERP proxy group; make sure your account has access to it before running.
  4. Start the run and keep an eye on the log. If it comes back empty, check which targets and filters were read before you conclude there’s nothing there.
  5. Open Storage → Dataset and read a few records. Export CSV for a quick look in a spreadsheet, or JSON if you need the nested fields.
First-run configuration
{
  "queries": ["web scraping tools"],
  "country": "US",
  "language": "en",
  "maxItems": 20
}

Paste this into the Actor’s JSON input editor. Replace the example targets with yours before running.

Check the current input form on Apify

Ways to search.

This scraper returns organic Google results. Use normal queries or search operators, and keep the country, language and result limit consistent when comparing runs. It does not collect paid ads or AI Overviews.

Search methodWhen to use itWhat changes
Keyword discoveryWhen to use itYou want to find relevant results before choosing specific targets.What changesEnter search queries as separate list items. Quoted phrases, site: filters and minus terms work. A pasted Google search URL contributes its query text, not every URL filter.
Search page URLsWhen to use itYou already configured the search on the source website.What changesOne search query alongside or instead of queries. For several topics, use queries so each search keeps its own ranking context.
Market selectionWhen to use itYou need a view of a particular country or market.What changesSearch market as a two-letter code or country name. This changes geographic ranking; it is separate from language and from the proxy’s exit country.

Worth knowing

Maximum organic results per query, not across the entire run. Two queries with maxItems 20 can return up to 40 rows. Google serves 10 results per page.

Compare the related scraper

What each input does.

In JSON, use the field names exactly as written below. In Apify’s form, add list items one at a time and keep numbers and true/false values as they are.

A default is what the Actor uses when you leave a setting out, and some settings have none. A prefill is an example Apify has already typed into the form, and it runs unless you change it. Check the prefilled targets and limits before you start; you always need at least one target of your own.

Targets and search inputs2
queries
ListForm prefill: ["web scraping tools"]

Enter search queries as separate list items. Quoted phrases, site: filters and minus terms work. A pasted Google search URL contributes its query text, not every URL filter.

query
Text

One search query alongside or instead of queries. For several topics, use queries so each search keeps its own ranking context.

Markets, dates and filters4
country
Text

Search market as a two-letter code or country name. This changes geographic ranking; it is separate from language and from the proxy’s exit country.

language
TextDefault: en

Google’s interface language, using a code such as en, de or pt-BR. It does not guarantee every returned page is written in that language.

timeRange
TextDefault: any

Filters Google’s indexed recency window: hour, day, week, month, year or any. It is not a historical SERP snapshot and does not reconstruct rankings from the past.

Suggested JSON values
any hour day week month year
safeSearch
True or falseDefault: false

Enables Google’s SafeSearch filter. Keep it consistent between scheduled runs so changes in filtering do not look like ranking changes.

Limits, details and proxies5
maxItems
IntegerDefault: 10

Maximum organic results per query, not across the entire run. Two queries with maxItems 20 can return up to 40 rows. Google serves 10 results per page.

maxConcurrency
IntegerDefault: 3

1-10 queries run in parallel. Each query’s pages remain sequential. Start with 3 and a small number of results per query.

delayMs
IntegerDefault: 800

Pause between page requests, in milliseconds. Increase it when the source throttles you; reducing it does not remove network delays or the source’s rate limits.

maxPagesPerQuery
Integer

Page limit for each query. One page is 10 organic results. maxItems 100 with maxPagesPerQuery 2 can collect at most about 20 results per query.

proxyConfiguration
ObjectDefault: {"useApifyProxy":true,"apifyProxyGroups":["GOOGLE_SERP"]}

This Actor forces Apify’s GOOGLE_SERP group; other groups do not return usable results. Only the proxy country is honored. Your Apify plan must provide access to that group.

Advanced settings and recovery4
proxyRotations
IntegerDefault: 3

Retries refused work with a new proxy session. More retries can recover temporary blocks but add time and traffic. Keep the default until the log shows a reason to change it.

resume
True or falseDefault: true

Saves progress about every 30 seconds so an Apify restart or migration can continue the current run. Leave it on for normal use.

continueFromLastRun
True or falseDefault: false

Continues unfinished work from the previous run with matching input. Earlier results remain in that run’s dataset. Keep false for a fresh collection or a recurring snapshot.

impersonate
TextDefault: chrome131

The browser identity used for requests. Keep the Actor’s default unless you are diagnosing immediate blocks. It changes the request fingerprint, not the data you ask for.

This reference follows the Actor’s published input fields. Check the live form before changing a production workflow. Check the current input form on Apify.

Three setups to copy.

Each one is a separate run. Swap in your own targets, countries and dates, start small, and widen it only once the first results look right.

A repeatable search visibility check

Three queries with maxItems 20 can return up to 60 rows. Run the same configuration weekly and store query, position and collection time. Use a separate run with another country to compare markets.

A repeatable search visibility check
{
  "queries": [
    "web scraping tools",
    "competitor ad tracking",
    "marketing data pipeline"
  ],
  "country": "US",
  "language": "en",
  "maxItems": 20,
  "safeSearch": false
}

Research content on one domain

Use site: and quoted phrases to find indexed pages on a particular domain. These results reflect Google’s index, not a complete crawl of that website. Replace apify.com and the phrases with your research targets.

Research content on one domain
{
  "queries": ["site:apify.com \"ad library\"", "site:apify.com \"google search\""],
  "country": "GB",
  "language": "en",
  "maxItems": 10
}

Find recently indexed content

The week filter keeps only results Google treats as recent, which helps when you’re reviewing new content on a topic. It won’t give you last week’s rankings, and it can’t tell you when a page was first published.

Find recently indexed content
{
  "queries": ["dbt BigQuery tutorial", "marketing analytics SQL"],
  "country": "US",
  "language": "en",
  "timeRange": "week",
  "maxItems": 20
}

After the first run.

Every row is one query and one position. Some URLs are rebuilt from the breadcrumbs Google shows, so check url_is_exact before you crawl them or join them to a page. Save each run as a dated snapshot if you want to compare rankings later. Search volume, paid ads and past rankings aren’t in this data.

  1. Look at the dataset and the run’s SUMMARY record. Did you hit your cap? Were any inputs skipped? Open a few source links to make sure the records are what you think they are.
  2. Whatever you save, keep the original IDs and add collected_at and run_id. CSV is fine for flat columns; keep the JSON when arrays or nested details matter.
  3. Once a configuration works, save it as an Apify Task and schedule it. Leave continueFromLastRun false for repeated snapshots, and deduplicate by source ID without throwing away the dates you saw each record.
  4. In Make or n8n, trigger on a successful run, fetch the dataset and map the fields into Sheets or your warehouse. Looker Studio works best from a reporting table, and dbt is the place to flatten and test the warehouse models.
  5. The same JSON works with Apify’s API. With Claude and the Apify MCP server, name this Actor, have Claude check the live schema first, and give it explicit targets, markets and limits.

Resume is not a fresh snapshot

resume protects the current run if Apify restarts it. continueFromLastRun picks up an earlier run with the same configuration, and the earlier records stay in the earlier dataset, so you combine the two to get everything. If that run hit its cap, raise the cap before continuing. For a picture of what changed today, start fresh.

Follow the Sheets, Claude, Looker and BigQuery setup guides
Run this Actor from the API

Save one configuration above as input.json. Set APIFY_TOKEN to your Apify API token in your terminal, then send the file as the request body.

Start the run
curl --fail-with-body --request POST \
  --url "https://api.apify.com/v2/actors/jmlp~google-search-scraper/runs" \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header "Content-Type: application/json" \
  --data-binary @input.json

The response contains a run ID and defaultDatasetId, not finished results. Wait for the run to succeed, set DATASET_ID to that dataset ID, then fetch its items. For large datasets, use limit and offset to page through the export.

Fetch the dataset
curl --fail-with-body \
  --url "https://api.apify.com/v2/datasets/$DATASET_ID/items?format=json" \
  --header "Authorization: Bearer $APIFY_TOKEN"

Apify’s run and export API reference
Dataset export options

If something looks off.

Change one setting at a time and keep the cap small. The run summary usually tells you what went wrong.

The source keeps returning empty pages or access errors.

This Actor forces Apify’s GOOGLE_SERP group; other groups do not return usable results. Only the proxy country is honored. Your Apify plan must provide access to that group.

Can I treat every result URL as an exact page address?

Every row is one query and one position. Some URLs are rebuilt from the breadcrumbs Google shows, so check url_is_exact before you crawl them or join them to a page. Save each run as a dated snapshot if you want to compare rankings later. Search volume, paid ads and past rankings aren’t in this data.

The selected country returns no useful results.

Search market as a two-letter code or country name. This changes geographic ranking; it is separate from language and from the proxy’s exit country.

The run succeeded but returned nothing

Succeeded only means the Actor finished, not that the source sent anything back. Look at SUMMARY.inputProblem, SUMMARY.problem and the log for missing targets, unsupported filters or refused requests, then try one target you know has data, with fewer filters.

Fewer records than expected

Usually it’s a limit: the global cap, a per-search or per-page cap, or what the platform covers. Deduplication also removes records that several searches found, and a site’s headline count can include records its public pages never show. Check for unfinished jobs before you call the dataset complete.

Use the results in your tools.

Google Sheets

Add query, position, title, url, url_is_exact and collected_at to the sheet, and split the domain into its own column. Filtering on your domain and a few competitors does most of the work.

Read the setup

Claude + MCP

Claude is good at grouping results by intent and comparing title themes, with the query and position cited. It can’t judge a page’s quality from a search result alone.

Read the setup

Looker Studio

Track your rank and how often competitors appear from a sheet of dated observations. If the country or language changes between runs, the chart stops meaning anything.

Read the setup

BigQuery + dbt

Partition by collection date and keep query, country and language on every row. Compare ranks by verified domain in SQL, and check reconstructed URLs before you join on them.

Read the setup
Copy a prompt for Claude
Prompt for Claude + Apify MCP
Inspect jmlp/google-search-scraper and collect up to 20 organic results for best CRM for small teams in US English. Group headline themes and recurring domains, cite query and position, flag reconstructed URLs, and suggest content questions to research. Do not invent search volumes.

The fields you’ll get.

Keep the collection time and original IDs with your records. You’ll need them to check where a result came from or compare it with a later run.

Before you draw conclusions

You get organic results only, so search volume and paid keyword data have to come from elsewhere. Results shift by market and by day. Some URLs are rebuilt from Google’s breadcrumbs, so check url_is_exact before you crawl them or join on them.

query / position
The search term and one-based organic rank.
title / snippet
The headline and description presented in the result.
url
A URL derived from the displayed result.
url_is_exact
Whether the displayed URL was exact or a breadcrumb path was reconstructed.
displayed_url
Google’s original displayed URL or breadcrumb text.

Common questions.

Does it return search volume or keyword difficulty?

No. You get the organic results with rank, title, URL and snippet. Volume and difficulty need a keyword tool.

Are all returned URLs exact?

Not always. When Google shows a breadcrumb path instead of a URL, the scraper rebuilds the address from it, and url_is_exact tells you which rows that applies to.

Source and current product details: JMLP’s Google Search Actor on Apify.

Need a scraper or a pipeline built for you?

Send me the sites you’re interested in and the question behind them. I’ll tell you whether scraping is the right way to answer it, and what it would take.