Get the favicon for a website either as image or base64 from the website URL.
- Run Docker image sboulema/faviconapi
- Go to
{{host}}
to test the api using Swagger
- url (string): URL of the website you want to get the favicon from
- base64 (bool): Favicon is returned as image by default, this switches output to base64 data url
The API will try to fetch the website favicon with the following methods in order.
- Check
link[contains(@rel, 'apple-touch-icon')]
- Check
link[contains(@rel, 'icon')]
- Check
favicon.ico