AI Document & Web Analyzer — powered by OpenAI GPT
Pricing
from $1.50 / 1,000 own-key analyzed items
AI Document & Web Analyzer — powered by OpenAI GPT
Summarize, classify, extract JSON and answer questions on web pages, PDFs, Office files, images and any Apify dataset with OpenAI GPT. Several tasks per run, quotes checked against your input, AI-free data cleaning and dedupe, Flex and Batch for half-price runs. Not affiliated with OpenAI.
Pricing
from $1.50 / 1,000 own-key analyzed items
Rating
0.0
(0)
Developer
Badr Bouargan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
What is AI Document & Web Analyzer for OpenAI?
AI Document & Web Analyzer runs OpenAI GPT models on web pages, PDFs, Office files, images, texts and Apify datasets, so you can turn them into structured rows with summaries, fields, labels and answers. You use your own OpenAI API key; every row shows its tokens and its real OpenAI cost.
- Analyze many source types: web pages, PDF, DOCX, DOC, RTF, ODT, PPTX, PPT, XLSX, XLS, CSV, TXT, MD, JSON, XML, HTML, images and the dataset of any other Apify Actor.
- Run several tasks in one run: summarize, extract with your JSON schema, classify, Q&A, key facts, compare, contradictions, reports.
- Get evidence: conclusions cite quotes, and each quote is checked against your input (
verified: true/false). - Use data tasks with no AI call: profile, clean, dedupe, cluster, trends, anomalies and align on Apify datasets, no OpenAI key needed.
- Pay less with OpenAI options: Flex processing and the Batch API (about 50 % cheaper), a 12-hour prompt cache.
- Keep costs under control: estimate-only runs, a cost cap (
maxCostUsd, $2 by default), token limits. - Get strict JSON: OpenAI Structured Outputs, with your schema checked before the run.
Who uses it: analysts summarizing documents and web pages, operations teams extracting fields from invoices or contracts, marketers classifying reviews and posts scraped with other Actors, and data teams cleaning and deduplicating datasets.
It uses the official OpenAI Responses API with your key. The default model is gpt-6-luna, the cheapest current OpenAI model (USD 0.10 / 0.50 per 1M input / output tokens).
Independent product, not affiliated with or endorsed by OpenAI. "OpenAI" and "GPT" are named only to say which models the Actor uses.
What data can you extract with OpenAI GPT?
One dataset row per item (single task) or per task result (task list).
| Field | Description | Example |
|---|---|---|
📄 source, sourceType | The item analyzed | text #1, text |
🧩 task, taskId, taskType | The task that produced the row | summarize |
📝 title, summary, keyPoints | Summary task output | "Apify is a platform…" |
🧱 result | Your outputSchema fields, labels, answers or task result | {"price": 1234.5, "price_currency": "EUR"} |
🏷️ labels, entities, importantInfo | Labels, people, organisations, dates, amounts, deadlines | ["positive"] |
🔍 evidence | Conclusions with quotes, verified flags and a computed confidence | "confidenceBasis": "1/1 quotes verified" |
🤖 model, analysisLevel, serviceTierUsed | Model, level and OpenAI tier really used | gpt-6-luna, quick, standard |
🔢 tokens, costUsd, costBreakdown | Tokens as reported by OpenAI and the cost at list price | {"input": 812, "output": 164} |
⚠️ warnings, error | Notes and the error code of a failed item | estimateOnly |
| Task | AI call? | Result |
|---|---|---|
summarize, extract, classify, analyze, detect_key_info, report, custom, qa | yes | One row per item |
compare, contradictions | yes (1 call, or 1 per source) | One row across sources |
profile, clean, dedupe, cluster, trends, anomalies, align | no | Deterministic code on dataset rows |
Extraction normalizes dates, prices, phones, e-mails and URLs from the exact source text. An ambiguous value such as 03/04/2026 is never guessed: it becomes null and keeps its _raw text. Duplicates found by dedupe are only marked, never removed.
How to analyze documents with OpenAI GPT
What you need
This Actor needs your own OpenAI API key (bring your own key). OpenAI bills you the tokens directly.
- Sign in at platform.openai.com and add a payment method or credit in Billing.
- Open API keys and click Create new secret key.
- Use a dedicated project key, and set a spend limit in your OpenAI organization settings.
- Copy the key once; OpenAI does not show it again.
The key goes in the OpenAI API key field, which is a secret input encrypted by Apify. It is never logged, stored or shown, and anything that looks like a key is removed from messages, rows and reports. Without a key, the run switches to Estimate only: token and cost estimates, no AI call (data tasks still run).
Steps
- Click Try for free on this page, or create a free Apify account.
- Paste your key in OpenAI API key.
- Add web pages, texts, document URLs, image URLs or an Apify dataset.
- Pick the task and the analysis level (
standardby default;quickis cheapest), and click Start. - Download your data as JSON, CSV, Excel or HTML, or open the visual report.
Try it free: run the prefill without a key. It summarizes one short text in estimate-only mode. On Nov 24, 2026 it estimated 523 input tokens and a maximum OpenAI cost of $0.0031, with no AI call.
How much does it cost to analyze documents with OpenAI?
You pay Apify a fee per result, the same on every Apify plan. OpenAI bills your key for the tokens.
| Event | Price | Per 1,000 |
|---|---|---|
Item analyzed, quick (1 unit) | $0.0015 | $1.50 |
Item analyzed, standard (2 units) | $0.003 | $3.00 |
Item analyzed, deep (4 units) | $0.006 | $6.00 |
Item analyzed, expert (8 units, real 3-pass pipeline) | $0.012 | $12.00 |
| Data row (all data tasks together, once per run) | $0.0002 | $0.20 |
| Batch status check (only when a batch is not ready) | $0.0013 | – |
| Actor start | $0.00005 | – |
One-call work (compare, contradictions, dataset analyze, narrative, Batch rows) is never charged ×8: at expert it is charged the deep units.
The Apify Free plan gives you $5 of platform credit each month. That covers about 3,300 quick results or 1,600 standard results a month in item fees.
OpenAI list prices per 1M tokens (checked Nov 10, 2026; your OpenAI invoice is the reference):
model | Standard (in / cached / out) | Flex and Batch |
|---|---|---|
gpt-6-luna (default) | $0.10 / $0.01 / $0.50 | $0.05 / $0.005 / $0.25 |
gpt-6.1-terra | $1.00 / $0.05 / $5.00 | $0.50 / $0.025 / $2.50 |
gpt-6.1-sol | $2.00 / $0.10 / $10.00 | $1.00 / $0.05 / $5.00 |
gpt-6-astra | $10.00 / $1.00 / $50.00 | $5.00 / $0.50 / $25.00 |
Above 272K input tokens, OpenAI charges 2x input and 1.5x output; the Actor splits long content instead and flags longContext.
Examples:
- 1,000 short texts at
quickwith Luna: $1.50 to Apify plus about $0.60 to OpenAI (estimate: 1,500 tokens in, 500 out per item). - 2,500 dataset rows with four data tasks: $0.50, no OpenAI cost.
Never charged: failed items, refusals, estimate-only rows, items not processed after a stop, and refused runs. Set Maximum cost per run in the run options, and maxCostUsd for the OpenAI side.
Not available yet: a managed-key mode (paying tokens through Apify). An input with "apiKeyMode": "managed" is refused before any call, and nothing is charged.
⬇️ Input
The prefill (no key: estimate only):
{"texts": ["Apify is a platform where developers build, deploy and publish web scrapers and automation tools called Actors. Actors store their results in datasets that other Actors can read, so a scraper and an AI step can be chained."],"task": "summarize","analysisLevel": "quick","maxItems": 3,"maxCostUsd": 0.5}
A task list on a reviews dataset, with Flex:
{"datasetIds": ["<dataset of a Google Maps reviews run>"],"datasetFields": ["title", "text", "stars"],"serviceTier": "flex","tasks": [{"id": "sentiment", "type": "classify", "labels": ["positive", "negative", "mixed"]},{"id": "issues", "type": "qa", "questions": ["What problem does the customer report?"]},{"id": "dupes", "type": "dedupe", "source": "datasets", "nameFields": ["title"]}],"apiKey": "sk-..."}
| Field | What it does |
|---|---|
startUrls, texts, documentUrls, imageUrls, datasetIds, datasetFields | Sources (documents up to 50 MB each). |
task, instructions, outputSchema, labels | Single-task mode. |
tasks | Task list (overrides task). |
analysisLevel | quick, standard (default), deep (2 passes + verification), expert (3 passes + verification). |
model | Overrides the level's model. |
serviceTier, batchMode, promptCacheTtl | Flex, Batch API (from 20 items) and 12-hour cache. |
dataIntelligence, maxDatasetItems | AI-free data tasks; up to 100,000 rows (512 MB up to 10,000 rows, 1 GB up to 50,000, 4 GB up to 100,000). |
webSearch, codeInterpreter | Paid OpenAI tools, off by default ($10 per 1,000 searches; $0.03 per 20-minute session). |
maxItems, maxCostUsd, maxTotalTokens, estimateOnly | Limits and guards. |
apiKey | Your OpenAI key, a secret input. |
The input form of the run shown below:

