AI Document & Web Analyzer — powered by OpenAI GPT avatar

AI Document & Web Analyzer — powered by OpenAI GPT

Pricing

from $1.50 / 1,000 item analyzed (own key)s

Go to Apify Store
AI Document & Web Analyzer — powered by OpenAI GPT

AI Document & Web Analyzer — powered by OpenAI GPT

Summarize, classify or extract JSON from web pages, PDFs, Word files, images, texts and any Apify dataset with OpenAI GPT models. Bring your own OpenAI API key. Token caps, an estimate-only mode and a visual report. Not affiliated with OpenAI.

Pricing

from $1.50 / 1,000 item analyzed (own key)s

Rating

0.0

(0)

Developer

Badr Bouargan

Badr Bouargan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 hours ago

Last modified

Features

Limited permissions

Share

Run OpenAI GPT models on web pages, PDFs, Word / PowerPoint / Excel files, images, raw texts and the datasets of any other Apify Actor. Every item becomes one row: summary, key points, your extracted JSON fields, labels, key facts, a report section or a comparison. You also get token counts, the estimated OpenAI cost and a visual REPORT page.

Independent product, not affiliated with or endorsed by OpenAI. "OpenAI" and "GPT" are named only to say which models the Actor uses.

AI Document & Web Analyzer powered by OpenAI GPT: features overview

Why use it

  • Strict JSON you can load straight into a database. Every answer uses OpenAI Structured Outputs in strict mode; extract follows your JSON Schema, checked against the strict-mode rules before the run starts.
  • Office files, not only PDFs. PDF, DOCX, PPTX, XLSX, TXT, MD, CSV and JSON documents up to 50 MB.
  • One step after any scraper. Pass the dataset of Website Content Crawler, Amazon, Instagram, Facebook Ads or LinkedIn Jobs scrapers and add an AI column to every row.
  • Cost under control. Estimate-only runs, a per-run cost cap (maxCostUsd, default $2), token caps and a per-item part limit.
  • Honest output. Long content is never cut silently, images are the source's own (up to 3), and a confidence value is shown only when the model gave one with a basis, labelled "model-reported". The Actor computes no scores.

What OpenAI brings to this Actor

These are the OpenAI API features the code actually uses (see src/provider.py, src/analyzer.py, src/prompts.py):

OpenAI featureWhat it means for you
Responses API with Structured Outputs (json_schema, strict: true)The answer must match the schema. Your outputSchema is checked first: root must be an object, every object gets additionalProperties: false, fields not listed as required become nullable; allOf, not, if/then/else, patternProperties… are rejected with a clear message.
Vision (input_image)imageUrls, and optionally the images of web pages and dataset items (analyzePageImages).
Native file input (input_file)PDFs are sent with their text and page images; Office files are sent as text.
Reasoning effort per level (reasoning.effort)low / medium / high by level, or force it with reasoningEffort. Reasoning tokens are billed as output.
Image detail (imageDetail)low = at most ~308 tokens per image or PDF page; high = at most ~3,000.
Explicit prompt cachingThe shared instructions are cached only when that saves money.
Token counting (responses.input_tokens.count)Optional exact input counts in estimate-only runs (exactTokenCount).
Streaming, store: falseAnswers are streamed; requests ask OpenAI not to store the response.

Accepted sources

SourceInput fieldDetails
Web pagesstartUrlsOne plain HTTP GET per page with an honest User-Agent; no browser, no JavaScript, no anti-bot bypass; robots.txt Disallow honoured (skipped pages go to FAILED_INPUTS). A URL that serves a PDF, Word file or image is analysed as a document or image.
Raw textstextsEmails, reviews, transcripts. Through the API each entry can be a long string with line breaks.
DocumentsdocumentUrlsPDF, DOCX, PPTX, XLSX, TXT, MD, CSV, JSON, up to 50 MB each. Old .doc files are not supported.
ImagesimageUrlsPNG, JPEG, WEBP, GIF, analysed with GPT vision.
Apify datasetsdatasetIds + datasetFieldsEach item is analysed. Dot paths such as metadata.description. Empty datasetFields = the usual text fields (title, text, markdown, description, review…). Your account must be able to read the dataset.

