Docs/Extract a whole page
/v1/site/page30 creditsStep two of extracting a whole website: one complete page as code, every section from top to bottom, in the framework you ask for. Pick pages from /v1/site/pages (start with its suggested list), then call this once per page. A flat 30 credits per page, whatever its length, plus pagePreviewUrl: the whole page assembled, with a Download HTML button. Each section is extracted the same way as /v1/code, in a real browser. Part of the paid plans, credit packs and AppSumo licenses: a free key gets 402 site_requires_plan (single sections still work on every plan with /v1/code).
urlrequiredThe page to extract from. With or without protocol (https:// is assumed).frameworkoptionalThe code you get back. tailwind returns markup with utility classes; html returns markup plus a companion stylesheet; jsx returns a React component; vue returns a single-file component. For jsx and vue, repeated structures (pricing tiers, testimonial cards, feature lists) are collapsed into a data array rendered with .map() / v-for - one template plus the data, the way a human would write it. elementor returns an importable Elementor template: save code as a .json file and import it in WordPress under Templates > Saved Templates > Import. shopify returns a theme section: save code as sections/your-name.liquid, then add it from the theme editor. Use the sections folder in the theme code editor, not a Custom Liquid block (that block is capped at 50 KB and cannot hold the schema). Both builder files hold the section as one styled HTML block (edited as code, not as native widgets or blocks), with its responsive and hover rules as real CSS, scoped to the block so the theme and the section cannot restyle each other. Elements that the source site fades in on scroll are emitted already visible, since its JavaScript does not come along. tailwind (default) · html · jsx · vue · elementor · shopifythemeoptionalWhich colour scheme to extract. By default the page's light styles are the component and its @media (prefers-color-scheme: dark) rules ride along as dark: variants. Pass theme=dark to flip that: the dark rules and custom properties become the component itself, so you get the site as people see it in dark mode. Works whether the site expresses its themes as @media (prefers-color-scheme) or as a root attribute or class its CSS is scoped to ([data-theme=dark], html.dark) - both are read from the stylesheet, so the values you get are the ones that theme really uses. Sites that switch themes purely in JavaScript cannot be selected this way: you get the page default plus a hint saying so. No extra credits. light (default) · darkBuild a request
GEThttps://miromiro.app/api/v1/v1/site/page?url=stripe.com
urlrequiredframeworktheme Options at their default are left out of the URL - the API assumes them. Auth isn't shown here: send your key as an Authorization: Bearer header (see the example below).
Response
Authorization: Bearer mm_live_…urlstringThe page that was extracted.frameworkstringOne of tailwind, html, jsx, vue, elementor, shopify. Every section's code is in this format (for elementor and shopify, one importable file per section).completebooleanfalse when the page has more sections than fit in one call. Call again with the same url, framework and theme: the sections already done come from cache and the page is not charged again.sectionCountnumberHow many sections are in sections.pagePreviewUrlstring?The whole page, at miromiro.app/p/pg-<id>: every section assembled in page order, with a Download HTML button that saves it as one self-contained .html file.sections[]arrayEvery section, top to bottom: order (1 = topmost), label (from the section's own heading), selector, code, css, and the section's own previewUrl and downloadUrl. code and css work exactly like /v1/code's.pendingarray?Only when complete is false: the sections not done yet. Call again with the same url to finish them at no charge.notestring?Only when complete is false: a ready-to-show sentence saying to call again.skippedarray?Only on very long pages: sections past the first 14, which are mostly repeats. Extract any of them with /v1/code and its selector.failedarray?Sections that could not be extracted, with the reason. The rest of the page is still returned.usageobjectMetering for this call: credits spent this month, your monthly cap (null = unlimited), credits remaining (every credit you can still spend: plan credits left this month plus any team share and credit-pack balance), what this call cost (30, or 0 for a cached page or a follow-up call that finishes an incomplete one), and whether it came from the 24-hour cache. packCredits appears only when you hold a credit pack: the never-expiring part of remaining. A finished page is cached for 24 hours: the same url, framework and theme again costs 0 credits. A different framework or theme is a new extraction.Example request
https://miromiro.app/api/v1/extract?url=stripe.com&access_key=mm_live_…