ScraperFlyAI-ready Web Data API

developer api

Webpage Metadata API for public page inspection

ScraperFly helps teams capture public page context before storing, indexing, summarizing, QAing, or monitoring a URL: final URL, status, content type, page metadata, headings, links, readable content, Markdown, and visual proof when needed.

Page context first

Inspect metadata before a URL enters your pipeline

ScraperFly helps teams capture the practical context around a public page before that URL becomes part of search, monitoring, AI ingestion, QA, enrichment, or reporting. Instead of treating every page as a crawl job, start with one real response and inspect what the target actually returns.

The response can include final URL, status, content type, response size, metadata, headings, links, readable text, Markdown, and visual proof when needed. That gives developers enough evidence to decide whether the page is ready for downstream processing or whether rendering, headers, sessions, country targeting, or stronger delivery will improve the result.

metadataheadingslinksJSON context
Developers reviewing webpage metadata, headings, links, and response context from a public page

What is a webpage metadata API?

A webpage metadata API fetches a public URL and returns page context that helps an application understand what came back. That context may include the page title, meta description, canonical URL, robots directives, Open Graph tags, Twitter card tags, headings, links, final URL, HTTP status, content type, response size, clean text, Markdown, screenshots, or PDFs depending on the request profile.

This is different from a full crawler or a finished SEO audit suite. The metadata API gives your system reliable evidence from the requested page. Your product can then decide what to store, index, compare, classify, summarize, enrich, or send to another workflow. That boundary matters because it keeps the page useful without promising link graph analytics, broken-link monitoring, rank tracking, or target-specific field extraction that belongs in a separate layer.

Practical takeaway: use webpage metadata capture when your product needs trustworthy page context before it makes a storage, parsing, monitoring, or AI decision.

Which metadata should teams capture from a public page?

The right metadata depends on the workflow. A search index may care about title, description, headings, canonical URL, and readable body context. A QA workflow may need final URL, status, response size, screenshot, and PDF proof. An AI pipeline may need clean text or Markdown with enough source metadata to explain where the answer came from. A content inventory may need links, headings, language, publish signals, and page relationships.

ScraperFly is strongest when teams use metadata as a decision layer. Capture the page response, inspect the fields that matter, and keep the request light unless the target proves it needs more help. If the source HTML already contains the page title, headings, metadata, and useful links, a simple request is usually enough. If frontend JavaScript changes the useful context, rendering can be added for that page type.

Metadata area Examples Best suited to Request decision
Response context Final URL, status, content type, response size Logging, QA, debugging, storage decisions Capture on every representative sample.
HTML head metadata Title, meta description, robots, canonical Search indexing, content inventory, page QA Start from source HTML, then compare rendering when fields are missing.
Social preview metadata Open Graph and Twitter card fields Preview QA, content review, enrichment Validate representative templates before scaling.
Page structure H1-H3 headings, sections, readable text, Markdown AI intake, content quality checks, summarization Choose Markdown or text when DOM details are not needed.
Page links Canonical, internal links, outbound links, hreflang Single-page context, discovery hints, localization checks Use as page evidence, not as a full crawl graph by itself.
Visual proof Screenshot or PDF capture Archive, review, compliance, human QA Add only when a visual record changes the workflow outcome.

When does metadata capture need rendering?

Metadata capture needs rendering when the source response does not contain the page context your workflow needs. Some public pages send a complete HTML head and meaningful headings immediately. Others send a thin application shell and let browser-side JavaScript update title tags, route content, dynamic headings, links, product modules, or readable body sections after the page loads.

The practical move is comparison, not assumption. Fetch source HTML first. If metadata, headings, and useful links are present, keep the request light. If the page looks empty, generic, or incomplete, compare a rendered response. Add waits only when late-loading content changes the output. Use sessions, headers, country targeting, or stronger routing only when those controls change the response evidence.

For pages where JavaScript is the deciding factor, pair this workflow with the JavaScript rendering API. For pages where link extraction is the main job, use the narrower webpage link parser API guide. Metadata capture sits between those needs: it gives enough page context to choose the next step intelligently.

How is this different from content parsing?

Content parsing focuses on the substance that downstream users or systems will consume: clean text, Markdown, main content, article body, summaries, or structured output. Metadata capture focuses on the surrounding evidence that tells a system what the page is, what happened during delivery, how the page identifies itself, and whether the response is trustworthy enough to process further.

Both are useful, but they answer different questions. A content parser asks, "What should we read or extract from this page?" A metadata workflow asks, "What did this URL return, how should we interpret it, and is it worth sending to the next stage?" ScraperFly can support both response shapes, so teams can start with page context and then move into text, Markdown, JSON metadata, screenshots, PDFs, or target-specific parsing when the workflow requires it.

Need Use metadata when Use content parsing when
Search index preparation You need title, canonical, headings, status, and source context. You need a clean body or Markdown document for indexing.
AI ingestion You need provenance, final URL, content type, and page outline. You need readable content for embeddings, summaries, or answers.
Monitoring You need status, response size, redirect behavior, and visible evidence. You need to compare specific page fields over time.
Discovery You need links and page relationships from one response. You need extracted entities from the page itself.
Human review You need enough context to decide if the response is valid. You need a cleaned article, product record, or page summary.

