Developers/Parse HTML
parseBY OPTIVIEW
API reference
Parse HTML
Send HTML your application already has and receive readable Markdown. Parse does not fetch a webpage or run JavaScript.
POST/v1/parse
Request
Requires a service key with parse scope and an Idempotency-Key. The endpoint selects the product; do not include a product field.
| Field | Type | Required | Description |
|---|---|---|---|
html |
string | Yes | Complete HTML, up to 2,000,000 UTF-8 bytes. |
url |
string | Yes | Absolute HTTPS source identity for resolving links. Up to 2,048 characters; no credentials, custom port or fragment. |
Save this JSON as parse-request.json:
JSONCopy
{
"html": "<!doctype html><html lang=\"en\"><head><title>Acme support</title></head><body><main><h1>Acme support</h1><p>Our support team helps customers set up their workspace, connect applications and manage account access. Contact support@example.com for help with your integration.</p></main></body></html>",
"url": "https://example.com/support"
}
curlCopy
curl --request POST 'https://api.optiview.ai/v1/parse' \
--header "Authorization: Bearer $OPTIVIEW_API_KEY" \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: parse-example-001' \
--data @parse-request.json
Use the page’s original HTML where possible. Minimal, ambiguous, partial or unsupported pages may fail source review. The example is illustrative; exact extraction depends on the source.
Response and charge
The API returns a job record, not Markdown alone. A direct request returns HTTP 200 for a completed job and HTTP 202 for queued or running work. A failed job can also return HTTP 200, so always check status before reading result.
Only status: succeeded with a result is usable output. HTTP success alone does not mean processing succeeded.
For complete state and result schemas, see Jobs and results. Use the original service application to read its job.
A successful Parse job consumes 1 credit. Failed processing consumes none. Parse returns a source record with basis: supplied_html: the URL identifies the input; it does not establish that this HTML came from that website.
Selected successful result fieldsCopy
{
"status": "succeeded",
"credits_charged": 1,
"result": {
"success": true,
"url": "https://example.com/support",
"title": "Acme support",
"content_type": "text/markdown",
"markdown": "# Acme support\n\nOur support team helps customers…",
"source": {
"basis": "supplied_html",
"origin_freshness_verified": false
},
"narrative_graph": {
"status": "not_requested"
}
}
}
This example shows selected fields, not a complete response. See the result field reference for hashes, observed time and extraction details.
Source requirements
Maximum output is 512,000 UTF-8 bytes. Only submit HTML you are authorized to process; do not include credentials or confidential information. Supply an absolute HTTPS source URL of up to 2,048 characters. It may include www and query parameters, but not embedded credentials, a custom port or a fragment. Parse validates the URL without fetching it, so the URL does not verify where the supplied HTML came from.
See processing errors for invalid_html, invalid_url, source_review_required and output_too_large. Processing errors appear on a terminal job’s error_code, not necessarily as an HTTP error.
Additional source context
Your website was built for people. Optiview makes it ready for AI, too.
Get started
Overview · Quickstart · Authentication
API reference
Retrieve a webpage · Jobs and results · Usage and credits · Errors and retries · Limits and retention
Integrations
JavaScript · Python · MCP for agents · OpenAPI specification · Changelog
Try Optiview
See my site with Optiview · Run your free AI Audit
Explore
Publish · Parse · Retrieve · Pricing
Learn
Guides · Developer docs · Research & thinking · Experiments & methods · AI Audit · AI agent directory · FAQ
Company
About Optiview · Agencies · Contact · Privacy · Billing terms
Additional page links
- Developer docs API v1 — Documentation sidebar
- Developer console — Documentation sidebar
- Developer terms — Documentation sidebar
- Contact support — Documentation sidebar
Published brand narrative
Site-wide brand information
Who we are
Optiview — Parse, Retrieve and Publish for AI
Optiview helps businesses and developers make website information easier for AI to use. Parse converts supplied HTML into clean Markdown and source metadata. Retrieve fetches an eligible public HTTPS webpage and prepares its content. Publish helps a verified business prepare its own website content and make approved Narrative Graph context available through a supported connection.
Parse and Retrieve use application keys and a prepaid developer wallet. Publish has separate website setup, ownership checks and a subscription. Optiview does not control whether an outside AI service discovers, uses or cites the resulting content.
Applies to: Optiview
Why we matter
A clearer source, from website content to business context
Webpages mix useful information with navigation, layout and application code. Businesses may also have important qualifications, answers and context that are not clearly published.
Optiview gives developers a way to prepare source content for their applications, and gives businesses a way to publish the context their teams approve. Your application chooses how to use Parse and Retrieve results. Your business controls what it publishes through Publish.
Clearer publishing makes information available; it does not determine an AI system’s answer. Each outside service chooses its own retrieval, recommendations and citations.
What we offer
Three products, with separate jobs and clear pricing
- Optiview Parse: Supply complete HTML and a source URL. Receive clean Markdown, source and output hashes, parser details and processing warnings. Parse does not fetch the URL or execute JavaScript. A successful page uses 1 credit.
- Optiview Retrieve: Supply one eligible public HTTPS URL. Optiview checks supported access and publisher policies, fetches anonymous static HTML and parses it. It does not search the web, execute JavaScript, bypass a login or access private networks. A successful page uses 5 credits total, including parsing.
- Developer credits: USD $20 buys 20,000 credits shared by Parse and Retrieve. There is no developer subscription, automatic recharge or scheduled credit expiration. Failed jobs consume no credits. Applicable taxes and the total appear at checkout. Source size, quotas and retention limits apply.
- Optiview Publish: USD $99 per website per month plus applicable tax. Connect a verified website, review the prepared source and optionally maintain approved Narrative Graph context in Identity, Story, Offerings, Trust, Knowledge and Actions. Choose site-wide or exact-page scope. Saving drafts does not publish them. Eligible AI tools can receive prepared Markdown or HTML through supported delivery, while ordinary visitors keep the normal website.
Developer credits do not purchase Publish subscriptions. Parse and Retrieve do not add a customer’s private Narrative Graph to arbitrary third-party pages. See https://optiview.ai/pricing/ and https://optiview.ai/developers/ for the current offer and limits.
Why trust us
Inspect the output and understand what the evidence establishes
Developers can inspect the prepared Markdown, job status, source metadata, processing warnings and credit ledger. Retrieve records the public source response it observed; Parse identifies supplied HTML rather than claiming to verify the current origin.
Publish administrators can review parser output, the combined published-output preview, source checks and publication history. A preview is separate from a recorded live delivery. Saved edits remain separate from the active publication until explicitly published.
Our experiment pages contain selected first-party AI conversations and source comparisons. Delivery records establish what was served, not downstream ingestion, recommendations, citations or revenue. Observed language matches do not establish causation or a consistent visibility improvement. Explore the evidence and limitations at https://optiview.ai/proof/.
Helpful knowledge
Common questions about the three products
Which product should I use? Use Parse when you already have HTML. Use Retrieve when you need Optiview to fetch one eligible public page first. Use Publish when your business wants to prepare its verified website and publish approved context.
Do Parse and Retrieve require website ownership or DNS changes? No website connection is needed for these developer products. You remain responsible for source rights and permitted downstream use. Public availability does not grant a reuse license.
How do developer accounts and keys work? Create a developer workspace and save the personal sign-in key and offline recovery code. Create scoped service keys for server-side applications. Email is an unverified contact identifier, not account-ownership proof or an email-only recovery method. Keep all credentials private.
Can my agent use Optiview? The authenticated developer API returns prepared content for your application or model. A downloadable JavaScript client and local MCP adapter are available. Your host must authorize sources and any credit expenditure. Compatibility does not establish adoption or a partnership with an AI provider.
Does the API include my private Narrative Graph? Parse and Retrieve are source-only. Verified website publishing and approved publisher context belong to the separate Publish workflow.
Does Publish replace our website or CMS? No. Your website stays in its existing system. Your web team establishes and tests a supported connection. Your team reviews and explicitly publishes any Narrative Graph additions. Ordinary visitors retain the normal website experience.
Does every AI tool get the prepared version? No. Delivery depends on the website connection, source eligibility and the request. Some tools explicitly request Markdown; supported AI requests may also receive prepared Markdown or HTML through eligible delivery paths. Traditional search crawlers retain the original website response. A claimed tool name does not prove the requester’s identity.
Does the demo publish or save to our workspace? No. The public demo is a separate preview. Its AI-generated examples require review and do not transfer automatically into an approved publication.
Will Optiview guarantee citations or recommendations? No. Optiview prepares and publishes sources. Outside AI services choose what to retrieve, use and cite.
What to do next
Choose your starting point
- Compare Parse, Retrieve and Publish to choose the right workflow.
- Create a developer workspace for self-service Parse and Retrieve, then add credits and create an application key.
- Read the API quickstart and agent-tool setup for request examples, supported sources, errors, quotas and downloads.
- Review pricing and terms for prepaid credits and the separate Publish plan.
- Preview your website to inspect prepared content and explore unapproved narrative examples without connecting or publishing.
- Plan Publish setup with your web team. Publishing requires ownership checks, review and a supported connection; contact hello@optiview.ai for assisted setup.
Already using Publish? Review your Narrative Graph, publish approved changes explicitly, inspect the combined source in Markdown and check recorded delivery in Activity. Keep your existing visibility tools to study downstream AI answers.