
RAG Web Browser
Pricing
Pay per usage

RAG Web Browser
Web browser for OpenAI Assistants, RAG pipelines, or AI agents, similar to a web browser in ChatGPT. It queries Google Search, scrapes the top N pages from the results, and returns their cleaned content as Markdown for further processing by an LLM. It can also scrape individual URLs. Supports MCP.
4.4 (11)
Pricing
Pay per usage
75
Monthly users
848
Runs succeeded
>99%
Response time
2.6 days
Last modified
18 days ago
You can access the RAG Web Browser programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "1.0",
5 "x-build-id": "R3jwGeuZs3gAb2y9y"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/apify~rag-web-browser/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-apify-rag-web-browser",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/apify~rag-web-browser/runs": {
50 "post": {
51 "operationId": "runs-sync-apify-rag-web-browser",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/apify~rag-web-browser/run-sync": {
93 "post": {
94 "operationId": "run-sync-apify-rag-web-browser",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "required": [
134 "query"
135 ],
136 "properties": {
137 "query": {
138 "title": "Search term or URL",
139 "pattern": "[^\\s]+",
140 "type": "string",
141 "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:\n\n- <code>san francisco weather</code>\n- <code>https://www.cnn.com</code>\n- <code>function calling site:openai.com</code>"
142 },
143 "maxResults": {
144 "title": "Maximum results",
145 "minimum": 1,
146 "maximum": 100,
147 "type": "integer",
148 "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.",
149 "default": 3
150 },
151 "outputFormats": {
152 "title": "Output formats",
153 "type": "array",
154 "description": "Select one or more formats to which the target web pages will be extracted and saved in the resulting dataset.",
155 "items": {
156 "type": "string",
157 "enum": [
158 "text",
159 "markdown",
160 "html"
161 ],
162 "enumTitles": [
163 "Plain text",
164 "Markdown",
165 "HTML"
166 ]
167 },
168 "default": [
169 "markdown"
170 ]
171 },
172 "requestTimeoutSecs": {
173 "title": "Request timeout",
174 "minimum": 1,
175 "maximum": 300,
176 "type": "integer",
177 "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.",
178 "default": 40
179 },
180 "serpProxyGroup": {
181 "title": "SERP proxy group",
182 "enum": [
183 "GOOGLE_SERP",
184 "SHADER"
185 ],
186 "type": "string",
187 "description": "Enables overriding the default Apify Proxy group used for fetching Google Search results.",
188 "default": "GOOGLE_SERP"
189 },
190 "serpMaxRetries": {
191 "title": "SERP max retries",
192 "minimum": 0,
193 "maximum": 5,
194 "type": "integer",
195 "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.",
196 "default": 2
197 },
198 "proxyConfiguration": {
199 "title": "Proxy configuration",
200 "type": "object",
201 "description": "Apify Proxy configuration used for scraping the target web pages.",
202 "default": {
203 "useApifyProxy": true
204 }
205 },
206 "scrapingTool": {
207 "title": "Select a scraping tool",
208 "enum": [
209 "browser-playwright",
210 "raw-http"
211 ],
212 "type": "string",
213 "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.",
214 "default": "raw-http"
215 },
216 "removeElementsCssSelector": {
217 "title": "Remove HTML elements (CSS selector)",
218 "type": "string",
219 "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. \n\nBy 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`.",
220 "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\"]"
221 },
222 "htmlTransformer": {
223 "title": "HTML transformer",
224 "type": "string",
225 "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.\n\n- **None** (default) - Only removes the HTML elements specified via 'Remove HTML elements' option.\n\n- **Readable text** - Extracts the main contents of the webpage, without navigation and other fluff.",
226 "default": "none"
227 },
228 "desiredConcurrency": {
229 "title": "Desired browsing concurrency",
230 "minimum": 0,
231 "maximum": 50,
232 "type": "integer",
233 "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.",
234 "default": 5
235 },
236 "maxRequestRetries": {
237 "title": "Target page max retries",
238 "minimum": 0,
239 "maximum": 3,
240 "type": "integer",
241 "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.",
242 "default": 1
243 },
244 "dynamicContentWaitSecs": {
245 "title": "Target page dynamic content timeout",
246 "type": "integer",
247 "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.",
248 "default": 10
249 },
250 "removeCookieWarnings": {
251 "title": "Remove cookie warnings",
252 "type": "boolean",
253 "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.",
254 "default": true
255 },
256 "debugMode": {
257 "title": "Enable debug mode",
258 "type": "boolean",
259 "description": "If enabled, the Actor will store debugging information into the resulting dataset under the `debug` field.",
260 "default": false
261 }
262 }
263 },
264 "runsResponseSchema": {
265 "type": "object",
266 "properties": {
267 "data": {
268 "type": "object",
269 "properties": {
270 "id": {
271 "type": "string"
272 },
273 "actId": {
274 "type": "string"
275 },
276 "userId": {
277 "type": "string"
278 },
279 "startedAt": {
280 "type": "string",
281 "format": "date-time",
282 "example": "2025-01-08T00:00:00.000Z"
283 },
284 "finishedAt": {
285 "type": "string",
286 "format": "date-time",
287 "example": "2025-01-08T00:00:00.000Z"
288 },
289 "status": {
290 "type": "string",
291 "example": "READY"
292 },
293 "meta": {
294 "type": "object",
295 "properties": {
296 "origin": {
297 "type": "string",
298 "example": "API"
299 },
300 "userAgent": {
301 "type": "string"
302 }
303 }
304 },
305 "stats": {
306 "type": "object",
307 "properties": {
308 "inputBodyLen": {
309 "type": "integer",
310 "example": 2000
311 },
312 "rebootCount": {
313 "type": "integer",
314 "example": 0
315 },
316 "restartCount": {
317 "type": "integer",
318 "example": 0
319 },
320 "resurrectCount": {
321 "type": "integer",
322 "example": 0
323 },
324 "computeUnits": {
325 "type": "integer",
326 "example": 0
327 }
328 }
329 },
330 "options": {
331 "type": "object",
332 "properties": {
333 "build": {
334 "type": "string",
335 "example": "latest"
336 },
337 "timeoutSecs": {
338 "type": "integer",
339 "example": 300
340 },
341 "memoryMbytes": {
342 "type": "integer",
343 "example": 1024
344 },
345 "diskMbytes": {
346 "type": "integer",
347 "example": 2048
348 }
349 }
350 },
351 "buildId": {
352 "type": "string"
353 },
354 "defaultKeyValueStoreId": {
355 "type": "string"
356 },
357 "defaultDatasetId": {
358 "type": "string"
359 },
360 "defaultRequestQueueId": {
361 "type": "string"
362 },
363 "buildNumber": {
364 "type": "string",
365 "example": "1.0.0"
366 },
367 "containerUrl": {
368 "type": "string"
369 },
370 "usage": {
371 "type": "object",
372 "properties": {
373 "ACTOR_COMPUTE_UNITS": {
374 "type": "integer",
375 "example": 0
376 },
377 "DATASET_READS": {
378 "type": "integer",
379 "example": 0
380 },
381 "DATASET_WRITES": {
382 "type": "integer",
383 "example": 0
384 },
385 "KEY_VALUE_STORE_READS": {
386 "type": "integer",
387 "example": 0
388 },
389 "KEY_VALUE_STORE_WRITES": {
390 "type": "integer",
391 "example": 1
392 },
393 "KEY_VALUE_STORE_LISTS": {
394 "type": "integer",
395 "example": 0
396 },
397 "REQUEST_QUEUE_READS": {
398 "type": "integer",
399 "example": 0
400 },
401 "REQUEST_QUEUE_WRITES": {
402 "type": "integer",
403 "example": 0
404 },
405 "DATA_TRANSFER_INTERNAL_GBYTES": {
406 "type": "integer",
407 "example": 0
408 },
409 "DATA_TRANSFER_EXTERNAL_GBYTES": {
410 "type": "integer",
411 "example": 0
412 },
413 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
414 "type": "integer",
415 "example": 0
416 },
417 "PROXY_SERPS": {
418 "type": "integer",
419 "example": 0
420 }
421 }
422 },
423 "usageTotalUsd": {
424 "type": "number",
425 "example": 0.00005
426 },
427 "usageUsd": {
428 "type": "object",
429 "properties": {
430 "ACTOR_COMPUTE_UNITS": {
431 "type": "integer",
432 "example": 0
433 },
434 "DATASET_READS": {
435 "type": "integer",
436 "example": 0
437 },
438 "DATASET_WRITES": {
439 "type": "integer",
440 "example": 0
441 },
442 "KEY_VALUE_STORE_READS": {
443 "type": "integer",
444 "example": 0
445 },
446 "KEY_VALUE_STORE_WRITES": {
447 "type": "number",
448 "example": 0.00005
449 },
450 "KEY_VALUE_STORE_LISTS": {
451 "type": "integer",
452 "example": 0
453 },
454 "REQUEST_QUEUE_READS": {
455 "type": "integer",
456 "example": 0
457 },
458 "REQUEST_QUEUE_WRITES": {
459 "type": "integer",
460 "example": 0
461 },
462 "DATA_TRANSFER_INTERNAL_GBYTES": {
463 "type": "integer",
464 "example": 0
465 },
466 "DATA_TRANSFER_EXTERNAL_GBYTES": {
467 "type": "integer",
468 "example": 0
469 },
470 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
471 "type": "integer",
472 "example": 0
473 },
474 "PROXY_SERPS": {
475 "type": "integer",
476 "example": 0
477 }
478 }
479 }
480 }
481 }
482 }
483 }
484 }
485 }
486}
RAG Web Browser OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for RAG Web Browser from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients:
Pricing
Pricing model
Pay per usageThis Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.