Use cases

  • Product data teams: turn Amazon titles, feature bullets and descriptions into a strict specs schema (brand, capacity, material, warranty…).
  • Back office: extract invoice numbers, totals and currencies from PDFs, spreadsheets (XLSX) or slide decks (PPTX).
  • Social listening: classify Instagram captions or Facebook ads by topic, tone or offer type.
  • Content audits: summarize every page of a Website Content Crawler run with key points and entities.
  • Visual checks: read receipts, screenshots and product photos with GPT vision.
  • Vendor comparison: compare adds one comparison row over all analysed items.

How it works

How it works: scraper datasets, URLs, documents and texts go through the Actor and come out as JSON rows and a report

  1. Fetch and check every source (public addresses only, at most 5 redirects, size caps, robots.txt).
  2. Estimate and guard: input tokens are estimated and checked against maxCostUsd / maxTotalTokens before each call.
  3. Analyse with the GPT model of your level at its reasoning effort; long content is split into parts, condensed, then analysed.
  4. Validate the strict JSON answer and write one row per item, then REPORT, RUN_SUMMARY and FAILED_INPUTS.

Tasks

taskWhat you get
summarize (default)title, summary, key points, entities, important info
extractthe fields of your JSON Schema (outputSchema) in result
classifyyour labels (single, or several with multiLabel), each with a stated basis
analyzetopics, insights, tone
detect_key_infodates, amounts, contacts, deadlines, obligations
compareevery item, plus one comparison row over all analysed items (needs at least 2)
reportreport sections
customthe answer to your instructions

Analysis levels and models

From src/models.json (OpenAI list prices read 2026-11-09):

analysisLevelModelReasoningMax output tokensImage detailTypical web item*
quickgpt-6-lunalow6,000low≈ $0.0006
standard (default)gpt-6.1-solmedium16,000high≈ $0.019
deepgpt-6-astrahigh32,000high≈ $0.19

*OpenAI list price for 1,500 tokens of text in and about 500 visible tokens out; an estimate, not a measured run. Reasoning tokens are billed as output.

Force a model with model:

modelInput / cached input / output per 1M tokensAbove 272K input tokens
gpt-6-luna$0.10 / $0.01 / $0.50$0.20 / $0.02 / $0.75
gpt-6.1-terra$1.00 / $0.05 / $5.00$2.00 / $0.10 / $7.50
gpt-6.1-sol$2.00 / $0.10 / $10.00$4.00 / $0.20 / $15.00
gpt-6-astra$10.00 / $1.00 / $50.00$20.00 / $2.00 / $75.00

All four have a 1,050,000-token context window and up to 128,000 output tokens. Above 272K input tokens the whole request is priced at the long-context rate (the conservative reading) and the row says longContext: true.

Pricing

  • Your own OpenAI API key (available now): $0.0015 / $0.003 / $0.006 per analysed item for quick / standard / deep (one item-analyzed event × 1, 2 or 4), plus Apify's start event of $0.00005 per run. OpenAI bills you directly for the AI tokens.
  • Failed items, refusals and estimates are never charged.
  • Managed key (no API key needed): coming soon. It is not open yet: a run with apiKeyMode: "managed" stops before any AI call with a clear message, and nothing is charged.

API key setup

  1. Create a key at platform.openai.com/api-keys.
  2. Paste it into the OpenAI API key field (apiKey). It is an Apify secret input: stored encrypted, never logged, never stored in the output.
  3. Leave API key mode (apiKeyMode) on own_key.

Without a key the run only estimates tokens and costs. Only the apiKey field is encrypted: if you send a key under another field name (for example openaiApiKey), the Actor ignores it and warns you without printing it. That value still sits in plain text in the run's input, so remove it and rotate the key.

Input

Every field of the input schema (.actor/input_schema.json). No field is required, but a run needs at least one source.

