favicon-api
View on GitHub ↗

Zero dependencies · Self-hosted

Any site's favicon.
One simple URL.

A small, secure Node.js API that discovers real favicons, rejects fake placeholders, and falls back when sites block bots.

GET https://boluo66.top/favimg/?url=github.com

Try it with any public website.

01 / resilient

Multi-source fallback

Discover the best icon in the page, try the conventional path, then use public fallback sources.

02 / trustworthy

Real-image validation

Reject HTML responses, 1×1 pixels, and known default placeholders before returning a result.

03 / safe

SSRF protection

Block private and reserved addresses, including redirect destinations, before every request.