Real run L4qMaaOklf2W0d8WL · Nov 24, 2026 · prefill: 1 text, summarize, quick, no key (estimate only)
⬆️ Output
Each run saves a dataset with the views Overview, Results, Costs and Evidence. You can download your data as JSON, CSV, Excel, XML or HTML, or read it through the API. The row of the run below, shortened (estimate only, no AI call):
{"source": "text #1","sourceType": "text","task": "summarize","model": "gpt-6-luna","analysisLevel": "quick","summary": null,"tokens": { "input": 0, "output": 0 },"costUsd": 0,"estimateOnly": true,"estimatedInputTokens": 523,"estimatedMaxCostUsd": 0.003052,"warnings": [{ "code": "estimateOnly", "message": "Estimate only: no AI call was made. …" }],"error": null}
With your key, a task row looks like this (illustrative values):
{"taskId": "issues", "taskType": "qa", "itemId": "text#1", "model": "gpt-6-luna", "serviceTierUsed": "flex","result": {"answers": [{"question": "What problem does the customer report?", "answer": "The parcel arrived late.","quote": "my parcel arrived nine days late", "quoteVerified": true}]},"evidence": {"conclusions": [{"claim": "Delivery delay is the main complaint.","sources": [{"itemId": "text#1", "quote": "my parcel arrived nine days late", "verified": true}],"confidence": 1.0, "confidenceBasis": "1/1 quotes verified"}]},"tokens": {"input": 812, "cachedInput": 0, "output": 164, "reasoning": 40},"costUsd": 0.0000816, "itemFee": {"event": "item-analyzed", "units": 2}}
The visual report of the same run:

