SVG to CSS data URI
API · /svgo-api
SVG Optimizer API
Shrink and clean SVG files automatically with SVGO, the industry-standard SVG optimiser. The optimize endpoint strips comments, metadata, editor cruft and redundant attributes, collapses and merges paths, and returns minified markup together with the original and optimised byte sizes and the percentage saved — typically 30-60% smaller. The data-uri endpoint goes one step further and returns a ready-to-paste CSS data URI (URL-encoded or base64) plus the matching background-image rule, so you can inline icons without an extra HTTP request. Perfect for build pipelines, icon systems, design tooling, email and embedding SVGs in CSS. Pure local processing — no key, no third-party service, instant; send markup via POST for large files (up to 2 MB). Live, nothing stored. 3 endpoints. Distinct from raster image compression, QR/code generation and JSON/HTML formatting.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 80 ms
- Server probes · 24h
- Subscribers
- 3,888
- active
- Total calls
- 60
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 960 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 960 calls/month
- 2 req/sec
- Optimize + data URI
- No credit card
Starter
€2.10 /month
- 8,100 calls / month
- 8 requests / second
- Hard cap (429 above quota, no overage)
- 8.1k calls/month
- 8 req/sec
- Multipass + base64/URL data URIs
- Email support
Pro
€21.00 /month
- 135,000 calls / month
- 20 requests / second
- Hard cap (429 above quota, no overage)
- 135k calls/month
- 20 req/sec
- Build / icon-system pipelines
- Priority support
Mega
€57.00 /month
- 695,000 calls / month
- 50 requests / second
- Hard cap (429 above quota, no overage)
- 695k calls/month
- 50 req/sec
- Platform scale
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Iconify Icons API
The open-source icon universe — Iconify — as an API. Search across 200,000+ icons from 200+ icon sets (Material Symbols, Material Design Icons, Font Awesome, Tabler, Lucide, Phosphor, Simple Icons, brand logos and more); get any icon's SVG path, dimensions and a ready-to-use, copy-paste `<svg>` string plus a direct .svg URL; and browse the icon sets with their author, license and icon count. Every icon is addressed by a simple `prefix:name` id (e.g. mdi:home, logos:github). Live from the official api.iconify.design. Ideal for design tools and icon pickers, no-code and website builders, documentation and component libraries, and any app that needs scalable icons. Open-source icons, each with its set's license.
api.oanor.com/iconify-api
Placeholder API
A fast, fully-local SVG generator for mockups and UIs: placeholder images (a sized rectangle with centered text and automatic contrast), initials avatars (with a deterministic colour derived from the name, in a circle or square), and identicon-style symmetric patterns generated deterministically from any seed. Every endpoint returns the JSON envelope or, with raw=1, the raw SVG so the URL can be used directly as an image source. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for prototypes, dashboards, user avatars, empty states and design systems.
api.oanor.com/placeholder-api
QR Code API
Generate QR codes on demand as a base64 PNG, an SVG, or a raw embeddable image. Customise size, quiet-zone margin, error-correction level and foreground/background colors. Encode URLs, text, Wi-Fi, vCards and more.
api.oanor.com/qr-api
Portfolio Optimizer API
Live mean-variance (Markowitz) portfolio optimisation that quants and allocators run across a basket of assets, computed on demand from the price series you pass in — no key, no cache, nothing stored. The optimize endpoint returns the two cornerstone portfolios: the minimum-variance portfolio and the maximum-Sharpe (tangency) portfolio, each with its optimal weights, expected return, volatility and Sharpe ratio. The frontier endpoint traces the efficient frontier — a set of optimal risk/return points and the weights that achieve them — so you can plot the whole risk/return curve. The stats endpoint returns the per-asset annualised return and volatility plus the full correlation and covariance matrices, the raw material behind the optimisation. It exploits diversification: by combining assets with low or negative correlation the optimiser finds a portfolio whose volatility is lower than any single holding. Works for any basket — stocks, funds, ETFs, crypto, FX or commodities. This is a multi-asset allocation engine, fundamentally different from single-asset risk and CAPM tools: it answers how to weight several assets together, not how one behaves. Weights can be negative, representing a short leg, as in classic unconstrained Markowitz. Computed locally and deterministically, so it is instant and private. Ideal for robo-advisors, portfolio dashboards, asset-allocation research and back-tests. Rates are fractions (0.02 = 2%). Live, nothing stored. 3 compute endpoints. For single-asset Sharpe/drawdown use a risk-metrics API; for beta use a CAPM API.
api.oanor.com/portfoliooptimizer-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for SVG Optimizer API?
What's the rate limit for SVG Optimizer API?
How much does SVG Optimizer API cost?
Can I cancel my subscription anytime?
Is SVG Optimizer API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/svgo-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/svgo-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/svgo-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/svgo-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.