FieldTypeDefaultDescription
startUrlsarray—Web pages to analyse (plain HTTP, robots.txt honoured).
textsarray—Raw texts, one item per entry.
documentUrlsarray—PDF, DOCX, PPTX, XLSX, TXT, MD, CSV or JSON links (50 MB max each).
imageUrlsarray—PNG, JPEG, WEBP or GIF images (GPT vision).
datasetIdsarray—IDs of datasets produced by other Actors.
datasetFieldsarray—Fields of each dataset item to send (dot paths). Empty = the usual text fields.
taskstring"summarize"summarize, extract, classify, analyze, detect_key_info, compare, report, custom.
instructionsstring—Extra instructions in plain words; needed in practice for custom.
outputSchemaobject—JSON Schema for extract, checked against the Structured Outputs rules.
labelsarray—Allowed labels for classify.
multiLabelbooleanfalseclassify: allow more than one label per item.
languagestring—Language of the answers. Empty = the language of each source.
analysisLevelstring"standard"quick (GPT-6 Luna), standard (GPT-6.1 Sol), deep (GPT-6 Astra).
modelstring—Optional override: gpt-6-luna, gpt-6.1-terra, gpt-6.1-sol, gpt-6-astra.
reasoningEffortstring—Optional override: none, low, medium, high, xhigh, max (unsupported values fall back to the level default).
imageDetailstring—low or high. Empty = level default (quick: low, others: high).
analyzePageImagesbooleanfalseAlso send the (up to 3) images of web pages and dataset items to GPT vision.
maxItemsinteger50Maximum number of items analysed in this run (1 to 10,000).
maxInputTokensPerIteminteger100000Longer content is split into parts (2,000 to 922,000). Above 272,000 OpenAI charges long-context prices.
maxOutputTokensPerIteminteger0Includes reasoning tokens. 0 = level default (6,000 / 16,000 / 32,000).
maxChunksPerIteminteger10Parts beyond this number are not analysed and the row says truncated: true (1 to 100).
maxTotalTokensinteger0The run stops before a call that could exceed this total. 0 = no limit.
maxCostUsdnumber2The run stops before a call whose worst case could push the estimated OpenAI cost above this (USD). 0 = no limit.
estimateOnlybooleanfalseDownload the sources and estimate input tokens and the maximum cost per item, without calling the model.
exactTokenCountbooleanfalseWith estimateOnly and your own key: ask OpenAI's token-counting endpoint for exact input tokens.
concurrencyinteger3Items analysed at the same time (1 to 10).
itemTimeoutSecsinteger00 = automatic: one answer of the full output budget at 30 tokens/s + 60 s (at least 300 s).
apiKeyModestring"own_key"own_key (available) or managed (coming soon, not open yet).
apiKeystring (secret)—Your OpenAI API key.

Output

One dataset row per item (views: Overview, Structured results, Tokens and cost). Fields from .actor/dataset_schema.json:

FieldTypeDescription
sourcestringURL, text #n, dataset:<id>#<index> or the compared sources.
sourceTypestringweb, text, document, image, dataset or comparison.
taskstringTask run on the item.
modelstringOpenAI model that answered.
analysisLevelstringquick, standard or deep.
reasoningEffortstringReasoning effort sent to the model (null = model default).
titlestringTitle of the source or the one the model found.
summarystringSummary written by the model.
keyPointsarrayKey points.
resultobjectTask result: your extracted fields, labels, topics, key facts, report sections, comparison table…
labelsarrayclassify only: labels given WITH a stated basis; confidence is model-reported (null when the model gave none).
entitiesarrayPeople, organisations, places, products named in the source.
importantInfoarrayRisks, deadlines, amounts, obligations or warnings.
languagestringLanguage of the answer.
imagesarrayUp to 3 real image URLs from the source (never generated).
tokensobject{input, cachedInput, cacheWrite, output, reasoning} as reported by OpenAI.
costUsdnumberEstimated OpenAI cost at list prices; 0 for estimate-only rows.
billedEventsobjectApify pay-per-event events charged for this row.
durationMsintegerTime spent on the item.
truncatedbooleanTrue when part of a very long source was not analysed.
truncationReasonstringWhy and how much was left out.
chunksintegerParts the source was split into (1 = sent whole).
longContextbooleanMore than 272K input tokens: long-context prices applied.
estimateOnlybooleanRow from an estimate-only run (no AI call).
estimatedInputTokensintegerLocal estimate of the input tokens of the direct request.
estimatedMaxCostUsdnumberEstimate-only: worst-case OpenAI cost of the item.
warningsarrayNotes about this item ({code, message}).
errorobject{code, message} when the item gave no analysis (also listed in FAILED_INPUTS).
datasetIdstringDataset the item came from.
datasetIndexintegerPosition of the item in that dataset.

Key-value store: REPORT (visual page), RUN_SUMMARY, FAILED_INPUTS (every input that gave no analysis, with a code).

REPORT page cards, rendered from a local demo run with canned answers

