F
Favicon.pub

Get Website Favicon Icons

Enter any website URL or domain to get its Favicon icon. Then enter the URL or domain:

Global Icon Fetching

Enter any website domain to quickly get its favicon icon, supports multiple sizes

API Interface

Provides a clean API interface for developers to call directly in projects

Fast Response

Global CDN acceleration ensures fast icon retrieval with short response times

Popular Websites
Click to quickly get icons for popular websites
Favicon Icon Fetching API Usage
Use the Favicon API in your projects

Direct Link

https://favicon.pub/youtube.com

Specify Size

https://favicon.pub/youtube.com?s=128

HTML Example

<img src="https://favicon.pub/youtube.com" alt="youtube.com favicon" />

JavaScript Example

// Get website icon
const getFavicon = (domain, size) => {
  const url = `/api/${domain}`;
  return size ? `${url}?s=${size}` : url;
};

// Usage example
const faviconUrl = getFavicon('youtube.com', 64);
console.log(faviconUrl);
Frequently Asked Questions

What is a Favicon?

Favicon (short for favorite icon) is a small icon displayed in browser tabs, bookmarks, and address bars to identify websites.

What image sizes are supported?

Our API supports multiple sizes, commonly used ones are: 16, 32, 64, 128, 256 pixels. You can specify the size using the s parameter.

Are there usage limits for the API?

Our API service is provided for free, but we recommend reasonable usage and avoiding excessive requests. For heavy usage, please contact us.

What if a website doesn't have a Favicon?

If the target website doesn't have a favicon set, the API will return a default generic icon.

Can I use this in commercial projects?

Yes, you can freely use this API in personal and commercial projects. When using our service, please keep a reference to favicon.pub.

How fast is the API response?

Our API servers are deployed across multiple global nodes, typically with response times between 100-500ms, ensuring fast icon retrieval.