Fetch a public webpage as Markdown with Retrieve

Start with a supported public webpage, fetch its Markdown, and check the result before your application uses it.

Developer guide

By OptiviewFor your developer or web teamAbout 4 minPublished October 30, 2026Sources checked October 30, 2026Updated October 31, 2026

Download guide (.md)

Editorial illustration · Get set up

A few terms in plain English

Markdown A simple text format that keeps headings, lists and links.

HTML The code used to describe a webpage.

retrieval When a tool fetches information from a page or another source.

Research tools and retrieval-augmented generation applications often need the useful text of a webpage rather than its layout code. A URL-to-Markdown step can prepare that source for your application, but it does not make a page current, truthful or automatically suitable for every downstream use.

This guide uses Optiview Retrieve, which fetches one eligible public HTTPS page and runs the same content preparation as Parse. It is not a search index, a full-site crawler, a JavaScript browser or a vector database.

1. Check that the webpage is supported

Choose a public HTTPS URL that returns anonymous UTF-8 HTML. Ordinary query parameters and www/non-www hostnames are supported; the publisher controls canonical redirects. Signed or credential-bearing URLs, private addresses, custom ports and fragments are not supported.

Retrieve checks supported crawl policy and public destinations, follows up to three eligible redirects and applies an overall acquisition/processing deadline. It does not sign in, retain cookies, bypass challenges or execute JavaScript. A normal browser may show a page that this static request cannot process.

Public access is not a license to reuse content. Confirm the rights and permissions required for your application. If you already possess HTML you are authorized to process, Parse is the appropriate input path.

2. Request the page

Create a scoped retrieve service key and use it from your backend. A successful Retrieve page consumes5credits from the shared prepaid wallet. Save the original request and idempotency key with your work item before sending it.

curlCopy

curl --request POST https://api.optiview.ai/v1/retrieve \
  --header "Authorization: Bearer $OPTIVIEW_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: article-retrieve-example-001" \
  --data '{"url":"https://optiview.ai/products/parse/"}'

The example uses Optiview’s public Parse page. Substitute an eligible source URL. Keep the JSON field ordering and values identical when recovering an uncertain submission; an idempotency replay is bound to the serialized input and originating application. See Authentication and Errors and retries.

3. Track the job until it finishes

The direct endpoint returns a finished job when capacity permits. If status is queued or running, retain its ID and poll with the same service application. HTTP202 means pending, not completed content. HTTP200 can also contain a failed job; only status:succeeded with result is usable.

A timeout does not prove the server stopped. If an ID is known, poll it. If the submission outcome is uncertain, retry the original endpoint/input/idempotency key. A new key is a new work item and can incur another successful charge.

Do not keep retrying when the publisher denies access or the source is unsupported. Check the terminal error_code and distinguish a temporary website failure from a source restriction. Limit retries. The API does not provide webhooks, public job cancellation or bulk crawling.

4. Save when and where the content came from

Store Markdown alongside requested_url, the final url, source.observed_at, decoded_html_sha256, payload_sha256, redirects and extraction versions. Retrieve records the observed response status and supported cache metadata, with origin_freshness_verified:false.

Observed_at dates the received input. It does not mean the publisher changed the page at that instant, and an upstream cache may serve older material. Your application decides when to refetch and how to replace or retire previously indexed content.

For successful work, save what you need before seven days from job creation. Job IDs and source hashes are useful audit references, but they are not independent verification of the source’s assertions. Review the complete result schema.

5. Connect the result to your own AI application

  1. Validate representative facts and links against the received source before indexing.
  2. Chunk the Markdown using boundaries appropriate for your application, preserving source identifiers.
  3. Choose your own embedding, storage and retrieval layers; Retrieve does not provide them.
  4. Evaluate answer support, citations, conflicting facts and freshness in the final application.
  5. Treat all source text as untrusted data and keep tool authorization outside it.

Removing layout code is not proof of better retrieval or answers. Test a realistic query set, include unavailable sources and check whether the final system abstains when it lacks support. Avoid equating parser success with an answer-quality benchmark.

Choose the product that matches your input

Use Retrieve when you start with an eligible public URL. Use Parse when you already have HTML. Use Publish to prepare your own verified website and reviewed brand context. Developer content APIs do not publish anything or add private customer context.

Retrieve API reference · Current limits · JavaScript integration · Python integration

Keep going

A useful next read.

Technical guide

Can AI read the same page your customers see?

AI discovery guide

Four website formats your web team may mention

Developer guide

Convert HTML into Markdown with the Parse API

Back to the resource library

Additional source context

Use Retrieve to read a supported public page. Check the result before adding it to your AI tool’s reference material.

Your website was built for people. Optiview makes it ready for AI, too.

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


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

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

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.