Design Extraction API
SVG APIGET /v1/svg1 credit/call

Every SVG on a page, ready to paste

The SVG extraction API: extract every SVG from a website - inline icons as paste-ready code, .svg files as URLs - in one call.

  • 300 free credits a month
  • Failed and repeat calls are free
  • Works from ChatGPT, Claude and Cursor
Inline + file
both SVG sources
Paste-ready
code comes back whole
1 credit
cheapest endpoint

From a URL to data you can use

1

Send one URL

One GET request with the page’s address. No browser to run, no scraper to write.

2

MiroMiro reads the live page

It reads the page’s HTML and CSS as a visitor’s browser would, and collects what the page really uses.

3

Get it back, ready to use

Typed JSON, for 1 credit. A repeat call within 24 hours is free.

The API is the demo

One authenticated GET against any live URL. Typed JSON back.

TerminalGET /v1/svg

$

⠿ fetching stripe.com…

{

"svgs": [

{"type": "inline", "code": "<svg viewBox=…>…</svg>" },

{"type": "inline", "code": "<svg …>…</svg>" },

{"type": "file", "url": "https://…/logo.svg" }, …

], "count":154

}

200 OK · 0.6s · 1 credit

SVGs· stripe.com Run it live

154 SVGs · inline code + files

inline · paste-ready codelogo.svg · file URL

What it actually returns

A real response for stripe.com, captured from the live API - not a mock.

GET /v1/svg?url=stripe.com Run it live

Inline SVGs (showing 13 of 150)

Rendered from the extracted code as paste-ready SVG - not screenshots.

What it captures

Found on the page

  • inline <svg> code
  • external .svg files
  • icons
  • logos
  • illustrations

Why this one

Returns inline SVG code AND linked .svg files in one call - most tools give you only the file links.

Compare alternatives

What you can pass

Only url is required. Everything else narrows or reshapes the result.

urlrequired

any public URL

The page to extract from. With or without protocol (https:// is assumed).

fields

svgs · count

Comma-separated list of fields to return (e.g. fields=svgs).

render

true · false (default)

Load the page in a real browser and run its JavaScript before extracting.

fresh

true · false (default)

Skip the 24-hour cache and re-extract from the live page.

screenshot

true · full · false (default)

Requires render=true. The same real browser that renders the page also captures a screenshot - true for the 1440x900 viewport, full for the entire page height.

Every parameter, the response fields and the error codes are in the reference.

Your agent can call this

ChatGPT & Codex

“Grab the icon set from stripe.com and drop the SVGs into my components folder.”

Step-by-step setup for your agent

What you can build

Icon recovery

Grab an entire icon set from a reference site.

Logo extraction

Pull clean vector logos ready for Figma or React.

Asset migration

Recover every vector from a legacy site during a redesign.

Before you integrate

Do I get the SVG code or just links?

Both - inline SVGs come back as ready-to-paste code, and external .svg files come back as URLs.

What does it cost?

SVG extraction is 1 credit per call - the cheapest endpoint. Cached and failed calls are free.

Do I need a credit card to try it?

No. A free key includes 300 credits a month, which covers 300 SVG extractions - and the playground needs no signup at all.

Does it work on sites built with JavaScript?

Yes. The page’s HTML and CSS are read first, which is enough for most sites. When a page only builds itself with JavaScript, or refuses a plain request, it is re-read in a real browser automatically at no extra cost. Add render=true to force the browser, for example for images that load on scroll: that costs 5 extra credits, on every plan including the free key.

Can it read pages behind a login?

No. It reads public pages the way a visitor without an account would see them. Pages that need a sign-in, and addresses on your own machine such as localhost, are out of reach.

Can my AI agent call it without code?

Yes. The same call is the extract_svgs tool on the MiroMiro MCP server. Connect ChatGPT, Claude, Cursor, Codex or another agent once, with a sign-in and no API key, and ask in plain language.

More about the SVG Extraction API

Get every SVG from any website

The MiroMiro SVG Extraction API returns every vector on a page in one call: inline <svg> elements come back as ready-to-paste code, and external .svg files come back as resolved URLs. Icons, logos, and illustrations - all of them, tagged by source.

Recover a whole icon set in seconds

Point it at a reference site and pull the entire icon system, grab a clean vector logo ready for Figma or React, or recover every SVG from a legacy site during a redesign. Because inline SVGs return as code, you can drop them straight into a component without re-drawing anything.

Get your free API key

300 free credits every month, no credit card. One key unlocks every endpoint - brand, tokens, images, SVGs, fonts, and Lottie. Upgrade only when you outgrow the free tier.