Illustration — demo data, not a real AI answer. Screenshot of the real REPORT page layout, rendered from a local mock run (MOCK_PROVIDER=1): every text marked [MOCK] is canned, no model was called.

REPORT page statistics, rendered from a local demo run

Illustration — demo data, not a real AI answer. Run statistics of the same local mock run.

Examples

Summarize a page, cheapest level:

{
"startUrls": [{ "url": "https://docs.apify.com/platform/actors" }],
"task": "summarize",
"analysisLevel": "quick",
"apiKey": "sk-..."
}

Extract invoice fields from PDFs, spreadsheets or slides (strict schema):

{
"documentUrls": ["https://example.com/invoice.pdf", "https://example.com/invoices-q3.xlsx"],
"task": "extract",
"outputSchema": {
"type": "object",
"properties": {
"invoiceNumber": { "type": "string" },
"total": { "type": "number" },
"currency": { "type": "string" }
},
"required": ["invoiceNumber"]
},
"apiKey": "sk-..."
}

Read receipts with vision, low detail to save tokens:

{
"imageUrls": ["https://example.com/receipt-0912.jpg"],
"task": "detect_key_info",
"imageDetail": "low",
"apiKey": "sk-..."
}

Estimate a big job with OpenAI's exact token count:

{
"documentUrls": ["https://example.com/annual-report.pdf"],
"task": "report",
"analysisLevel": "deep",
"estimateOnly": true,
"exactTokenCount": true,
"apiKey": "sk-..."
}

Integrations: chain it after a scraper

Every Apify Actor writes its results to a dataset. Pass that dataset's ID in datasetIds and choose the fields with datasetFields. The field names below are the real output fields of each scraper.

In the Apify Console (no code): open the scraper (or its task) → Integrations → Connect Actor or task → choose this Actor and use an input such as {"datasetIds": ["{{resource.defaultDatasetId}}"], ...}. Each finished scraper run then starts an analysis of its own results.

Website Content Crawler (apify/website-content-crawler) — summarize a crawl:

{
"datasetIds": ["<datasetId of your crawler run>"],
"datasetFields": ["url", "metadata.title", "text"],
"task": "summarize",
"analysisLevel": "quick",
"maxItems": 500,
"apiKey": "sk-..."
}

Amazon Product Scraper (badr_xba/amazon-product-scraper) — strict specs table:

{
"datasetIds": ["<datasetId of your amazon-product-scraper run>"],
"datasetFields": ["title", "brand", "features", "description", "attributes"],
"task": "extract",
"outputSchema": {
"type": "object",
"properties": {
"productType": { "type": "string" },
"material": { "type": ["string", "null"] },
"capacityOrSize": { "type": ["string", "null"] },
"warrantyMonths": { "type": ["integer", "null"] }
},
"required": ["productType", "material", "capacityOrSize", "warrantyMonths"]
},
"analysisLevel": "quick",
"apiKey": "sk-..."
}

Instagram Scraper (badr_xba/instagram-scraper) — classify post captions, with the post image:

{
"datasetIds": ["<datasetId of your instagram-scraper run>"],
"datasetFields": ["ownerUsername", "caption", "hashtags", "likesCount"],
"task": "classify",
"labels": ["product launch", "promotion", "behind the scenes", "user content", "other"],
"analyzePageImages": true,
"imageDetail": "low",
"analysisLevel": "quick",
"apiKey": "sk-..."
}

Facebook Ads Library Scraper (badr_xba/facebook-ads-library-scraper) — analyse competitors' ad messaging:

{
"datasetIds": ["<datasetId of your facebook-ads-library-scraper run>"],
"datasetFields": ["pageName", "snapshot.title", "snapshot.body.text", "snapshot.ctaText", "daysRunning"],
"task": "analyze",
"instructions": "Name the offer, the promise and the target audience of each ad.",
"apiKey": "sk-..."
}

LinkedIn Jobs Scraper (badr_xba/linkedin-jobs-scraper) — key facts from job posts:

{
"datasetIds": ["<datasetId of your linkedin-jobs-scraper run>"],
"datasetFields": ["title", "companyName", "location", "employmentType", "descriptionText"],
"task": "detect_key_info",
"analysisLevel": "quick",
"apiKey": "sk-..."
}

