DDiwigo API

Favicon API

The favicon of any website, as an image file or as Base64 text to embed directly in HTML or CSS.

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

ParameterDescription
keyYour API key (required)
domainDomain name, without www or protocol
typebase64 to get Base64 text instead of the image

Code examples

cURL
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com" -o result
HTML
<img src="https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com" alt="Favicon">
JavaScript
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
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&domain=google.com");
file_put_contents("result", $response);
Python
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.