Favicon Fetcher
Fetch the highest-resolution favicon or app icon for any domain
/v1/image/favicon
curl "https://image.toolkitapi.io/v1/image/favicon?domain=github.com"
import httpx
resp = httpx.get(
"https://image.toolkitapi.io/v1/image/favicon?domain=github.com",
)
print(resp.json())
const resp = await fetch("https://image.toolkitapi.io/v1/image/favicon?domain=github.com", {
});
const data = await resp.json();
console.log(data);
# See curl example
{
"domain": "github.com",
"favicon": {
"url": "https://github.com/apple-touch-icon.png",
"source": "apple-touch-icon",
"content_type": "image/png",
"data": "iVBORw0KGgoAAAANSUhEUg...(base64 data)...",
"size_bytes": 6847
},
"all_candidates": [
{"url": "https://github.com/apple-touch-icon.png", "source": "apple-touch-icon", "size_bytes": 6847},
{"url": "https://github.com/favicon.ico", "source": "favicon.ico", "size_bytes": 1150}
]
}
Description
How to Use
1. Pass the `domain` query parameter — either a bare domain (e.g. "github.com") or a full URL.
2. The endpoint checks Apple touch icon, favicon.ico, HTML link tags, and Google fallback.
3. The `favicon` object contains the best (largest) icon found, with base64 data.
4. Check `all_candidates` to see all discovered icons and their sources.
About This Tool
Use the Favicon Fetcher to retrieve the highest-resolution favicon or app icon for any domain. It checks multiple sources in priority order: Apple touch icon (180×180), standard favicon.ico, HTML `` tags, and a Google favicon service fallback.
The endpoint returns both the best candidate (largest by file size as a resolution heuristic) and a list of all discovered icons. Icon data is returned as base64 for immediate use.
Why Use This Tool
- Link previews — Display favicons alongside bookmarks or link lists
- Browser extensions — Fetch site icons for tab managers or bookmark tools
- Monitoring dashboards — Show service icons next to uptime status indicators
- SEO tools — Verify favicon configuration across websites
- CRM/directory — Enrich company entries with their website icons
Frequently Asked Questions
Which icon is returned as the "best"?
What happens if no favicon is found?
Can I get icons for any website?
Start using Favicon Fetcher now
Get your free API key and make your first request in under a minute.