Favicons-scraper
A fully-typed wrapper for the favicons scraper API
The API returns a list of the favicons from any domain you give it.
Node.js
If you want to implement a favicon scraper in your node (or bun) project, check out this scraper built in node. Its a full scraper instead of just a wrapper for an API. Node Scraper
Demo
www.FaviconScraper
Usage
import { getLogos } from 'favicons-scraper'
const url = 'https://facebook.com/user'
const urlLogos = await getLogos(url)
const domain = 'facebook.com'
const domainLogos = await getLogos(domain)
console.log(urlLogos)
console.log(domainLogos)
You can get the favicons from a specific device using the options.
const options = {
devices: 'mobile'
}
const domainLogos = await getLogos('web.dev', options)