Real run L4qMaaOklf2W0d8WL · Nov 24, 2026 · prefill without a key: visual report, estimate only
The key-value store also holds REPORT (HTML), REPORT_MD, RUN_SUMMARY (status, tokens, cost, billed events, Flex fallbacks, batch receipt), FAILED_INPUTS, CLEANED_<taskId> and DEDUPE_<taskId>.
Integrations and API
You can start runs and read results from code with the apify-client package (npm, PyPI). The full reference is in the Apify API docs.
Python:
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("badr_xba/ai-document-web-analyzer-openai").call(run_input={"texts": ["Acme opened a factory in Lyon in March 2026."],"tasks": [{"type": "summarize"}, {"type": "qa", "questions": ["Where is the factory?"]}],"serviceTier": "flex","apiKey": "YOUR_OPENAI_API_KEY",})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["taskType"], row["summary"], row.get("evidence"))
JavaScript:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('badr_xba/ai-document-web-analyzer-openai').call({datasetIds: ['YOUR_DATASET_ID'],tasks: [{ type: 'profile' }, { type: 'dedupe', nameFields: ['title'] }],});const { items } = await client.dataset(run.defaultDatasetId).listItems();
cURL (runs the Actor and returns the rows in one call):
curl -X POST "https://api.apify.com/v2/acts/badr_xba~ai-document-web-analyzer-openai/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"texts": ["Late fee rises from 0.20 EUR to 0.30 EUR."], "task": "detect_key_info", "apiKey": "YOUR_OPENAI_API_KEY"}'
Other ways to connect it:
- Chain it after a scraper: in the scraper's Integrations tab, connect this Actor with
{"datasetIds": ["{{resource.defaultDatasetId}}"]}. - Make, n8n and Zapier: send the summaries or extracted fields to Google Sheets, Slack or your CRM.
- Webhooks: trigger an action when a run ends (docs).
- Schedules: collect Batch API results every 30 minutes with a saved task (docs).
- MCP: add
https://mcp.apify.com/?actors=badr_xba/ai-document-web-analyzer-openaito Claude, ChatGPT or Cursor (docs).
Other AI analyzers and scrapers to chain
More Actors by the same developer:
- AI Document & Web Analyzer (Claude): the same tasks with Anthropic Claude models.
- AI Multimodal Analyzer (Gemini): the same tasks with Google Gemini models.
- YouTube Data Scraper: videos, comments and transcripts to analyze.
- Google Maps Business Leads: local businesses and their reviews to analyze.
- Amazon Product Scraper: product listings and ratings to analyze.
- Website Contact Scraper: company websites to enrich, then classify.
❓ FAQ
Is it legal to analyze web pages and documents with AI?
The Actor reads only the pages, files and datasets you give it, without login, and respects robots.txt for web pages. You are responsible for having the right to process the content and for your use of the results, including personal data under the GDPR. Content is sent to OpenAI with store: false. The Batch API, Files API (Code Interpreter) and containers are not covered by OpenAI's Zero Data Retention, so leave batchMode and codeInterpreter off if your organisation requires it. The Apify blog explains the general rules in Is web scraping legal?. This is not legal advice.
Can I use AI Document & Web Analyzer through an MCP server?
Yes. Add https://mcp.apify.com/?actors=badr_xba/ai-document-web-analyzer-openai to your MCP client (Claude, ChatGPT, Cursor), then ask it to summarize a list of URLs or classify a dataset.
Can I integrate AI Document & Web Analyzer with other apps?
Yes. It works with Make, n8n, Zapier, Google Sheets, Slack and any tool that accepts webhooks, and it reads the dataset of any other Apify Actor.
Can I use AI Document & Web Analyzer with the Apify API or in Python?
Yes. Use apify-client for Python or JavaScript, or call the REST API directly. The examples above show all three.
How much does it cost to analyze documents with OpenAI?
$1.50 per 1,000 quick results, $3.00 standard, $6.00 deep and $12.00 expert, on every Apify plan, plus the tokens OpenAI bills your key. Data tasks cost $0.20 per 1,000 rows, with no OpenAI cost.
Do I need an OpenAI key or proxies?
You need your own OpenAI key for AI tasks (see What you need). No proxy is needed. Without a key, the run gives estimates only, and the data tasks still run. A rejected key (invalidApiKey) or an exhausted quota (quotaExceeded) stops at the first call, and only Apify's run start is charged.
Is there an official OpenAI API?
Yes, and this Actor uses it: the OpenAI Responses API with Structured Outputs, Flex processing, the Batch API, prompt caching and, on request, the web search and Code Interpreter tools. The Actor adds the sources (pages, files, datasets), the task list, checked quotes, AI-free data tasks and cost guards.
Which model should I pick?
Start with the default gpt-6-luna, the cheapest. Test it on a few of your own items. If answers miss details, set model to gpt-6.1-terra or gpt-6.1-sol, or use the deep or expert level. One real API call was measured so far (Nov 24, 2026: gpt-6-luna, 3.8 seconds, about $0.0002 for one short text); the larger benchmarks of this Actor use mocked answers.
What can't it do?
- JavaScript pages: no rendering; crawl them first with Website Content Crawler. Scanned PDFs are read from page images only.
- Spreadsheets: OpenAI reads the first 1,000 rows per sheet; use a dataset for more.
- Flex and Batch: Flex can take minutes; Batch results can take up to 24 hours.
- Costs: token estimates before a call are local approximations, and costs are list-price estimates.
AI Document & Web Analyzer not working?
Every item that gave no result is in FAILED_INPUTS with a code, and is never charged the item fee:
| Code | What to do |
|---|---|
invalidApiKey, apiKeyNoAccess | Create or copy a key at platform.openai.com/api-keys, paste it without spaces, check the project permissions. |
quotaExceeded | Add credit or raise the limit in your OpenAI organization settings. |
modelNotFound | Choose another model or level. |
rateLimited, providerError, timeout | Lower concurrency, or run again later. |
notEnoughMemory, tooManyRows | Run with the memory named in the message, or read fewer rows. |
TIME_LIMIT | Run again with a longer timeout or fewer items. |
By default, a stop caused by your input, key or account ends SUCCEEDED with a clear message, so your schedules keep running. Set failRunOnError to true if a webhook must see a failed run.
Your feedback
Found a bug, a missing feature or an idea? Open an issue on the Issues tab with your run ID. A short review on the Store page also helps other users find the Actor.