Favicon Fetcher

Find favicons and fetch them fast.

Endpoints

PathReturnsDescription
/text/:urlTextFavicon URL as plain text
/blob/:urlImageFavicon image binary
/list/:urlJSONAll favicon URLs found
/debug/:urlJSONDebug data from the fetch process

Examples

GET /text/https://github.com
→ https://github.githubassets.com/favicons/favicon.svg

GET /blob/https://github.com
→ (image binary)

GET /list/https://github.com
→ ["https://...", "https://...", ...]

GET /debug/https://github.com
→ { ... }

Try it: /text/https://wikipedia.org

Use as a package

import favicon from "@victr/favicon-fetcher"

const url = await favicon.text("https://github.com")
const img = await favicon.blob("https://github.com")
const all = await favicon.list("https://github.com")