JSON-LD & OPENGRAPH · SCHEMA.ORG
JSON-LD & OpenGraph Structured Data Scraper API With Strict Validation
Target Query: json ld opengraph structured data scraper api · Category: Extraction Modality · Verified Rate: $0.015/hit ($0 on miss) · Updated: 2026-12-02
Direct Answer: Over 45% of commercial websites publish authoritative product prices, availability, organization metadata, reviews, and article timestamps inside `<script type="application/ld+json">` and OpenGraph `<meta property="og:*">` tags. Scrape-Anything parses multiple JSON-LD blocks (including `@graph` arrays), normalizes OpenGraph and Twitter meta tags, validates required fields against your JSON Schema, and bills $0 whenever a page omits required structured data.
Engineering Mechanics & Deterministic Guardrails
Parses multiple `<script type="application/ld+json">` blocks per page, including `@graph` arrays and nested `Offer`/`AggregateRating` objects.
Normalizes all `og:*` (`og:title`, `og:description`, `og:image`, `og:url`, `og:type`) and `twitter:*` metadata into clean key-value dicts.
Handles minor trailing-comma or HTML-entity quirks safely without crashing your ingestion pipeline.
Pairs directly with strict JSON Schema validation so missing `offers.price` or empty `json_ld` triggers `billed_micros = 0`.
Schema.org & Metadata Fields Extracted Automatically
Metadata Source HTML Selector / Tag Normalized Output Key Common Production Use Case
JSON-LD Blocks `script[type="application/ld+json"]` `data.json_ld` (array of parsed objects) E-commerce price/SKU, FAQPage, Organization
OpenGraph Tags `meta[property^="og:"]` `data.open_graph` (key-value map) Link previews, canonical media, content type
Twitter Cards `meta[name^="twitter:"]` `data.twitter` (key-value map) Social metadata & author handles
Document Head `<title>`, `meta[name="description"]`, `link[rel="canonical"]` `data.title`, `data.description`, `data.canonical` SEO/GEO indexing and dedup
Headings & Body `h1..h6`, semantic paragraphs, links `data.headings`, `data.links`, `markdown` RAG grounding & section extraction
Pure-Stream Multi-Format Latency vs Headless Browser Stacks (Relative Overhead)
Headless Chrome Pool + Residential Proxy
3,200-8,500 ms
LLM Markdown-to-JSON Two-Pass Pipeline
1,800-4,500 ms
Scrape-Anything PDF FlateDecode Stream
15-120 ms
Scrape-Anything Complex HTML Table Grid
10-90 ms
Scrape-Anything __NEXT_DATA__ / JSON-LD
8-60 ms
Scrape-Anything Binary .xlsx / CSV Gate
5-50 ms
SQLite WAL Verified Archive Cache Hit
< 5 ms
JSON-LD Product Offer Required Schema
{
"type": "object",
"required": [
"json_ld",
"open_graph"
],
"properties": {
"json_ld": {
"type": "array",
"minItems": 1
},
"open_graph": {
"type": "object",
"required": [
"og:title"
],
"properties": {
"og:title": {
"type": "string",
"minLength": 1
}
}
}
}
}
Any extracted payload violating required keys, types, bounds, or regex patterns returns schema_valid: false, exact validation_errors, and billed_micros: 0.
Executable REST, Remote /mcp & treg hub Snippets
curl -fsSL -X POST "https://scrape.fastmesh.dev/v1/extract" \
-H "Content-Type: application/json" \
-d '{
"url": "https://pypi.org/",
"format_hint": "js_embedded",
"json_schema": {
"type": "object",
"required": ["title"],
"properties": { "title": { "type": "string", "minLength": 1 } }
}
}'
curl -fsSL -X POST "https://scrape.fastmesh.dev/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"scrape_extract","arguments":{"url":"https://pypi.org/","format_hint":"js_embedded"}}}'
Hard guarantee: fake-200 CAPTCHA/Turnstile shells, login walls, encrypted PDFs, empty results, schema mismatches, and SSRF HTTP 422 blocks always return billed_micros: 0.
Test Schema-Validated Extraction Live in 5 Seconds
Paste any public URL, HTML table, JSON-LD, CSV, or fake-200 shell at scrape.fastmesh.dev or top up once with never-expiring Creem prepaid credits ($15 Starter / $59 Growth / $199 Scale — $0/mo recurring).
Frequently Asked Questions
What happens if a page has multiple JSON-LD script tags? Scrape-Anything collects every valid `<script type="application/ld+json">` block in document order into the `json_ld` array while skipping malformed fragments cleanly.
Can I require that at least one JSON-LD block exists before I get billed? Yes. Pass `{"type":"object","required":["json_ld"],"properties":{"json_ld":{"type":"array","minItems":1}}}` in `json_schema`. Pages with 0 JSON-LD blocks fail validation and bill `$0`.
Does JSON-LD extraction cost extra compared to basic scraping? No. Structured metadata extraction is included in the standard `$0.015` verified hit rate (and `$0.0015` on same-tenant cache refresh).
Public-Only Ethics & Zero Customer Data Resale Commitment: Scrape-Anything extracts publicly accessible resources and caller-supplied inline documents only. It never attempts to bypass CAPTCHAs, Turnstile challenges, or login walls (stopping cleanly at $0), enforces per-hop SSRF blocking at unbilled HTTP 422, and never sells, sublicenses, or uses customer URLs, JSON Schemas, or extracted payloads to train third-party AI models. Operations contact: ops@fastmesh.dev.