RAG Web Browser: Web Search to LLM Context & Markdown
Pricing
from $1.00 / 1,000 searches
RAG Web Browser: Web Search to LLM Context & Markdown
Search the web and get the top results as one LLM-ready context block, their passages that answer the query under numbered sources to cite, and each page or PDF as Markdown; or fetch one URL. Chunks scored for relevance. Standby answers MCP calls in seconds. $2.50 per 1,000 searches of 3 pages.
Pricing
from $1.00 / 1,000 searches
Rating
0.0
(0)
Developer
Spyridon Pikoulas
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
2
Monthly active users
38 minutes ago
Last modified
Categories
Features
Share
For AI agents and RAG pipelines that need fresh web results as Markdown, at $1 per 1,000 searches and $0.50 per 1,000 pages.
Search the web and get the top results' pages as clean Markdown, ready for LLMs, RAG pipelines, chatbots and AI agents, or give a URL and get that page:
- One context block for the prompt: with LLM context block, the pages' passages that
answer the query come as one text, each page under a numbered source line (
[1]its title and URL), within the token budget you set, so the model can answer from them and cite[1],[2]. Free with the search. - Search results: each result's title, URL, snippet and rank, from DuckDuckGo, with Brave
Search for more results or when DuckDuckGo refuses. Search operators work:
"exact phrase",site:,-site:, and a time range keeps to the past day, week, month or year. - The page's own content, not its chrome: menus, headers, footers, sidebars, cookie banners and share buttons are left out, and headings, lists, tables, code blocks and links are kept, as Markdown, plain text or cleaned HTML.
- PDFs too: a result or URL that is a PDF comes as its text, with headings, lists and paragraphs as Markdown, at the price of a page.
- Metadata: the page's title, description, language, canonical URL, author and published date, and its length in tokens.
- Only the passages that answer the query: with Max tokens per page, a page longer than that is cut to its passages that best match the search terms (BM25), in page order under their headings, with … where text is left out, so an agent's context holds the answers and not the pages around them. The top 3 pages for "python asyncio task group exception handling", 9,372 tokens whole, came to 2,186 at 800 a page.
- Chunks for embedding: each page cut by its headings into chunks of the size you give, each with the headings it sits under, its token count and, for a search, how well it matches the query.
- Standby mode: an HTTP endpoint that answers
GET /search?query=...with the results as JSON, for AI agents, custom GPTs and tools that call the web in the middle of a conversation. - Inputs like Apify's RAG Web Browser:
query,maxResults,outputFormats,requestTimeoutSecs,removeElementsCssSelectorand the same result shape (searchResult,metadata,markdown), so an input or a parser made for it works here.
It is fast: plain HTTP with a real browser's TLS fingerprint and no headless browser. A search with 3 pages took 1–4 seconds, 10 pages 4 seconds, 20 pages 5 seconds. It costs $2.50 per 1,000 searches of 3 pages.
What people use it for
- Web search for AI agents: a tool an agent calls through MCP, LangChain, LlamaIndex or an OpenAI function to look things up and read the pages, not only the snippets.
- RAG with fresh content: the current pages about a topic, as Markdown for a prompt or a vector database.
- Grounding and fact-checking: the sources behind an answer, with their URLs and dates.
- Research and content briefs: what the top pages for a query say, side by side.
- SEO: which pages rank for a query, their titles, descriptions and word counts.
How to search the web and get the pages as Markdown
- Click Try for free; Apify's free plan covers a first run.
- Enter your Search terms or URL and how many results you want.
- Click Start, then download the results as JSON, CSV, Excel or HTML, or read them through the API.
An input with more options:
{"query": "function calling site:openai.com","maxResults": 5,"timeRange": "month","outputFormats": ["markdown", "text"],"maxTokensPerPage": 1500,"chunkSize": 600,"includeImages": false,"removeElementsCssSelector": ".newsletter, #comments","requestTimeoutSecs": 30,"maxRequestRetries": 1}
A query that is a URL (https://docs.python.org/3/library/asyncio-task.html, or
example.com/pricing) is fetched as it is, without a search.
Output
One item per result, in rank order (Markdown shortened here):
{"query": "retrieval augmented generation","searchResult": {"title": "Retrieval-augmented generation - Wikipedia","description": "Retrieval-augmented generation (RAG) is a technique that enables large language models (LLMs) to retrieve and incorporate new information from external data sources. [1][2] With RAG, LLMs first refer to a specified set of documents, then respond to user queries.","url": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation","rank": 1,"engine": "duckduckgo"},"crawl": {"httpStatusCode": 200,"loadedUrl": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation","loadedAt": "2026-09-29T14:50:06Z","requestStatus": "handled","loadMs": 267},"metadata": {"title": "Retrieval-augmented generation - Wikipedia","description": null,"languageCode": "en","url": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation","canonicalUrl": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation","author": "Contributors to Wikimedia projects","publishedAt": "2023-11-05T13:19:20Z"},"markdown": "# Retrieval-augmented generation\n\n**Retrieval-augmented generation** (**RAG**) is a technique that enables [large language models](https://en.wikipedia.org/wiki/Large_language_model) (LLMs) to retrieve and incorporate new information from external data sources.[1][2] With RAG, LLMs first refer to a specified set of documents, then respond to user queries. ...","wordCount": 2406,"tokens": 4630,"needsJavaScript": false,"warning": null}
text and html come instead of or besides markdown when asked for, and with chunkSize the
page's chunks (
{"index": 0, "headings": ["Retrieval-augmented generation"], "text": "...", "tokens": 587, "relevance": 0.42}relevance the chunk's match to the search terms, the page's
best as 1). tokens counts about four characters a token. With maxTokensPerPage, markdown
and text are the page's best passages, tokens counts them, pageTokens the whole page, and
trimmed says whether it was cut; a URL given as the query keeps the page's start, and html
stays whole. A result from Brave
Search can carry the page's date, and a PDF has its pageCount. A page that can't be read keeps its searchResult and comes
with an error ("Couldn't load the page: HTTP 404.", "Couldn't load the page: the site's bot
check refused it.", "Not a web page (image/png): nothing to extract."), and isn't charged.
With includeContext, a last row holds the context block, here for "python asyncio task group
exception handling" at contextTokens 1,200 (1,088 tokens, cut short here):
{"type": "context","query": "python asyncio task group exception handling","context": "[1] Python Taskgroups with asyncIO - GeeksforGeeks\nhttps://www.geeksforgeeks.org/python/python-taskgroups-with-asyncio/\n\n# Python Taskgroups with asyncIO\n\n...\n\n---\n\n[2] Task Group Trouble: Exception Handling in Python Asyncio (3.11+)\nhttps://runebook.dev/en/docs/python/library/asyncio-task/task-groups\n\n...Only access `task.result()` after a successful `async with TaskGroup()` exit...","sources": [{"n": 1, "title": "Python Taskgroups with asyncIO - GeeksforGeeks", "url": "https://www.geeksforgeeks.org/python/python-taskgroups-with-asyncio/"},{"n": 2, "title": "Task Group Trouble: Exception Handling in Python Asyncio (3.11+)", "url": "https://runebook.dev/en/docs/python/library/asyncio-task/task-groups"},{"n": 3, "title": "How to Handle Asyncio Task Exceptions – SuperFastPython", "url": "https://superfastpython.com/asyncio-task-exceptions/"}],"tokens": 1088}
The budget is shared evenly among the pages read (the first ones, when there are more than one per
100 tokens), each cut to its passages that best match the
query (a URL given as the query keeps its start), and pages that failed are left out. In Standby,
includeContext=true adds it as the last item.
Use it as an API
One call runs it and returns the results as JSON. Apify's Python and JavaScript clients, LangChain and LlamaIndex loaders, and its Make, Zapier and n8n integrations work the same way.
curl -X POST "https://api.apify.com/v2/acts/pikoulas~rag-web-browser/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"query": "retrieval augmented generation", "maxResults": 3}'
In Standby mode it answers straight away, without starting a run for each call; the input's
fields are query parameters (outputFormats=markdown,text):
curl "https://pikoulas--rag-web-browser.apify.actor/search?query=retrieval%20augmented%20generation&maxResults=3" \-H "Authorization: Bearer YOUR_APIFY_TOKEN"
AI agents can call it as a tool through Apify's MCP server: https://mcp.apify.com?tools=pikoulas/rag-web-browser.
How much does it cost to search the web with it?
You pay $0.001 per search and $0.0005 per page: a search with 3 pages is $0.0025, which is $2.50 per 1,000. A URL given as the query is only the page, $0.0005. Pages that fail, and pages with next to no text (apps that need JavaScript), aren't charged, and neither is a search with no results. The same prices apply in Standby mode. Runs that go through Apify's residential proxy also pay its traffic, $0.0012 per 100 KB; a result page is 50–150 KB on the wire (about 70 KB on average) and a search 7–60 KB. A page cut to a token budget costs the same. There are no monthly fees.
Good to know
- Search engines: DuckDuckGo's first page gives up to about 10 results; Brave Search adds more, 20 a page. Google isn't used: it answers plain HTTP only with a JavaScript page. So the results are close to, but not the same as, Google's.
- No JavaScript. It reads the HTML a site sends, which for most sites (news, blogs, docs,
Wikipedia, shops, forums) is the whole content. Apps that build their page in the browser come
with
needsJavaScript: true, next to no text and a warning, and aren't charged. - Bot checks: sites behind Cloudflare's or DataDome's challenge, and Reddit's threads, refuse plain HTTP clients: those results come with an error and aren't charged. A proxy doesn't get past a challenge.
- Timeout:
requestTimeoutSecsis the whole request's, the search included; the pages not loaded by then come with an error and the others are returned. - Files: a PDF's first 100 pages are read; one that is scanned, password-protected or forbids copying its text gives none and isn't charged. Plain-text and Markdown files are given as they are; images and other files aren't read.
- Standby: a Standby run serves requests until a minute passes without one; the request after
that waits a few seconds for a new one to start.
proxyConfigurationcan't be set per request. - Input fields of Apify's RAG Web Browser that don't apply here (
scrapingTool,htmlTransformer,serpProxyGroupand the like) are ignored.
FAQ
Is it legal to scrape search results and web pages?
It fetches only public pages, without logging in. Brave Search's robots.txt refuses the paths it reads, DuckDuckGo's policy bars reselling its service, and your use of them is your own responsibility. Personal data is also protected by laws such as the GDPR and the CCPA, and a site's terms may limit how you use its content. If you're unsure, ask a lawyer; Apify's Is web scraping legal? is a good start.
Something missing or not working?
Open an issue on the Issues tab with the input you used, or ask there for a field you need.