Documentation
Getting started with SVG API
SVG API delivers SVG icons from multiple libraries through one fast edge endpoint. Use these basics to integrate in minutes.
What is SVG API?
SVG API is a free, open-source API that provides access to 22,000+ icons from popular libraries like Lucide, Tabler, Heroicons, and more. Instead of bundling icon packages or managing assets, you can fetch any icon on-demand via a simple URL.
22k+
Icons
7
Sources
<50ms
Latency
Quick example
Fetch any icon by making a simple HTTP request:
Terminal
curl "https://svg-api.org/v1/icons/home?source=lucide"# With custom size and colorcurl "https://svg-api.org/v1/icons/heart?source=lucide&size=32&color=%23ef4444"Or use it directly in your HTML:
HTML
<img src="https://svg-api.org/v1/icons/home?source=lucide" alt="Home" /><img src="https://svg-api.org/v1/icons/settings?source=lucide&size=24&color=%236366f1" alt="Settings" />Quick Start
Get up and running in under 5 minutes with our step-by-step guide.
API Reference
Complete documentation for all endpoints, parameters, and response formats.
Code Examples
Ready-to-use examples for HTML, React, Vue, and more.
Icon Sources
Learn about the icon libraries available through SVG API.
Key features
- -No dependenciesJust a URL, no packages to install
- -Edge-cachedCloudflare CDN for <50ms responses
- -CustomizableSize, color, and stroke via query params
- -Search APIFull-text search across all icons
- -Batch requestsFetch up to 50 icons in one request
- -Free foreverOpen source, no API key required