How to use it: 3 steps
- Make a free Apify accountApify is the cloud platform where our tools run. The free plan gives you $5 of usage every month, no credit card needed. You pay Apify, not us.
- Paste your input and press StartNo code needed: you fill in a form (the input). It already has a working example. For example:
apify actorsin Search query or URL. Each start is one run. - Download the resultsWhen the run ends, the results are in a table (the dataset). Open Output, press Export and pick Excel or CSV. JSON and the API are there too.
This tool is an Apify Actor: a small program that runs on Apify. You can also run it on a schedule, for example every Monday. New to it? Read how it works, step by step and the 8 words you need first.
What it does
Type a search query and get the top Google result pages as clean Markdown, plain text or HTML, one Dataset row per page. It is a RAG web search tool for LLM apps and AI agents: no login and no API key, and a typical run with 3 pages takes a few seconds and costs about $0.009.
- Searches Google for your query in the country you choose.
- Takes the organic results in order. Ads and Google's own pages are skipped. URLs are the real page addresses, not Google redirect links.
- Opens each page with a normal HTTP request and keeps only the main content: no menus, footers, cookie banners or scripts.
- Saves each readable page as one row with the content in one field:
markdown,textorhtml. - Stops when it has the number of readable pages you asked for, or when the time budget ends.
Good for
- Give an LLM or agent fresh web context for a question (retrieval-augmented generation).
- Collect the readable text of the top results for a topic before chunking and embedding.
- Read one known URL as Markdown inside the same workflow.
Not a good fit
- No JavaScript rendering. Pages that build their text in the browser (many web apps, YouTube) come back as
empty. - No login, cookies or paywall bypass. Such pages come back as
login_requiredorpaywall. - Up to 10 pages per run and English-language Google results. For more queries, start more runs.
- PDF and other files are not converted (
not_htmlrow).
Who uses it
LLM app builders
Add fresh web pages to a prompt and show the link as the source.
AI agent developers
Give your agent one tool that searches and reads pages at once.
Researchers
Collect the readable text of top results for a topic before you embed it.
Price
Pay per event: you pay for each result the tool saves, plus a small start fee for each run. The price includes Apify platform costs. Apify bills you, not us. Prices below are for the Apify free plan.
| What you pay for | Price | When |
|---|---|---|
| Search | $0.003 (from $0.00255 on paid Apify plans) | One answered request: a Google search (also when Google has no results) or one URL read. |
| Readable page | $0.002 (from $0.0017 on paid Apify plans) | One saved page with content (fetchStatus ok). Blocked, login, paywall and empty pages are free. |
Examples
- One result: about $0.002.
- 1,000 results: about $2.00.
- Every day 100 results, for 30 days: about $6.00 a month.
Free to try: the Apify free plan gives you $5 of usage every month, no credit card needed. That is enough for about 2,500 results.
Prices checked on 24 October 2026. See the current price on Apify.
Questions
Do I need a Google API key?
No. You do not need a key or a login.
Why is a page empty?
Some sites build their text with JavaScript. This tool does not run JavaScript, so it marks them as empty.
Does it give ads in the results?
No. Ads and Google's own pages are skipped. You get real page addresses.
Can it read PDF results?
No. PDF and other files are not converted. They get a not_html row.
Is the content complete and up to date?
It is the page as served at fetchedAt, main content only. Text that loads with JavaScript, comments and hidden blocks are not included. Some sites repeat a lead paragraph in their HTML; it then appears twice.
Can I search in other languages?
Google results are requested in English (hl=en); countryCode changes the country. Pages in other languages are returned as they are.
Details
Step by step on Apify
- Open the Input tab.
- Keep the prefilled Search query or URL (
query)apify actors, or type your own question. - Keep Pages to return (
maxResults) at the prefilled 3. - Click Start.
- Open the Output tab. The Results view shows rank, URL, title, word count and status; the Markdown view shows the page content.
Use cases
| Task | Input | You get | Key fields | Next step |
|---|---|---|---|---|
| Web context for an LLM answer | query = the user's question, maxResults 3–5 | one row per page | url, title, markdown | pass markdown to the model with url as the source |
| Topic corpus for a vector database | query per topic, maxResults 10, outputFormat text | one row per page | text, wordCount, url | chunk text, keep url as metadata |
| Read one known page | query = a single https:// URL | one row | markdown, httpStatus, fetchStatus | same as above |
Tips for better results
- Ask for 3 to 5 pages for a quick answer. One run gives up to 10 pages.
- Check the status of each row. Login, paywall and empty pages are marked and not charged.
- Start several runs for several queries. One run handles one search.
Limits and good to know
- 1–10 readable pages per run; Google results from up to 2 result pages are tried
- One page request waits up to 15 seconds; the whole run follows
timeoutSecs(10–120) - Page size up to 5 MB; content up to 200,000 characters
- 256 MB memory is enough; measured runs used under 60 MB
For developers
Sample result
One result from a real test run, in JSON. Real values change from run to run. In Excel or CSV each field is a column.
{
"query": "apify actors",
"rank": 1,
"url": "https://apify.com/actors",
"title": "Automate anything with Apify Actors · Apify",
"description": "Actors are web data automations that power your AI and operations. Run them in the cloud or locally to scrape websites, process data, or connect APIs, all ...",
"markdown": "# Automate anything with Apify Actors\n\nActors are web data automations that power your AI and operations. …",
"wordCount": 427,
"fetchStatus": "ok",
"httpStatus": 200,
"error": null,
"fetchedAt": "2026-10-15T04:12:15.881Z"
}Use it from code
Actor ID: cliqtomedia/rag-web-search. You need your Apify API token from Apify Console → Settings → API & Integrations.
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("cliqtomedia/rag-web-search").call(run_input={
"query": "apify actors",
"maxResults": 3
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)curl -X POST "https://api.apify.com/v2/acts/cliqtomedia~rag-web-search/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "apify actors", "maxResults": 3}'# pip install langchain-apify
# set APIFY_TOKEN in your environment
from langchain_apify import ApifyActorsTool
tool = ApifyActorsTool("cliqtomedia/rag-web-search")
result = tool.invoke({"run_input": {"query": "apify actors", "maxResults": 3}})
print(result)The cURL call waits for the results, up to 300 seconds. For longer runs, start a run (/runs) and get the results with a webhook or by checking the run. Apify API docs. LlamaIndex, MCP for AI agents and the JavaScript client: AI agents & MCP.
Data fields (13)
| Field | Type | Meaning |
|---|---|---|
query | string | The search query (or the URL in URL mode). |
rank | integer | Position among Google organic results (1 = top). Ads and Google's own links are skipped. |
url | string | Real page URL from Google (no Google redirect wrapper, no tracking parameters). |
title | string | Page title, or the Google result title when the page could not be read. |
description | string | Google result snippet. |
markdown | string | Main content as Markdown when outputFormat is markdown. null on status rows. |
text | string | Main content as plain text when outputFormat is text. null on status rows. |
html | string | Cleaned main-content HTML when outputFormat is html. null on status rows. |
wordCount | integer | Words in the returned content (0 on status rows). |
fetchStatus | string | ok = content returned and charged. Other values are free status rows: blocked (anti-bot or refused), login_required, paywall, not_html (PDF, file), empty (under 50 words), timeout, error. |
httpStatus | integer | HTTP status of the page response. |
error | string | Why the page has no content. null for ok rows. |
fetchedAt | string | When the page was read (ISO 8601). |
Input settings (5)
The main fields of the input form. With the API you send them as JSON.
| Setting | Name in the API | Type | Example value |
|---|---|---|---|
| Search query or URL required | query | string | "apify actors" |
| Pages to return | maxResults | integer | 3 |
| Content format | outputFormat | string | "markdown" |
| Google country | countryCode | string | "us" |
| Time budget (seconds) | timeoutSecs | integer | 40 |