From code (apify-client for JavaScript): run a scraper, then analyse its dataset.

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const scrape = await client.actor('badr_xba/amazon-product-scraper').call({
categoryOrProductUrls: [{ url: 'https://www.amazon.com/s?k=keyboard' }], maxItemsPerStartUrl: 10,
});
const analysis = await client.actor('badr_xba/ai-document-web-analyzer-openai').call({
datasetIds: [scrape.defaultDatasetId],
datasetFields: ['title', 'brand', 'features', 'description'],
task: 'summarize', analysisLevel: 'quick', apiKey: process.env.OPENAI_API_KEY,
});
const { items } = await client.dataset(analysis.defaultDatasetId).listItems();

Cost control

  • estimateOnly: downloads the sources and estimates input tokens and the maximum cost per item without calling the model. Add exactTokenCount for OpenAI's own count.
  • maxCostUsd (default $2) and maxTotalTokens: the run stops before a call whose worst case could go over.
  • maxInputTokensPerItem + maxChunksPerItem: above the limit the text is split into parts, each part is condensed, then the task runs on the notes. If parts still have to be left out, the row says truncated: true and gives the reason.
  • imageDetail: "low": at most ~308 tokens per image or PDF page instead of ~3,000.
  • quick level: GPT-6 Luna is about 1/20 of GPT-6.1 Sol's token price.
  • itemTimeoutSecs: 0 = automatic, long enough for the full output budget (deep level ≈ 19 min), because OpenAI still bills an answer cut by a timeout.

Limits and errors

  • No JavaScript rendering: pages that need a browser come back as "no readable text". Crawl them first with Website Content Crawler, then pass its dataset.
  • Old .doc files are not supported. Scanned PDFs are read from their page images only.
  • With your own key, token estimates before the call are local approximations (about 4 characters per token). Costs in the rows are estimates at list prices; your OpenAI invoice is the reference.
  • Failed inputs are listed in FAILED_INPUTS with a code; the row's error is {code, message}. Warnings use codes such as truncated, schemaMismatch, longContext, noTextLayer, compareSkipped (fewer than two items analysed) and keyIgnored.
  • Prices and model capabilities were taken from OpenAI's official pages on 2026-11-09 (src/models.json).

Troubleshooting

Status message / FAILED_INPUTS codeCauseFix
"Stopped: OpenAI rejected the API key — nothing was analysed or billed." / invalidApiKeyThe key in "OpenAI API key" is wrong, revoked, expired or mistyped. The run stops after the first refused request (no other item is sent), lists every item in FAILED_INPUTS, sets stoppedReason in RUN_SUMMARY and ends FAILED so that schedules and integrations notice it. Only Apify's run start event is charged.Create or copy a key at https://platform.openai.com/api-keys and paste it, without spaces or quotes, in the "OpenAI API key" field (apiKey).
Same message / apiKeyNoAccessThe key is known but has no access (HTTP 403 / permission denied).Check at https://platform.openai.com/api-keys that the key's project may use the chosen model and your region is supported.
rateLimited, serverError (or similar)Rate limit (429) or provider outage (5xx): retried with back-off, never treated as a key error; the other items continue.Run again later or lower concurrency.
No key at allNot an error: the run is an estimate-only demo (SUCCEEDED, nothing billed).Add your key to analyse.

Privacy

Your key is a secret input (encrypted by Apify). It is never logged or stored. Anything that looks like a key is removed from error messages and from crash tracebacks. Logs contain ids and lengths only, never your content. Requests are sent with store: false. Content goes to OpenAI under your API account terms. Every fetched host is resolved once and the connection goes to that exact validated IP (private, loopback, link-local and cloud-metadata addresses are refused, also after redirects), with the real host name kept for the Host header and TLS certificate checks, so DNS rebinding cannot reach an internal address.

FAQ

Do I need an OpenAI account? Yes, for now: own-key mode is the only mode available. The managed key is coming soon.

Are the answers in the screenshots real? No. The report screenshots come from a local demo run with canned answers, to show the page layout.

Why did my schema get rejected? Strict Structured Outputs do not accept some JSON Schema keywords (allOf, not, if/then/else, patternProperties…). The run stops before any AI call and says which keyword to remove.

Feedback and reviews

Something missing or wrong? Please open an issue on the Actor's Issues tab. We read them all. If the Actor saved you time, a short review on the Store helps other users find it.