mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-04-28 17:44:53 +08:00
84dfd3b60b3acfcb1ac3404650faf26ac98cc205
Favicon Grabber 
Favicon Grabber is an online service to grab favicons from any domain.
API
Favicon Grabber API is simple and has the one endpoint. For instance, to grab favicons from digitalocean.com open http://favicongrabber.com/api/grab/digitalocean.com in your favorite browser.
Example Using
Find all icons with /apple/ mask in src property:
fetch('http://favicongrabber.com/api/grab/udemy.com')
.then(response => response.json())
.then(({ icons }) => icons.filter(({ src }) => /apple/.test(src)))
.then(icons => icons.forEach(icon => console.log(icon)));
For the full description, please see Service API reference.
License
The code is available under the MIT License.
Languages
JavaScript
66.4%
SCSS
21.7%
Pug
10%
Mustache
1.9%