S
SVG API

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 color
curl "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 dependencies
    Just a URL, no packages to install
  • -
    Edge-cached
    Cloudflare CDN for <50ms responses
  • -
    Customizable
    Size, color, and stroke via query params
  • -
    Search API
    Full-text search across all icons
  • -
    Batch requests
    Fetch up to 50 icons in one request
  • -
    Free forever
    Open source, no API key required