Developers
The IconHub API
Search, customize and serve icons from inside your own product. Free with an API key, with fair-use limits that keep it fast for everyone.
REST + JSONSanitized SVG inlineAVIF previewsFree with an API key300 req/min
Quickstart
1Get a keySign in and create a key below. Keep it server-side; it never belongs in browser code.
export ICONHUB_KEY="ih_live_…"2SearchFind icons by keyword, type, shape, color and style. Ask for svg with with= to get markup inline.
GET /icons?search=weather&type=Sticker&with=styles3RenderInline the sanitized svg_code, or use static_image_url for a ready-made AVIF preview.
<img src="https://storage.iconhub.com/icons/sun-….avif" width="24" alt="Sun">Endpoints
Base URL https://admin.iconhub.com/api/v1 · send your token as Authorization: Bearer … with Accept: application/json. Lists return data + pagination; detail calls return { status, message, data }. Unknown query keys return 422.
Your API keys
Keys are tied to your account. Restrict each one to the domains that use it.
Fair use
Free, with fair useThe API costs nothing. 300 requests per minute per key. Contact us if you need more.
AttributionShow “Icons by IconHub” with a link near where icons appear in your product.
CachingResponses carry an ETag; send If-None-Match to get 304s. Don't mirror or bulk-download the library through the API.