SVG Extraction API ·GET /v1/svg

Extract SVG Icons and Logos From Any Website

The SVG API returns every vector on a page in one call: inline SVGs as paste-ready code and linked .svg files as URLs. Icons, logos and illustrations, ready for Figma, React or your design system.

1 credit per call · 300 free credits a month · no credit card

What you get

What the SVG API returns

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
  • Inline SVGs as code

    Every <svg> written into the page, returned whole - paths, viewBox and all - ready to paste into a component.

  • Linked .svg files

    Every external .svg file the page references, as an absolute URL you can download.

  • Icons, logos, illustrations

    Whole icon sets, header logos and decorative art, from a single URL.

  • 1 credit per page

    The cheapest endpoint. Repeat calls within 24 hours are free.

Perfect for

Who uses the SVG API

  • Frontend developers

    Pull a reference site's icons straight into your components.

  • Designers

    Get vector logos and icons to open in Figma, instead of screenshots to redraw.

  • Teams migrating a site

    Recover inline SVGs that exist nowhere but the old site's HTML.

  • AI coding agents

    Hand an agent the real icon code through the extract_svgs MCP tool.

How it works

How to extract SVGs from a website

  1. 1

    Send the page URL

    One GET request to /v1/svg with the address. No browser or scraper to run.

  2. 2

    MiroMiro reads the page

    It collects every inline <svg> and every linked .svg file the page uses.

  3. 3

    Get the SVGs back

    Typed JSON: inline SVGs as code, files as URLs, and a total count. 1 credit.

Three ways to use it

From your code, your agent, or n8n

The same extraction, three doors: a REST endpoint for your app, an MCP tool for ChatGPT, Claude, Cursor or Codex, and a verified n8n node for automations. One account, one credit balance.

For developers

With one API call

One REST call from any language, with your API key. Typed JSON back.

1const res = await fetch(2  'https://miromiro.app/api/v1/svg?url=stripe.com',3  { headers: { Authorization: `Bearer ${process.env.MIROMIRO_API_KEY}` } }4)5const data = await res.json()678
API reference
For AI agents

Or just ask your agent

Connect once over MCP, then ask in plain words. No code.

ChatGPTClaudeClaude CodeCursorCodexand any MCP client
Setup for every agent

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

Called MiroMiro · extract_svgs · stripe.com

Found 154 SVGs on stripe.com. I saved the icons to components/icons/ as SVG files.

For automations

Or run it in n8n

A verified n8n node with free, ready-made templates. Make, Zapier and any tool that sends an HTTP request can call the API too.

  1. Schedule

    Every Monday

  2. Google Sheets

    Your URLs

  3. MiroMiro

    extract svgs

  4. Google Drive

    The results

Real output

A real response for stripe.com

Captured from the live API, not written by hand.

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.

Compare

MiroMiro vs SVG extensions, scrapers and devtools

MiroMiroBrowser extensionWeb scraperDevtools by hand
Inline SVGs as clean codeYesYesPartlyYes
Linked .svg files as URLsYesYesPartlyYes
Ready to use, no HTML parsingYesYesNoYes
Callable from code or CIYesNoYesNo
AI agents call it through MCPYesNoPartlyNo

Compare with other APIs

Parameters

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.

FAQ

Frequently asked questions

How do I extract SVG icons and logos from a website?

Send the page URL to /v1/svg. The response lists every SVG on the page: inline ones as complete <svg> code and linked files as URLs. Pick the logo or the icon set you need from that list in your own code, or ask an agent to do it through the extract_svgs MCP tool.

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.

Is the SVG API free?

Each call costs 1 credit, and the free plan includes 300 credits a month with no credit card - up to 300 pages a month at no cost. Repeat calls within 24 hours and failed calls are free.

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.

Related endpoints

Try it on your own URL

300 free credits a month, no credit card. One key works for every endpoint, over REST or MCP.

Get a free API key