{"uid":"cap_6NLEC6bjzuNf7Nn4n92SB","slug":"apify-rag-web-browser-actor-runner-90071a8c","name":"Apify RAG Web Browser Actor Runner","description":"Start the \"RAG Web Browser\" Apify actor (apify/rag-web-browser). Web search and fetch tool for AI agents and RAG pipelines. It queries Google Search, scrapes the top N pages using a full web browser, and returns their conten…","url":"https://apify-api-git-br-better-actor-pay-merit-systems.vercel.app/api/actors/apify/rag-web-browser/call","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["query","maxResults","outputFormats","requestTimeoutSecs","serpProxyGroup","serpMaxRetries","proxyConfiguration","scrapingTool","removeElementsCssSelector","htmlTransformer","desiredConcurrency","maxRequestRetries","dynamicContentWaitSecs","removeCookieWarnings","debugMode"],"properties":{"query":{"type":"string","pattern":"[^\\s]+","description":"Enter Google Search keywords or a URL of a specific web page. The keywords might include the [advanced search operators](https://blog.apify.com/how-to-scrape-google-like-a-pro/). Examples: - san francisco weather - https://www.cnn.com - function calling site:openai.com"},"debugMode":{"type":"boolean","default":false,"description":"If enabled, the Actor will store debugging information into the resulting dataset under the `debug` field."},"maxResults":{"type":"integer","default":3,"maximum":100,"minimum":1,"description":"The maximum number of top organic Google Search results whose web pages will be extracted. If `query` is a URL, then this field is ignored and the Actor only fetches the specific web page."},"scrapingTool":{"enum":["browser-playwright","raw-http"],"type":"string","default":"raw-http","description":"Select a scraping tool for extracting the target web pages. The Browser tool is more powerful and can handle JavaScript heavy websites, while the Plain HTML tool can't handle JavaScript but is about two times faster."},"outputFormats":{"type":"array","items":{"enum":["text","markdown","html"],"type":"string"},"default":["markdown"],"description":"Select one or more formats to which the target web pages will be extracted and saved in the resulting dataset."},"serpMaxRetries":{"type":"integer","default":2,"maximum":5,"minimum":0,"description":"The maximum number of times the Actor will retry fetching the Google Search results on error. If the last attempt fails, the entire request fails."},"serpProxyGroup":{"enum":["GOOGLE_SERP","SHADER"],"type":"string","default":"GOOGLE_SERP","description":"Enables overriding the default Apify Proxy group used for fetching Google Search results."},"htmlTransformer":{"type":"string","default":"none","description":"Specify how to transform the HTML to extract meaningful content without any extra fluff, like navigation or modals. The HTML transformation happens after removing and clicking the DOM elements. - **None** (default) - Only removes the HTML elements specified via 'Remove HTML elements' option. - **Readable text** - Extracts the main contents of the webpage, without navigation and other fluff."},"maxRequestRetries":{"type":"integer","default":1,"maximum":3,"minimum":0,"description":"The maximum number of times the Actor will retry loading the target web page on error. If the last attempt fails, the page will be skipped in the results."},"desiredConcurrency":{"type":"integer","default":5,"maximum":50,"minimum":0,"description":"The desired number of web browsers running in parallel. The system automatically scales the number based on the CPU and memory usage. If the initial value is `0`, the Actor picks the number automatically based on the available memory."},"proxyConfiguration":{"type":"object","default":{"useApifyProxy":true},"properties":{"proxyUrls":{"type":"array","items":{"type":"string"}},"useApifyProxy":{"type":"boolean"},"apifyProxyGroups":{"type":"array","items":{"type":"string"}},"apifyProxyCountry":{"type":"string"}},"description":"Apify Proxy configuration used for scraping the target web pages.","additionalProperties":{}},"requestTimeoutSecs":{"type":"integer","default":40,"maximum":300,"minimum":1,"description":"The maximum time in seconds available for the request, including querying Google Search and scraping the target web pages. For example, OpenAI allows only [45 seconds](https://platform.openai.com/docs/actions/production#timeouts) for custom actions. If a target page loading and extraction exceeds this timeout, the corresponding page will be skipped in results to ensure at least some results are returned within the timeout. If no page is extracted within the timeout, the whole request fails."},"removeCookieWarnings":{"type":"boolean","default":true,"description":"If enabled, the Actor attempts to close or remove cookie consent dialogs to improve the quality of extracted text. Note that this setting increases the latency."},"dynamicContentWaitSecs":{"type":"integer","default":10,"maximum":9007199254740991,"minimum":-9007199254740991,"description":"The maximum time in seconds to wait for dynamic page content to load. The Actor considers the web page as fully loaded once this time elapses or when the network becomes idle."},"removeElementsCssSelector":{"type":"string","default":"nav, footer, script, style, noscript, svg, img[src^='data:'],\n[role=\"alert\"],\n[role=\"banner\"],\n[role=\"dialog\"],\n[role=\"alertdialog\"],\n[role=\"region\"][aria-label*=\"skip\" i],\n[aria-modal=\"true\"]","description":"A CSS selector matching HTML elements that will be removed from the DOM, before converting it to text, Markdown, or saving as HTML. This is useful to skip irrelevant page content. The value must be a valid CSS selector as accepted by the `document.querySelectorAll()` function. By default, the Actor removes common navigation elements, headers, footers, modals, scripts, and inline image. You can disable the removal by setting this value to some non-existent CSS selector like `dummy_keep_everything`."}},"description":"Normalized actor input. See field descriptions for the simplified shape; native Apify input also accepted (passed through).","additionalProperties":{}},"options":{"type":"object","properties":{"build":{"type":"string","maxLength":100,"minLength":1},"memory":{"type":"integer","maximum":32768,"minimum":128},"maxItems":{"type":"integer","maximum":100000,"minimum":1}},"description":"Optional Apify run options.","additionalProperties":false}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"query":"artificial intelligence","maxResults":3,"scrapingTool":"raw-http","outputFormats":["markdown"],"requestTimeoutSecs":40}},"response":{"run":{"id":"K7qBuxUdcspWZQSEX","status":"READY","actorId":"3ox4R101TgZz67sLr","startedAt":"2026-06-03T04:33:45.245Z","usageTotalUsd":0.00005,"defaultDatasetId":"wC4tfsChYvcDaE0JF"},"token":"eyJhbGciOiJIUzI1NiJ9.eyJydW5JZCI6Iks3cUJ1eFVkY3NwV1pRU0VYIiwiYWN0b3JJZCI6ImFwaWZ5L3JhZy13ZWItYnJvd3NlciIsImRlZmF1bHREYXRhc2V0SWQiOiJ3QzR0ZnNDaFl2Y0RhRTBKRiIsInciOiIweDljYzQyZjNkOTI0NWI4NjdhY2NjZDYzMGI0M2Y5MDZjMTY2NWIxNzYiLCJpYXQiOjE3ODA0NjEyMjUsImV4cCI6MTc4MzA1MzIyNX0.5i045-icNwj3oYVIygpKNeSmzuexR2UuHwnmHdsMrAs"}},"exampleRequest":{"input":{"query":"artificial intelligence","maxResults":3,"scrapingTool":"raw-http","outputFormats":["markdown"],"requestTimeoutSecs":40}},"tags":["x402"],"displayCostAmount":"0.010000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.010000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qEPsv7NYyfagV7djPpcvG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes the Apify RAG Web Browser actor to perform Google searches and scrape top N pages, returning raw web content for AI/RAG pipelines","exampleAgentPrompt":"Search Google for 'climate change solutions 2024', scrape the top 3 results using raw HTTP, and return the page content in markdown format so I can use it as context for my AI pipeline.","exampleUseCases":null,"resultDescription":"Returns a run object with a run ID, status (e.g. READY), actor ID, start timestamp, usage cost in USD, default dataset ID, and a signed JWT token used to poll the run status at /api/actors/status and retrieve results at /api/actors/results once the run completes.","failureModes":["Query times out before pages are scraped — requestTimeoutSecs exceeded","Google search returns no results for obscure query","Target pages block scraping and return empty content","Invalid scraping tool value causes actor input validation error","Payment failure prevents run from starting","Actor run fails mid-execution leaving partial dataset"],"whenToPreferThis":"Choose this endpoint when you need to search the web and retrieve full page content (not just links or snippets) for use in RAG pipelines or AI agent context. It combines Google Search with full browser-based or HTTP scraping in one call, returning structured markdown content. Prefer it over generic search APIs when you need actual page text, not just metadata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:25.342Z","isFirstParty":false}