Google Organic Search Results | Top Links for AI Agents avatar

Google Organic Search Results | Top Links for AI Agents

Pricing

from $1.00 / 1,000 organic results

Go to Apify Store
Google Organic Search Results | Top Links for AI Agents

Google Organic Search Results | Top Links for AI Agents

Find up to 10 organic links for one Google query. Choose a country and language and get ranked URLs, titles, snippets and domains for a research agent. Each run requests one results page from Apify’s official Google Search Results Scraper. Upstream charges apply.

Pricing

from $1.00 / 1,000 organic results

Rating

0.0

(0)

Developer

Wayturn Hung

Wayturn Hung

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

Share

Give a research agent a ranked shortlist of sources. Choose a query, country and language. Each organic result is one row with the rank, title, URL, snippet and domain.

This input returned three organic links in a US English test. Rankings can change. Pass a chosen URL to a page reader when you need the article text. The Actor requests one page from Apify’s official Google Search Results Scraper.

{
"query": "Apify Crawlee",
"countryCode": "us",
"languageCode": "en",
"maxResults": 3
}

Input

FieldTypeDefaultNotes
querystringApify CrawleeRequired. Search terms.
countryCodestringus2-letter country code, passed as Google's country (gl).
languageCodestringen2-letter interface language (hl).
maxResultsinteger51 to 10. Number of organic results to return.

Output

One dataset item per organic result:

{
"rank": 1,
"title": "Crawlee: A web scraping and browser automation library",
"url": "https://crawlee.dev/",
"snippet": "...",
"domain": "crawlee.dev",
"query": "Apify Crawlee",
"locale": { "countryCode": "us", "languageCode": "en" }
}

The key-value store record OUTPUT holds a run summary:

  • { "status": "OK", "count": N, ... } on success.
  • { "status": "NO_RESULTS", ... } when Google genuinely returns no organic results. The run succeeds with an empty dataset.
  • { "status": "FAILED", "code": "...", "message": "..." } on error.

Error codes

  • INVALID_INPUT: bad query, country, language, or maxResults.
  • UPSTREAM_FAILED: the apify/google-search-scraper run did not succeed. The message includes its run ID.
  • UNEXPECTED_SHAPE: the upstream output did not contain organic results or search info, so its format may have changed.
  • UNEXPECTED_ERROR: anything else. Check the run log.

Cost

Each organic result costs $0.001. The start fee is $0.008 per allocated GB (minimum one event). At 1 GB, three results incur $0.011 in this Actor’s events. The upstream scraper requests one page even if you ask for fewer results. Its page and start charges are separate. See the upstream pricing for current rates.

Permissions

This Actor calls apify/google-search-scraper using the Apify account that runs it. That account needs permission to run Actors and must have enough credit for the upstream charge. No third-party API keys are used.

Local development

npm install
apify login
apify run -p input.json

Running locally still calls the upstream Actor on your Apify account, so it incurs the same charge.

Project layout

  • src/main.js: input validation, upstream call, and result normalization.
  • .actor/: Actor configuration and schemas (input, output, dataset).
  • Dockerfile: builds the image.