# Favicon & Logo Extractor - Website Icons, Logos & Brand Images (`sonnguyenauctor/favicon-logo-extractor`) Actor

Get every favicon, apple-touch-icon, manifest icon, logo and social image of any website, with real sizes and broken icons checked. Bulk friendly. $1.50 per 1,000 websites, failed sites are free.

- **URL**: https://apify.com/sonnguyenauctor/favicon-logo-extractor.md
- **Developed by:** [HONG SON NGUYEN](https://apify.com/sonnguyenauctor) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 website processeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Favicon & Logo Extractor - Website Icons, Logos & Brand Images

Give it a list of websites and get back every icon each site declares, the best (largest) one, the favicon, the Apple touch icon, the Safari mask icon, the web-app manifest icons, the brand logo and the social share images. Every icon is checked: real width and height, format, file size and whether the link actually works.

Fast, no browser needed, and cheap: **$1.50 per 1,000 websites**.

### What does Favicon & Logo Extractor do?

For each website the Actor loads the home page and collects:

- **All declared icons**: `<link rel="icon">`, `shortcut icon`, `apple-touch-icon`, `mask-icon`, Windows tile image.
- **Web app manifest icons** (`site.webmanifest` / `manifest.json`), plus the app name and theme color.
- **The default `/favicon.ico`** when it exists but isn't declared.
- **Best icon**: the largest working icon (SVG preferred), ready to use as a logo thumbnail.
- **Brand logo** from schema.org JSON-LD or from the logo image in the site header.
- **Social images**: Open Graph (`og:image`) and Twitter card image.
- **Brand details**: site name, page title, theme color, mask icon color.

With **Check icons** on, each icon is downloaded and verified: HTTP status, content type, real pixel size (including inside `.ico` files), format and bytes. Broken icons are flagged with `ok: false`.

### Who is it for?

- **SaaS and app builders** showing company logos next to links, contacts or integrations.
- **Sales and lead-gen teams** enriching company lists with logos for CRMs and dashboards.
- **SEO and web agencies** auditing favicons, touch icons and manifests across many client sites.
- **Designers and researchers** collecting brand assets and colors in bulk.

### Why use it?

- **Real sizes, not guesses**: icons are measured, so you can pick a 180x180 or 512x512 image with confidence.
- **Broken icons detected** before you show them to users.
- **One row per website** with the most useful URLs up front and the full icon list attached.
- **Only pay for websites that loaded.** Unreachable sites, errors and non-HTML pages are free.

### How much does it cost?

Pay-per-event pricing: **$0.0015 per website processed** ($1.50 per 1,000 websites), plus a tiny start fee per run. No extra platform usage costs.

| Websites | Price |
| --- | --- |
| 100 | $0.15 |
| 1,000 | $1.50 |
| 10,000 | $15.00 |

Websites that fail to load are **not charged**. You can set a maximum cost per run and the Actor stops cleanly when it is reached.

### How to use it

1. Click **Try for free**.
2. Paste websites or domains into **Websites** (one per line, or upload a .txt file). `apify.com`, `www.apify.com` and `https://apify.com` all work.
3. Keep **Check icons** on for real sizes, or turn it off for maximum speed.
4. Click **Start**, then download the results as JSON, CSV or Excel, or use the API.

### Input

| Field | What it does | Default |
| --- | --- | --- |
| `websites` | Websites or domains | required |
| `verifyIcons` | Download icons to check size, format and broken links | `true` |
| `includeLogo` | Find the brand logo (JSON-LD or header image) | `true` |
| `includeSocialImages` | Add og:image and Twitter image | `true` |
| `requestTimeoutSecs` | Timeout per website | `20` |
| `maxConcurrency` | Websites checked at the same time | `10` |

Example input:

```json
{
    "websites": [
        { "url": "apify.com" },
        { "url": "https://github.com" }
    ],
    "verifyIcons": true
}
```

### Output

One row per website. Example (icon list shortened):

```json
{
    "url": "https://www.example.com/",
    "finalUrl": "https://www.example.com/",
    "domain": "www.example.com",
    "status": "OK",
    "siteName": "Acme",
    "title": "Acme Tools - Home",
    "bestIconUrl": "https://www.example.com/icon-512.png",
    "bestIconSize": "512x512",
    "faviconUrl": "https://www.example.com/favicon.ico",
    "appleTouchIconUrl": "https://www.example.com/apple-touch-icon.png",
    "maskIconUrl": "https://www.example.com/mask.svg",
    "maskIconColor": "#5bbad5",
    "manifestUrl": "https://www.example.com/site.webmanifest",
    "themeColor": "#123456",
    "logoUrl": "https://www.example.com/logo.png",
    "logoSource": "img",
    "ogImageUrl": "https://www.example.com/og.png",
    "twitterImageUrl": null,
    "iconCount": 5,
    "icons": [
        { "url": "https://www.example.com/favicon.ico", "rel": "icon", "sizes": "32x32", "type": "image/vnd.microsoft.icon", "width": 32, "height": 32, "format": "ico", "bytes": 233, "ok": true, "httpStatus": 200 },
        { "url": "https://www.example.com/missing-192.png", "rel": "manifest", "sizes": "192x192", "width": 192, "height": 192, "ok": false, "httpStatus": 404 }
    ]
}
```

A website that could not be loaded is reported like this and not charged:

```json
{ "url": "https://does-not-exist.example/", "status": "ERROR", "error": "Domain not found (DNS)" }
```

The run also saves a `SUMMARY` record in the key-value store with websites processed, failed and total icons found.

### Integrations and API

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('sonnguyenauctor/favicon-logo-extractor').call({
    websites: [{ url: 'apify.com' }, { url: 'github.com' }],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((i) => console.log(i.domain, i.bestIconUrl));
```

Works with Make, Zapier, n8n, Google Sheets and AI agents through the Apify MCP server.

### Limitations

- The Actor reads the home page HTML. Icons added only by JavaScript after the page loads may be missed.
- Some websites block automated requests (for example behind strict bot protection). These are reported as errors and not charged.
- The logo finder uses schema.org data and header images; on unusual layouts it can return no logo or pick a different image.
- Inline SVG logos (drawn in the HTML, not linked as a file) are not returned as URLs.

### FAQ

**Do I pay for a website with no icons?** Yes, if the page loaded it is charged, but `iconCount` will be 0 so you can filter it.

**Which icon should I use as a company logo?** `bestIconUrl` (largest working icon) is a good square thumbnail; `logoUrl` is the wide brand logo when one is found.

**Can I give full page URLs instead of domains?** Yes. The Actor loads exactly the URL you give.

Found a bug or need a feature? Open an issue on the **Issues** tab and include the run link.

# Actor input Schema

## `websites` (type: `array`):

Websites or domains to check, e.g. apify.com or https://www.example.com. Paste many at once or upload a text file with one per line.

## `verifyIcons` (type: `boolean`):

Download each icon to confirm it works and read its real width, height, format and file size. Turn off for a faster run that only reads the HTML.

## `includeLogo` (type: `boolean`):

Look for the brand logo in JSON-LD (schema.org) and in header images.

## `includeSocialImages` (type: `boolean`):

Add the Open Graph (og:image) and Twitter card images.

## `requestTimeoutSecs` (type: `integer`):

How long to wait for each website. Websites that time out are not charged.

## `maxConcurrency` (type: `integer`):

How many websites are checked at the same time.

## Actor input object example

```json
{
  "websites": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://github.com"
    }
  ],
  "verifyIcons": true,
  "includeLogo": true,
  "includeSocialImages": true,
  "requestTimeoutSecs": 20,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `results` (type: `string`):

One row per website with its best icon, favicon, apple-touch-icon, logo, social images and the full icon list.

## `summary` (type: `string`):

Totals for the run: websites processed and failed, icons found.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "websites": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://github.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sonnguyenauctor/favicon-logo-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "websites": [
        { "url": "https://apify.com" },
        { "url": "https://github.com" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("sonnguyenauctor/favicon-logo-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "websites": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://github.com"
    }
  ]
}' |
apify call sonnguyenauctor/favicon-logo-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sonnguyenauctor/favicon-logo-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pKNRS3tHx4z61pU6t/builds/PyfqxrbhT7cPAkKhG/openapi.json