How can teams keep metadata workflows practical?

Start with representative URLs and define the fields that matter before scaling. A metadata workflow becomes noisy when every possible field is collected without a downstream reason. It becomes fragile when teams assume the source HTML, rendered DOM, screenshot, and Markdown are interchangeable. Each output format has a job: response metadata explains delivery, HTML preserves structure, Markdown helps reading and AI intake, JSON keeps operational context inspectable, and visual files prove what the page looked like.

The cost-control path is straightforward. Keep simple pages on source HTML. Turn on rendering only when JavaScript changes the metadata or readable content. Use screenshots or PDFs when visual proof matters. Use country targeting, sessions, headers, and premium routing when they solve a demonstrated response problem. Then copy the proven request profile from the API Builder into the application instead of rebuilding request logic from scratch.

Practical takeaway: metadata capture is most useful when it helps your product make a better next decision, not when it collects fields just because they exist.

Where does ScraperFly fit in a metadata pipeline?

ScraperFly sits at the request and response layer. It fetches the public page, applies the controls your target needs, and returns the response shape your workflow can use. A metadata pipeline can then store response context, pass clean text or Markdown to AI systems, record screenshots for QA, compare page structure, or hand selected links to a separate discovery workflow.

This keeps ownership clear. ScraperFly helps with capture, rendering, routing, response formats, files, and request evidence. Your application owns crawl strategy, scoring, deduplication, enrichment rules, alerting, and business decisions. That separation makes the system easier to debug because every stage has a clean job.

Metadata workflow

Build a page-inspection request before the URL enters production

Choose the response shape that gives your team real page context: source HTML when metadata is already present, rendered output when JavaScript changes it, JSON context for logging, and visual files when proof matters.

PAGE CONTEXT
PAGE CONTEXT

Metadata, headings, and links

Inspect titles, descriptions, canonical signals, headings, and page links from the requested public response before storing or indexing it.

RESPONSE EVIDENCE
RESPONSE EVIDENCE

Status, final URL, and content type

Keep delivery context visible so your application knows whether the response is valid, redirected, empty, oversized, or worth a rendered comparison.

USABLE OUTPUT
USABLE OUTPUT

HTML, Markdown, JSON, screenshot, or PDF

Return the metadata workflow in the format your product can act on, from lightweight JSON context to visual evidence for review and archive workflows.

Metadata request parameters

url

The public page ScraperFly should inspect.

format

Choose HTML, text, Markdown, JSON context, screenshot, or PDF based on the workflow.

render

Use browser execution when source HTML misses useful metadata or headings.

country

Route through a regional location when metadata or content changes by market.

keep_headers

Preserve allowed request context such as language or accepted content type.

download

Return screenshot or PDF files when a visual record is needed.

cURL example

Generate Markdown with the same request shape you can move into production

curl "https://scraperfly.com/api/v1?url=https%3A%2F%2Fexample.com&format=markdown" \
  -H "apikey: YOUR_API_KEY"

Metadata requirements

Map the page signals that matter before collecting everything

A metadata workflow is strongest when every field has a downstream job. Decide whether the product needs response diagnostics, head metadata, headings, links, readable content, Markdown, or visual proof before scaling request volume.

Raw HTML response mapped to visible page data
01

Raw HTML availability

Check whether the fields you need are already present in the first HTML response.

Best first test for simple pages, articles, docs, listings, and product details.

Before and after JavaScript rendering comparison
02

JavaScript dependency

Compare raw HTML with the rendered DOM or screenshot before turning on browser rendering.

Use rendering when raw HTML is only a shell and scripts create the useful content.

Cookies, consent, session and access context for scraping
03

State & access context

Identify whether cookies, consent, login boundaries, pagination, or the same visitor state affect the response.

Use sessions and headers when continuity changes the data you receive.

Regional content variations across countries and routes
04

Geo/content variation

Test whether country, language, currency, inventory, SERP, ads, or route reputation changes the result.

Use geo or premium routing only when the target proves the response varies by route.

Questions to answer before scaling

Where is the target field?

Find whether the field exists in raw HTML, rendered DOM, an API call, structured data, a file, or a later interaction state.

What changes the response?

Sample a few URLs and compare status, final URL, content length, redirects, empty states, and visible result differences.

What context is required?

Mark any dependency on consent, locale, cookies, headers, authentication boundary, pagination, filters, or previous requests.

What does failure look like?

Define the signals for blocked, partial, stale, redirected, empty, timed-out, or region-mismatched responses before scaling.

Define the metadata contract

Fetch mode

Raw HTML availability decides whether the first request can stay simple or needs rendering, waits, screenshots, or extraction.

Request context

State requirements decide whether to add headers, cookies, sessions, consent handling, or a stable visitor profile.

Routing choice

Geo and reputation findings decide whether standard routing is enough or a country/premium route is justified.

Validation rules

Known failure states become checks for retries, escalation, QA review, and deciding when a lighter profile is still complete.

Practical comparison

Choose metadata capture that proves the page before heavier tooling

