{"openapi":"3.1.0","info":{"title":"MiroMiro Design Extraction API","version":"1.0.0","description":"Turn any live website URL into design data: production-ready section code, brand identity, the full design-token system, and every asset (images, SVGs, fonts, videos, audio, Lottie). Built for developers and AI agents — also available as an MCP server at https://miromiro.app/mcp.\n\nAuth: Bearer key (`mm_live_…`). Get one free at https://miromiro.app/api/onboarding — 300 credits/month, no card. Docs: https://miromiro.app/api/docs (append .md to any docs URL for raw Markdown).","contact":{"name":"MiroMiro","url":"https://miromiro.app/api"}},"servers":[{"url":"https://miromiro.app/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key from the MiroMiro console, format mm_live_… Sent as `Authorization: Bearer mm_live_…`."}}},"paths":{"/account":{"get":{"operationId":"getAccount","summary":"Check a key: plan, status and credit balance (free)","description":"Returns the calling key's plan, status and credit balance without running an extraction. **Cost:** 0 credits. Answers at the monthly quota cap too, so it is the call to test a key in an integration or check the balance before a large job.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"The key and its balance.","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","description":"Plan tier: free, developer, team, scale or custom."},"status":{"type":["string","null"],"description":"Key status, e.g. active, trialing, past_due, canceled."},"active":{"type":"boolean","description":"True when the key can make calls (active or trialing)."},"creditsThisMonth":{"type":"integer","description":"Credits used in the current billing month."},"monthlyLimit":{"type":["integer","null"],"description":"Monthly credit quota; null means unlimited."},"remaining":{"type":["integer","null"],"description":"Plan credits left this month; null means unlimited."},"packCredits":{"type":"integer","description":"Never-expiring credit-pack balance, spent after the monthly credits."},"teamCredits":{"type":"integer","description":"Present only when a team owner shares credits with this account: what is left of this month's share. Spent before the account's own credits."},"sharedWithTeam":{"type":"integer","description":"Present only when this account shares credits with its team: credits a month given to team members, already taken off remaining."},"keyLimit":{"type":"object","description":"Present only when the call used an additional key with its own monthly credit limit (set by the account owner in the dashboard). That key stops at its limit with 429 key_limit_reached even while the account has credits left.","properties":{"name":{"type":"string","description":"The key's name in the dashboard."},"creditsThisMonth":{"type":"integer","description":"Credits this key used this month."},"monthlyCreditLimit":{"type":"integer","description":"Most credits this key may use per month."},"remaining":{"type":"integer","description":"Credits this key has left this month."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/code":{"get":{"operationId":"extractCode","summary":"URL → code: a live section as a clean component","description":"The flagship. Loads the page in a real browser (every key, no surcharge), reads the styles, theme and images it actually shows, and returns a self-contained component (Tailwind, HTML+CSS, React or Vue) plus the design tokens that section uses. Omit `selector` and the hero section is auto-detected; the `sections` field lists every extractable section so you can call again for a specific one. For jsx/vue, repeated structures collapse into a data array with .map()/v-for.\n\n**Cost:** 10 credits (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"section","in":"query","required":false,"description":"A part of the page by name, resolved on the page itself from its ids, classes and headings, or failing those from what it contains (prices for pricing, blockquotes for testimonials, details/questions for faq) - for callers that cannot see the markup. Ignored when selector is given. Not on the page → 404 listing the sections that do exist.","schema":{"type":"string","enum":["hero","header","footer","pricing","features","testimonials","faq","cta"]}},{"name":"selector","in":"query","required":false,"description":"CSS selector of the section to extract (e.g. #hero, .pricing-card), best taken from a previous response's `sections`. Omit both selector and section to auto-detect the hero. No match → 404 listing the sections that do exist.","schema":{"type":"string"}},{"name":"framework","in":"query","required":false,"description":"Output flavor. tailwind, html, jsx and vue return component code. elementor returns an importable Elementor template (save `code` as a .json file); shopify returns a theme section (save `code` as sections/<name>.liquid). The two builder targets embed their own scoped CSS, including responsive and hover rules.","schema":{"type":"string","enum":["tailwind","html","jsx","vue","elementor","shopify"],"default":"tailwind"}},{"name":"name","in":"query","required":false,"description":"Component name for jsx output (ignored by tailwind, html and vue). Not part of the cache key: renaming a cached section costs 0 credits.","schema":{"type":"string"}},{"name":"theme","in":"query","required":false,"description":"Which color scheme to extract. Default light: the page's light styles are the component, its prefers-color-scheme: dark rules ride along as dark: variants. theme=dark promotes the dark rules and custom properties to the component itself. Works whether the page expresses its themes as a prefers-color-scheme media query or as a root attribute/class its CSS is scoped to ([data-theme=dark], html.dark). Themes switched purely in JavaScript cannot be selected: you get the page default plus a hint. No extra credits.","schema":{"type":"string","enum":["light","dark"],"default":"light"}},{"name":"inline_svg","in":"query","required":false,"description":"Keep large inline SVGs inside `code`. By default any inline SVG over 2 KB (logo walls, illustrations) is moved to a permanent hosted .svg file and referenced with an <img> that keeps its classes, size and color, so the component stays small enough for an agent to use as-is. true = fully self-contained code. No extra credits.","schema":{"type":"boolean","default":false}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: code, css, tokens, theme, assets, selector, section, autoDetected, sections, framework, previewUrl, downloadUrl, pagePreviewUrl, svgNote.","schema":{"type":"string","examples":["code,css"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"code":{"type":"string","description":"The component, paste-ready."},"previewUrl":{"type":"string","format":"uri","description":"A page showing this section rendered from the same extraction, as HTML + CSS. Absent only if storing it failed."},"downloadUrl":{"type":"string","format":"uri","description":"The code exactly as returned, as a file in the requested format: .jsx, .vue, .html, .elementor.json or .liquid. Absent only if storing it failed."},"pagePreviewUrl":{"type":"string","format":"uri","description":"The whole page: every section of this URL extracted in the last day, assembled in page order. Grows as more sections are extracted. Both preview pages offer the document as an .html download."},"svgNote":{"type":"string","description":"Present when large inline SVGs were moved to hosted .svg files (also listed in assets.images). inline_svg=true keeps them inline."},"css":{"type":["string","null"],"description":"Companion stylesheet (always for framework=html; for tailwind, jsx and vue only when @keyframes are needed; null for elementor and shopify, whose file contains its CSS)."},"tokens":{"type":"object","description":"Design tokens this section actually uses.","additionalProperties":true},"theme":{"type":"string","enum":["light","dark"],"description":"Whether the CAPTURED code reads light or dark. Measured from the page - its declared root theme when it has one, else the backgrounds the cascade resolved - and never echoed back from the theme parameter, so a request the page could not honour still reports what you actually received. A site that expresses themes only through a prefers-color-scheme media query returns its light branch unless you pass theme=dark. Absent when the page declares no theme and no readable background was found."},"assets":{"type":"object","description":"Asset URLs the section references.","additionalProperties":true},"selector":{"type":"string","description":"The CSS selector that was extracted (the auto-detected or resolved one when you did not pass a selector)."},"section":{"type":"string","enum":["hero","header","footer","pricing","features","testimonials","faq","cta"],"description":"Only when section= was passed: the name that was resolved."},"autoDetected":{"type":"boolean"},"sections":{"type":"array","description":"Every extractable section on the page, best first: { selector, label, elements, hasHeading, preview, order }. order is where the section starts on the page (1 = topmost); sort by it to rebuild a whole page in sequence. Content that no single element wraps (a logo row and a heading loose in one long container) is listed with a selector like mm-range(div.page|2|5): pass it back like any other.","items":{"type":"object","additionalProperties":true}},"framework":{"type":"string","enum":["tailwind","html","jsx","vue","elementor","shopify"]},"summary":{"type":"object","description":"Extraction quality: elements, mappedToTailwind, arbitrary, styledCoverage (0-100 quality signal), repeatedGroups, truncated.","additionalProperties":true},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/brand":{"get":{"operationId":"extractBrand","summary":"Brand identity: color roles, palette, fonts, logo, socials","description":"The curated view: named color roles (primary/accent/background/text) with human-readable names, theme (dark/light), brand palette, primary fonts by role, logos, og-image, social profiles, and a 0-1 confidence score (how much the site declared vs how much was inferred — gate on it for bulk extraction).\n\n**Cost:** 10 credits (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: title, description, siteName, themeColor, theme, colors, colorNames, palette, fonts, typography, logo, logos, logoVariants, ogImage, socials, confidence, signals.","schema":{"type":"string","examples":["title,description"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"siteName":{"type":["string","null"]},"themeColor":{"type":["string","null"]},"theme":{"type":["string","null"],"description":"dark | light when detectable."},"colors":{"type":"object","description":"Named color roles: primary, accent, background, text — as hex.","additionalProperties":true},"colorNames":{"type":"object","description":"Human-readable name per role, e.g. \"Royal Blue\".","additionalProperties":true},"palette":{"type":"array","description":"The brand palette.","items":{"type":"object","additionalProperties":true}},"fonts":{"type":"object","description":"Primary fonts by role (primary/mono).","additionalProperties":true},"typography":{"type":"object","description":"Typography scale details.","additionalProperties":true},"logo":{"type":["string","null"],"description":"The site's real logo when we found one: the wordmark from its header, read in a real browser and hosted by MiroMiro (permanent URL, safe to embed); otherwise its best declared icon."},"logoVariants":{"type":"object","description":"The header logo per background: onLight is the file for a light background, onDark for a dark one. A one-color logo gets a recolored copy for the other background; a multi-color one only has its original. null when no header logo was found. Shape: { onLight, onDark }.","additionalProperties":true},"logos":{"type":"array","description":"All logo candidates, each { url, source, sizes?, format?, width?, height?, background?, variant? }. source header = the header wordmark read in a browser and hosted by MiroMiro; icon | apple-touch-icon | mask-icon | og are the page declarations.","items":{"type":"object","additionalProperties":true}},"ogImage":{"type":["string","null"]},"socials":{"type":"array","description":"One { platform, url, handle } per platform (x, github, linkedin, …).","items":{"type":"object","additionalProperties":true}},"confidence":{"type":"number","minimum":0,"maximum":1},"signals":{"type":"object","description":"The provenance behind confidence: primarySource (css-var | theme-color | logo | cta | usage | null — where colors.primary came from, strongest first; \"usage\" means it was inferred from frequency rather than declared), declaredBackground, declaredText, declaredLogo, fontsFound, and explanation — a ready-to-show sentence stating how much was declared vs inferred.","additionalProperties":true},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/extract":{"get":{"operationId":"extractDesignTokens","summary":"The full design-token system of a page","description":"Every token group with usage data: colors (with the CSS properties they paint), fontFamilies, fontSizes, fontWeights, letterSpacings, lineHeights, spacing, borderRadiuses, borderWidths, boxShadows, textShadows, opacities, gradients, durations, easings, breakpoints, zIndexes, plus colorSchemes. Counts are tallied over the whole stylesheet, so on a page that ships both themes the values are the union of the two - check colorSchemes before treating the most-used color as the background. Add format=css or format=tailwind for a paste-ready text block instead of JSON.\n\n**Cost:** 10 credits (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"format","in":"query","required":false,"description":"json returns the token object; css returns :root { } custom properties (text/css); tailwind returns a theme block (text/plain); dtcg returns a standalone W3C Design Tokens file (application/json) for Style Dictionary / Figma variables pipelines.","schema":{"type":"string","enum":["json","css","tailwind","dtcg"],"default":"json"}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: colors, fontSizes, fontFamilies, fontWeights, letterSpacings, borderRadiuses, boxShadows, lineHeights, zIndexes, spacing, gradients, durations, easings, textShadows, borderWidths, opacities, breakpoints, colorSchemes.","schema":{"type":"string","examples":["colors,fontSizes"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"colors":{"type":"object","description":"The colors token group.","additionalProperties":true},"fontSizes":{"type":"object","description":"The fontSizes token group.","additionalProperties":true},"fontFamilies":{"type":"object","description":"The fontFamilies token group.","additionalProperties":true},"fontWeights":{"type":"object","description":"The fontWeights token group.","additionalProperties":true},"letterSpacings":{"type":"object","description":"The letterSpacings token group.","additionalProperties":true},"borderRadiuses":{"type":"object","description":"The borderRadiuses token group.","additionalProperties":true},"boxShadows":{"type":"object","description":"The boxShadows token group.","additionalProperties":true},"lineHeights":{"type":"object","description":"The lineHeights token group.","additionalProperties":true},"zIndexes":{"type":"object","description":"The zIndexes token group.","additionalProperties":true},"spacing":{"type":"object","description":"The spacing token group.","additionalProperties":true},"gradients":{"type":"object","description":"The gradients token group.","additionalProperties":true},"durations":{"type":"object","description":"The durations token group.","additionalProperties":true},"easings":{"type":"object","description":"The easings token group.","additionalProperties":true},"textShadows":{"type":"object","description":"The textShadows token group.","additionalProperties":true},"borderWidths":{"type":"object","description":"The borderWidths token group.","additionalProperties":true},"opacities":{"type":"object","description":"The opacities token group.","additionalProperties":true},"breakpoints":{"type":"object","description":"The breakpoints token group.","additionalProperties":true},"colorSchemes":{"type":"array","items":{"type":"string","enum":["light","dark"]},"description":"The color schemes this page declares: [\"light\"] or [\"light\",\"dark\"]. When both, the token counts above mix the two themes and neither is labelled."},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/images":{"get":{"operationId":"extractImages","summary":"Every image a page declares","description":"img, srcset, picture, CSS background-image, favicons, og:image — each tagged by source. A URL that is itself an image file comes back as the single result (source \"file\").\n\n**Cost:** 1 credit (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: images, count.","schema":{"type":"string","examples":["images,count"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"images":{"type":"array","description":"Each { url, source, … }.","items":{"type":"object","additionalProperties":true}},"count":{"type":"number"},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/svg":{"get":{"operationId":"extractSvgs","summary":"Inline SVGs as code + external SVG files","description":"Inline <svg> markup paste-ready, plus external .svg file references.\n\n**Cost:** 1 credit (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: svgs, count.","schema":{"type":"string","examples":["svgs,count"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"svgs":{"type":"array","description":"Inline SVG code and file references.","items":{"type":"object","additionalProperties":true}},"count":{"type":"number"},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/fonts":{"get":{"operationId":"extractFonts","summary":"The real typography a site loads","description":"Resolves the full CSS cascade (linked stylesheets + @import) and returns every @font-face file with family/weight/style/format, Google Fonts links, and a grouped per-family summary. Families named as a foundry demo or trial cut are marked `demo: true` and summarised in `note`.\n\n**Cost:** 5 credits (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: fonts, families, googleFontsLinks, count, note.","schema":{"type":"string","examples":["fonts,families"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"fonts":{"type":"array","description":"Every font file: family, weight, style, format, src.","items":{"type":"object","additionalProperties":true}},"families":{"type":"array","description":"Per-family summary: weights, styles, file count, and demo:true when the name marks it a demo/trial cut.","items":{"type":"object","additionalProperties":true}},"googleFontsLinks":{"type":"array","description":"Google Fonts stylesheet links.","items":{"type":"object","additionalProperties":true}},"count":{"type":"number"},"note":{"type":"string","description":"Present only when demo/trial families were found. These are subset, feature-stripped cuts foundries serve for their own specimens - not the usable typeface. Always returned, even when ?fields= omits it."},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/videos":{"get":{"operationId":"extractVideos","summary":"Every video a page declares","description":"<video>/<source> files, og:video, player embeds (YouTube, Vimeo, Wistia, Loom — source \"embed\" is a player page, not a file) and direct video links, with posters when declared. A URL that is itself a video file comes back as the single result (source \"file\"). A video page on YouTube, Vimeo, TikTok, Dailymotion or Loom is answered from the URL alone with its player embed (source \"platform\", no fetch, render ignored; the file is not downloadable). JS-mounted players elsewhere need render=true.\n\n**Cost:** 1 credit (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: videos, count, note.","schema":{"type":"string","examples":["videos,count"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"videos":{"type":"array","description":"Each { url, source, poster? }.","items":{"type":"object","additionalProperties":true}},"count":{"type":"number"},"note":{"type":"string"},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/audio":{"get":{"operationId":"extractAudio","summary":"Every audio file a page declares","description":"<audio>/<source> files, og:audio, podcast enclosures and direct audio links, tagged by source. A URL that is itself an audio file comes back as the single result (source \"file\"). JS-mounted players need render=true.\n\n**Cost:** 1 credit (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: audio, count, note.","schema":{"type":"string","examples":["audio,count"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"audio":{"type":"array","description":"Each { url, source }.","items":{"type":"object","additionalProperties":true}},"count":{"type":"number"},"note":{"type":"string"},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/lottie":{"get":{"operationId":"extractLottie","summary":"Lottie animations on a page","description":"Lottie JSON animations declared in static HTML. Most Lotties are injected at runtime — add render=true to catch those too.\n\n**Cost:** 3 credits (+5 with render=true). Cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract from. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"render","in":"query","required":false,"description":"Load the page in a real browser and run its JavaScript before extracting. Use for client-rendered sites (React/Next/SPAs). Adds 5 credits. Available on every key, free included. Usually not needed: when a plain call comes back as a JavaScript app shell, with script-injected styles, or refused by the site (401/403/406) or timed out, the server re-runs it in the browser by itself at no extra charge and `usage.autoRender` says so. Pass render=true to force the browser for assets that only load on scroll (lazy images, video, Lottie), for screenshot=true, or when a result is still thin after that automatic pass. When a 403 says the browser was refused too, or the site blocks browser rendering, there is nothing to retry. /v1/code always runs in the browser on every key at no surcharge, so render=true is not needed there (only with screenshot=true). On /v1/extract, render=true only permits the browser: the plain read still runs first, and the surcharge is charged only if the browser was actually needed (`usage.autoRender` says when it was not).","schema":{"type":"boolean","default":false}},{"name":"fresh","in":"query","required":false,"description":"Skip the 24-hour cache and re-extract from the live page (charged normally). The fresh result replaces the cached copy. Without it, identical repeat calls within 24 hours are served from cache at 0 credits.","schema":{"type":"boolean","default":false}},{"name":"screenshot","in":"query","required":false,"description":"Requires render=true. Captures a screenshot in the same browser session - `true` for the 1440x900 viewport, `full` for the entire page height - and adds a `screenshot` field (public image URL, live for 7 days) to the response. No extra credits beyond the render surcharge. Captured on fresh extractions; a cache hit returns the screenshot stored with the cached result.","schema":{"type":"string","enum":["true","full"]}},{"name":"fields","in":"query","required":false,"description":"Comma-separated list of response fields to return. Trims the response only — the credit cost is unchanged. `url` is always included. Allowed: lotties, count, note.","schema":{"type":"string","examples":["lotties,count"]}}],"responses":{"200":{"description":"Successful extraction.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was extracted."},"lotties":{"type":"array","description":"Each detected Lottie with its source.","items":{"type":"object","additionalProperties":true}},"count":{"type":"number"},"note":{"type":"string"},"hint":{"type":"string","description":"Present only when the extraction looks degraded (client-rendered app shell, runtime-injected styles, or none of the page's stylesheets could be fetched). Says what to do — usually retry with render=true, or retry the same call in a moment when the stylesheets failed."},"screenshot":{"type":"string","description":"Present only when a screenshot was requested: public URL of the page capture (1440x900 viewport, or full page with screenshot=full), live for 7 days."},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"billing_issue: the key's subscription is past due, canceled, or inactive. render_requires_plan: legacy, not returned since 2026-09-23 - render=true is available on every key since 2026-10-14. site_requires_plan: /site/page on a key whose plan does not include whole-page extraction (free keys).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/site/pages":{"get":{"operationId":"listSitePages","summary":"Every page of a website, grouped by layout (free)","description":"Step one of extracting a whole website. Lists every page the site has - from its sitemap, else from the homepage links - without loading any of them. Pages are split into `pages` with their own layout (home, pricing, about…) and `templates`: groups that share one layout (blog post x62, product x24), guessed from the URLs, with example pages to check. `suggested` is the short list that covers every layout once. Show the list to the user and let them pick, then call /site/page once per chosen page. Every key gets the full list; on a free key the response adds `premium`, because /site/page is a paid feature.\n\n**Cost:** 0 credits, every plan. Results are cached for 24 hours.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The website to list, usually its homepage. Scheme optional — `stripe.com` works.","schema":{"type":"string","examples":["stripe.com"]}}],"responses":{"200":{"description":"The site's pages, grouped by layout.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The resolved URL that was scanned."},"origin":{"type":"string","description":"The site origin, e.g. https://stripe.com."},"source":{"type":"string","enum":["sitemap","links"],"description":"Where the list came from: the sitemap, or the homepage links when the site has none."},"totalPages":{"type":"integer","description":"Pages found, after dropping files, feeds, login/cart/admin flows and CMS archive pages."},"pages":{"type":"array","description":"Pages with their own layout.","items":{"type":"object","properties":{"url":{"type":"string"},"path":{"type":"string"}}}},"templates":{"type":"array","description":"Groups of pages that share one layout. Extracting any one example gives that layout.","items":{"type":"object","properties":{"name":{"type":"string","description":"Short label, e.g. \"blog post\"."},"pattern":{"type":"string","description":"The URL pattern the pages share, e.g. /blog/*, or the sitemap they came from."},"count":{"type":"integer"},"examples":{"type":"array","items":{"type":"string"},"description":"A few pages of this template."}}}},"suggested":{"type":"array","items":{"type":"string"},"description":"Unique pages plus one example per template: extracting these covers every layout on the site once."},"truncated":{"type":"boolean","description":"True when the site has more URLs than one scan reads."},"summary":{"type":"string","description":"A ready-to-show sentence: how many pages and templates were found, and what extracting `suggested` would cost."},"creditsPerPage":{"type":"integer","description":"What /site/page charges per page (30), to size the job before starting it."},"premium":{"type":"object","description":"Present only on a free key: /site/page is not included in its plan. Relay reason and upgradeUrl; single sections still work with /code.","properties":{"included":{"type":"boolean","const":false},"reason":{"type":"string","description":"Why extracting a whole website is a paid feature, ready to show."},"upgradeUrl":{"type":"string","format":"uri"}}},"usage":{"type":"object","description":"Always 0 credits.","properties":{"creditsSpent":{"type":"number"},"cached":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"404":{"description":"The site answered 404.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"502":{"description":"The site could not be loaded or answered with an error, so its pages could not be listed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}},"/site/page":{"get":{"operationId":"extractSitePage","summary":"One whole page as code, every section top to bottom","description":"Step two of extracting a whole website (step one: /site/pages). Extracts every section of one page through the same pipeline as /code and returns them in page order, plus `pagePreviewUrl`: the whole page assembled, with a Download HTML button. Call it once per page the user picked. Very long pages are capped at a fixed number of sections (the rest are listed in `skipped`). When a page does not finish inside one call, `complete` is false and `pending` lists what is left: call again with the same url and parameters - the finished sections come from cache and the page is not charged again. Finished pages are cached for 24 hours; repeat calls are free.\n\nPaid feature: API plans, credit packs and AppSumo licenses. A free key gets 402 site_requires_plan; single sections still work with /code.\n\n**Cost:** 30 credits per page, flat, whatever its length. Charged once per page per 24 hours; cache hits and failed calls cost 0.","security":[{"bearerAuth":[]}],"parameters":[{"name":"url","in":"query","required":true,"description":"The page to extract, usually one from /site/pages. Scheme optional — `linear.app/pricing` works.","schema":{"type":"string","examples":["stripe.com"]}},{"name":"framework","in":"query","required":false,"description":"Output flavor for every section, as on /code. elementor and shopify return one importable file per section.","schema":{"type":"string","enum":["tailwind","html","jsx","vue","elementor","shopify"],"default":"tailwind"}},{"name":"theme","in":"query","required":false,"description":"Which color scheme to extract, as on /code. No extra credits.","schema":{"type":"string","enum":["light","dark"],"default":"light"}}],"responses":{"200":{"description":"The page, section by section.","headers":{"X-RateLimit-Limit":{"description":"Per-minute request allowance for your plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current 60s window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly credit quota. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Credits remaining this month. Omitted on unlimited plans.","schema":{"type":"integer"}},"X-Cache":{"description":"HIT = served from the 24h cache (0 credits) · MISS = extracted live · BYPASS = fresh=true skipped the cache.","schema":{"type":"string","enum":["HIT","MISS","BYPASS"]}},"X-Request-Id":{"description":"Unique id for this call (req_…), present on every response. Errors echo it as data.requestId. Include it when reporting a problem.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The page that was extracted."},"framework":{"type":"string","enum":["tailwind","html","jsx","vue","elementor","shopify"]},"complete":{"type":"boolean","description":"False when sections are still pending: call again with the same url to finish (not charged again)."},"sectionCount":{"type":"integer"},"pagePreviewUrl":{"type":"string","format":"uri","description":"Every section extracted, assembled in page order, downloadable as one .html file."},"sections":{"type":"array","description":"The page's sections in order, each extracted as on /code.","items":{"type":"object","properties":{"order":{"type":"integer","description":"Where the section starts on the page; sections are sorted by it."},"label":{"type":"string"},"selector":{"type":"string"},"code":{"type":"string","description":"The section, paste-ready."},"css":{"type":["string","null"],"description":"Companion stylesheet, as on /code."},"previewUrl":{"type":"string","format":"uri"},"downloadUrl":{"type":"string","format":"uri"}}}},"pending":{"type":"array","description":"Present only when complete is false: sections left for the next call.","items":{"type":"object","properties":{"selector":{"type":"string"},"label":{"type":"string"}}}},"note":{"type":"string","description":"Present with pending: what to do next."},"skipped":{"type":"array","description":"Present only on very long pages: sections past the per-page cap, not extracted. Each can be taken with /code and its selector.","items":{"type":"object","properties":{"selector":{"type":"string"},"label":{"type":"string"}}}},"failed":{"type":"array","description":"Present only when some sections could not be extracted.","items":{"type":"object","properties":{"selector":{"type":"string"},"label":{"type":"string"},"error":{"type":"string"}}}},"usage":{"type":"object","description":"Metering for this call. creditsSpent is 0 on cache hits.","properties":{"creditsThisMonth":{"type":"number"},"monthlyLimit":{"type":["number","null"],"description":"null = unlimited plan"},"remaining":{"type":["number","null"]},"creditsSpent":{"type":"number"},"cached":{"type":"boolean"},"overageCredits":{"type":"number","description":"Present only when a paid key is past its quota: billed overage credits used this period."},"packCredits":{"type":"number","description":"Present only when the account holds a credit pack (one-off credits that never expire): the balance left after this call. Packs are drawn after the monthly quota and before overage."},"teamCredits":{"type":"number","description":"Present only when a team owner shares credits with this account: what is left of this month's share after this call. Team credits are spent before the account's own."},"warning":{"type":"string","description":"Present from 80% of a hard monthly quota (no pack, no overage): how much is used and a one-click top-up link. Relay it to the user."},"autoRender":{"type":"string","description":"Present when the server re-ran this call in a real browser by itself, at no extra charge: the plain read was a JavaScript app shell (or its styles are injected by scripts), or the site refused it (401/403/406) or timed out. A ready-to-show sentence; it also means render=true is not needed for this page."},"topUpUrl":{"type":"string","description":"Present with `warning`: a signed link (valid 7 days) that opens Stripe Checkout for a 500-credit top-up on this key's account, no login. The same link appears in 429 quota_exceeded messages."}}}}}}}},"400":{"description":"Invalid input — missing url, unknown fields name, or bad parameter value. The statusMessage lists what is valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"401":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"402":{"description":"site_requires_plan: whole-page extraction is not in the key's plan (free keys); the statusMessage says why and links the upgrade. billing_issue: the key's subscription is past due, canceled, or inactive.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"422":{"description":"The target URL could not be parsed as a page: it is a media file (image, video, audio - the matching asset endpoint returns the file itself), a data response instead of a page (JSON, plain text, XML sitemap, PDF), or the selected element produced no renderable content.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"429":{"description":"Per-minute rate limit, monthly credit quota, or this additional key's own monthly limit exceeded (data.code: rate_limited, quota_exceeded or key_limit_reached). The statusMessage says which, and when to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}},"503":{"description":"render=true requested but JS rendering is not available. Retry without render.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"statusCode":{"type":"integer"},"statusMessage":{"type":"string","description":"Human- and agent-readable explanation, including what to do next (e.g. \"Rate limit exceeded. Retry in 42s.\")."},"data":{"type":"object","description":"Machine-readable error detail. Branch on code, not on the English message.","properties":{"code":{"type":"string","description":"Stable error code.","enum":["invalid_request","invalid_api_key","billing_issue","render_requires_plan","site_requires_plan","target_blocked","not_found","target_timeout","unprocessable_content","rate_limited","quota_exceeded","key_limit_reached","target_error","target_unreachable","render_unavailable","internal_error"]},"requestId":{"type":["string","null"],"description":"The X-Request-Id of this call - the lookup key for support."}}}}}}}}}}}}}