What is it?
The Diwigo favicon API returns the favicon of any website as an image, or as Base64 text to embed in HTML or CSS.
It answers with Image file or Base64 text and is included in the free plan: 10,000 requests per API key and per month.
Example request
GET https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
domain | Domain name, without www or protocol |
type | base64 to get Base64 text instead of the image |
Code examples
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com" -o result
<img src="https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com" alt="Favicon">
const img = new Image();
img.src = "https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com";
img.alt = "Favicon";
document.body.append(img);
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com");
file_put_contents("result", $response);
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com")
open("result", "wb").write(response.content)
Use cases
- Show site icons next to links
- Bookmark managers and dashboards
- Directories and link lists
Favicon: questions and answers
What does the Favicon API do?
The Diwigo favicon API returns the favicon of any website as an image, or as Base64 text to embed in HTML or CSS.
How do I call the Favicon API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com with your own API key instead of YOUR_API_KEY. It answers with Image file or Base64 text.
Is the Favicon API free?
Yes, it is included in the free plan: 10,000 requests per API key and per calendar month, shared by all Diwigo endpoints. Higher limits are available on request.