Many tools blur page metadata, crawling, rendering, and monitoring into one large promise. ScraperFly is easier to reason about: inspect the requested page response, keep simple metadata capture light, and add heavier controls only when the target proves they improve the evidence.

Start light

Capture page context before committing infrastructure

Test a real URL, inspect the response, and confirm the metadata your system needs before building crawlers, queues, dashboards, or enrichment logic around it.

Stay precise

Keep metadata separate from full crawl promises

Use returned links and headings as page evidence, then let your product decide whether to schedule crawling, scoring, alerts, or domain-wide analysis.

Scale wisely

Upgrade only the request controls that change the result

Rendering, waits, sessions, country routing, and visual files stay optional, so straightforward pages remain affordable while harder targets still have a clean path forward.

Where ScraperFly wins against typical alternatives

The point is not to claim every competitor is bad. The point is fit: ScraperFly is the stronger choice when you want an API-first workflow, visible request controls, flexible credits, and response formats that help you ship instead of babysitting infrastructure.

Decision pointScraperFly advantageTypical competitor tradeoff
Single page inspectionFetch the requested public URL and inspect response metadata, headings, links, and output shape before deciding the next step.Some platforms jump quickly from metadata language to crawler, monitoring, or enrichment promises without clarifying the response boundary.
Rendering decisionCompare source and rendered responses, then enable browser execution only when JavaScript changes useful metadata or content.Browser execution may be presented as the default path even when source HTML already contains the page context.
Output choiceUse HTML, text, Markdown, JSON context, screenshot, or PDF depending on what the downstream workflow can act on.Format lists are common, but the decision logic for choosing them is often thin.
Cost controlKeep metadata capture lightweight and reserve heavier request profiles for targets that prove they need them.Bundled crawler or monitoring assumptions can make early validation more expensive than necessary.

Cost control

Keep metadata capture aligned with the real response

Metadata workflows do not need to be expensive by default. Start with source HTML, inspect whether the fields are present, and add rendering, screenshots, PDFs, routing, sessions, or waits only when they change the outcome.

01

Source metadata in the first response

When title, canonical URL, headings, links, and useful content are already present, keep the request simple and fast.

02

Rendering for JavaScript-built context

Use browser execution when the metadata or readable content appears only after client-side code runs.

03

Screenshots and PDFs for human review

Generate files when QA, approval, compliance, or archive workflows need a visible record of the page.

04

Headers, country, sessions, and stronger delivery

Add request context only when it changes metadata, content, redirects, or access behavior for the target page.

What makes a request heavier

More infrastructure work

Browser rendering, routing choices, and longer waits mean the platform has to do more than return a simple response.

More target uncertainty

Redirects, empty states, rate limits, and challenge pages often require stronger delivery options or retries.

More state to preserve

Cookies, sessions, consent, and multi-page flows add moving parts that a plain stateless fetch does not have.

More evidence to return

Screenshots, PDFs, rendered output, and richer response artifacts are useful, but they are heavier than plain HTML.

How to keep request weight predictable

Sample before scale

Test a small URL set first and group targets by the lightest profile that returns complete data.

Do not render by default

Inspect raw HTML before turning on rendering. Many public pages already contain the data you need.

Escalate by evidence

Move up only when the response shows missing content, state dependency, geo variance, or routing problems.

Measure useful results

Optimize around valid records delivered, not raw request volume. A lighter profile is best only when it stays complete.

Metadata questions

Common questions about webpage metadata capture

Practical answers for teams deciding what page context to collect, when to render, how metadata differs from content parsing, and how to avoid turning page inspection into a heavy crawl job.

Metadata FAQ
SCOPE

Page context, not a crawler

Metadata capture starts with the requested public page response.

Does this crawl every link on a website?

No. It captures evidence from the requested public page. Returned links can feed a crawler or queue, but crawl scheduling and link graph analysis belong downstream.

Can this support SEO QA?

Yes. It can capture title, description, canonical URL, headings, robots hints, links, final URL, status, and visual proof for page-level QA workflows.

FIELDS

What to collect

Choose metadata based on the job your product needs to do next.

Which metadata fields matter most?

Common fields include title, meta description, canonical URL, robots hints, Open Graph tags, headings, links, final URL, status, content type, and response size.

Is metadata the same as content extraction?

No. Metadata explains the page response and its context. Content extraction focuses on readable body content, entities, fields, or records for downstream use.

RENDERING

When source HTML is incomplete

Browser rendering is useful only when it changes the captured evidence.

When should metadata capture use rendering?

Use rendering when source HTML misses useful metadata, headings, links, or readable content that appears after frontend JavaScript runs.

Should every metadata request render the page?

No. Start with source HTML and compare rendered output only when the response looks incomplete or the target is known to rely on JavaScript.

OUTPUT

Choosing usable response formats

The best output is the one the next system can use directly.

When should I use screenshots or PDFs?

Use visual files when QA, compliance, archive, approval, or human review needs proof of how the page appeared at capture time.

How can metadata capture stay affordable?

Keep source HTML as the default, add rendering or visual output only when needed, and reserve routing controls for targets where they change the response.