🔍

Favicon Fetcher

Fetch the highest-resolution favicon or app icon for any domain

GET 1 credit /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
Response 200 OK
{
  "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

Fetch the highest-resolution favicon or app icon for any domain

How to Use

1

1. Pass the `domain` query parameter — either a bare domain (e.g. "github.com") or a full URL.

2

2. The endpoint checks Apple touch icon, favicon.ico, HTML link tags, and Google fallback.

3

3. The `favicon` object contains the best (largest) icon found, with base64 data.

4

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

Frequently Asked Questions

Which icon is returned as the "best"?
The largest icon by file size is selected as the best candidate, since larger files generally indicate higher resolution. Apple touch icons (180×180) are typically the best available.
What happens if no favicon is found?
A 404 error is returned with a descriptive message. This is rare since the Google favicon service fallback handles most domains.
Can I get icons for any website?
The endpoint works with any publicly accessible website. It cannot fetch favicons from sites behind authentication or on private networks.

Start using Favicon Fetcher now

Get your free API key and make your first request in under a minute.