Extract __NEXT_DATA__ & __NUXT__ JSON State Directly Without Spinning Up Headless Chrome
Target Query: extract next data nuxt json without headless chrome · Category: Extraction Modality · Verified Rate: $0.015/hit ($0 on miss) · Updated: 2026-12-02
Direct Answer: Modern React/Next.js, Vue/Nuxt, and SSR storefronts embed their full backend API state directly inside `<script id="__NEXT_DATA__">`, `__NUXT_DATA__`, `window.__INITIAL_STATE__`, or `window.__PRELOADED_STATE__` blocks. Firing up a headless Chromium container to scrape those pages wastes gigabytes of RAM, takes 3–8 seconds, and triggers 5x–25x browser credit multipliers. Scrape-Anything extracts hydration JSON directly from raw HTML streams in under 60 ms, validates your JSON Schema, and charges $0 if the expected fields are absent.
Engineering Mechanics & Deterministic Guardrails
Native extractor for `<script id="__NEXT_DATA__" type="application/json">` props payloads (`props.pageProps`).
Supports Vue/Nuxt `<script id="__NUXT_DATA__">` and inline `window.__NUXT__`, `window.__INITIAL_STATE__`, and `window.__PRELOADED_STATE__` assignments.
Automatically co-extracts JSON-LD (`application/ld+json`), OpenGraph (`og:*`), Twitter meta tags, headings, links, and clean Markdown.
Validates extracted hydration objects against your target JSON Schema before billing `$0.015` (or `$0` on mismatch).
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).
Is executing untrusted page JavaScript required to extract __NEXT_DATA__?
No. Scrape-Anything never executes untrusted third-party JavaScript. It parses JSON script blocks and balanced state literals statically with zero V8/Chromium attack surface.
What if a page is a pure client-side SPA with empty `<div id="root"></div>` and no hydration JSON?
The anti-fake-200 gate detects the blank JS-only shell, returns `ok: false` with a clear `blocked_reason`, and guarantees `billed_micros = 0`.
Does `js_embedded` also return clean Markdown text?
Yes. Alongside `next_data`, `nuxt_data`, `json_ld`, and `open_graph`, the extractor returns normalized Markdown body text, headings, and outbound links.