M
MesmerTools
Back to tools

Site Logo Fetcher

Extract the best logo or favicon from any website. We check apple-touch-icon, favicon links, HTML meta tags, and fall back to Google's favicon service. Cached for 7 days.

REST API

GET/api/v1/site-logo
Pass ?url= with a full website URL to fetch its logo.

Parameters

urlFull website URL (e.g. https://github.com). Must include the protocol (http:// or https://).

Example

curl "https://mesmer.tools/api/v1/site-logo?url=https://github.com"

Response

{
"logoUrl": "https://github.com/apple-touch-icon.png",
"domain": "github.com"
}

How it works

Three steps to get the best logo from any website.

Step 1
browser
https://github.com

Enter a URL

Provide any website URL. We accept any valid URL with http:// or https:// protocol.

Step 2
/apple-touch-icon.png
/favicon-192x192.png
<link rel="icon">HTML
Google favicon APIfallback

We scan for logos

We check apple-touch-icon, static favicon paths, parse HTML for icon links, and fall back to Google's favicon service.

Step 3
{
"logoUrl": "https://..."
}

Get the best match

Receive a JSON response with the highest-quality logo URL found. Results are cached for 7 days so subsequent requests are instant.

Why use this tool

Built for developers who need reliable logo extraction without the hassle of parsing HTML themselves.

apple-touch-icon1st
favicon links2nd
HTML parsing3rd
Google fallback4th

Smart detection

Checks multiple sources in priority order: apple-touch-icon, static favicon paths, HTML link tags, then Google's favicon service. Returns the highest-quality match.

Cache TTL: 7 days
Edge-cached globally

7-day cache

Results are cached in Cloudflare KV for 7 days. Repeat requests resolve instantly without hitting the target site. Reduces load and speeds up your app.

GET /api/v1/site-logo
?url=https://example.com

Simple REST API

One endpoint, one parameter, zero authentication. Pass a URL, get a JSON response with the logo URL. Works with curl, fetch, Axios, or any HTTP client.

404
404
G
Always returns something

Graceful fallback

Even if a site has no favicon configured, we fall back to Google's favicon service which covers virtually every domain on the web. You always get a usable result.

Common use cases

Whether you are building link previews, a directory, or a browser extension, logo fetching is a common need.

Link previews

Enrich link cards with site logos. Show a recognizable icon alongside shared URLs in chat apps, social feeds, or content management systems.

Used by messaging platforms, social networks, and CMS tools that display link previews.

Directory sites

Auto-populate tool, app, or company logos when building directory listings. Save submitters the hassle of uploading icons manually.

Used by product directories, startup databases, and comparison sites that aggregate listings.

Browser extensions

Fetch logos for bookmarks, open tabs, or browsing history. Display recognizable site icons in dashboards, tab managers, or productivity tools.

Used by tab managers, bookmark organizers, and productivity extensions that display site metadata.