# Favicon Extractor – Bulk Favicon, Apple Touch & Website Icons (`gazidev/favicon-extractor`) Actor

Get every icon a website declares, in bulk: favicon.ico, PNG/SVG favicons, apple-touch icons, manifest icons and mask icons with sizes and types, plus the best icon per site. Optional download as PNG or ICO in standard sizes, or as Base64 data URIs. Robots respected. $0.50 per 1,000 sites.

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

## Pricing

from $0.50 / 1,000 site checkeds

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 Extractor – Bulk Favicon, Apple Touch & Website Icons

Paste a list of websites and get **every icon each site declares**: `favicon.ico`, PNG and SVG favicons, apple-touch icons, web app manifest icons, the Safari mask icon and `msapplication-TileImage`, each with its declared `sizes`, `type` and `purpose`, and the **real pixel size, file size and type** checked on the file itself. You also get the **best icon per site**, picked for you.

Optionally the Actor **downloads and converts** the icons: square PNGs in the sizes you want (16, 32, 48, 180, 192, 512…), a multi-size `.ico`, the original file, and **Base64 data URIs** ready to paste into HTML or CSS.

Everything is read from the site itself (its homepage, its `site.webmanifest` and `/favicon.ico`). No Google favicon service, no third-party icon CDN. robots.txt is respected. **$0.50 per 1,000 sites.**

### Use cases

- **SaaS, CRM and lead lists:** show a company icon next to each domain (Clay, n8n, Make, Zapier, your own app).
- **Browser extensions, bookmark managers, link previews and directories:** a clean square icon per site, in the size you need.
- **Favicon audits:** which sites have no favicon, a broken apple-touch icon, a dead manifest icon or only a 16 px `.ico`.
- **Design and data teams:** all icon variants of a site in one row, with sizes checked instead of trusted.

### Input

| Field | Default | Notes |
|---|---|---|
| `domains` | apify.com, github.com, stripe.com, wikipedia.org | One per line. Domains, URLs or email addresses (the host is used). |
| `bulkText` | – | Paste many sites at once (new lines, spaces, commas). |
| `datasetId` / `datasetField` | – / `domain` | Read sites from another Actor's dataset. |
| `downloadIcons` | `none` | `none` (URLs only), `best` (best icon per site) or `all` (every reachable icon, up to 20 per site). |
| `outputFormats` | `["original"]` | `original`, `png`, `ico`. Used only when downloading. |
| `pngSizes` | `[32, 180, 512]` | Square PNG sizes. Sizes bigger than the source are skipped (and free) unless `allowUpscale` is on. |
| `dataUri` | `false` | Add a `data:image/...;base64,` string to each saved file of 64 KB or less. |
| `verifyIcons` | `true` | Fetch the first 16 KB of each icon: is it alive, what is its real type, pixel size and file size. |
| `includeManifest` | `true` | Read icons, name and theme color from the web app manifest. |
| `maxConcurrency` | 20 | Sites processed in parallel. |
| `requestTimeoutSecs` | 15 | Per request. |
| `maxSites` | – | Optional cap. |

Example: best icon of each site as a 32 px and 180 px PNG plus a data URI:

```json
{
  "domains": ["stripe.com", "notion.so", "figma.com"],
  "downloadIcons": "best",
  "outputFormats": ["png"],
  "pngSizes": [32, 180],
  "dataUri": true
}
```

### Output (one row per site)

```json
{
  "input": "stripe.com",
  "domain": "stripe.com",
  "finalUrl": "https://stripe.com/",
  "status": "found",
  "bestIconUrl": "https://images.stripeassets.com/.../favicon.png?w=180&h=180",
  "bestIconSize": "180x180",
  "faviconIcoUrl": "https://assets.stripeassets.com/.../favicon.ico",
  "appleTouchIconUrl": "https://images.stripeassets.com/.../favicon.png?w=180&h=180",
  "maskIcon": null,
  "themeColor": null,
  "siteName": "Stripe | Financial Infrastructure to Grow Your Revenue",
  "iconCount": 5,
  "icons": [
    {"url": "https://images.stripeassets.com/.../favicon.svg", "rel": "icon", "sizes": null, "type": "image/svg+xml",
     "purpose": null, "source": "link", "ok": true, "width": 512, "height": 512, "bytes": 412},
    {"url": "https://images.stripeassets.com/.../favicon.png?w=96&h=96", "rel": "icon", "sizes": "96x96",
     "type": "image/png", "purpose": null, "source": "link", "ok": true, "width": 96, "height": 96, "bytes": 1487},
    {"url": "https://stripe.com/favicon.ico", "rel": "icon", "sizes": null, "type": "image/vnd.microsoft.icon",
     "purpose": null, "source": "fallback", "ok": true, "width": 48, "height": 48, "bytes": 15086}
  ],
  "savedFiles": [],
  "notes": [],
  "blockedBy": null,
  "error": null,
  "checkedAt": "2026-11-12T19:43:46+00:00"
}
```

- `status`: `found` (charged), `no_icon`, `blocked`, `failed` or `invalid` (all free).
- `icons[].source`: `link` (a `<link rel=...>` tag), `manifest` (web app manifest), `meta` (`msapplication-TileImage`) or `fallback` (`/favicon.ico` that answers although the page does not declare it).
- `icons[].ok`: `true` = answers with a real image, `false` = dead or not an image, `null` = not checked (checks off, or the icon's host disallows us in robots.txt).
- `width`/`height` are read from the file's own header (PNG, ICO, GIF, JPEG, WebP, SVG `width`/`viewBox`). For an `.ico` it is the largest image inside.
- **Best icon:** reachable, not monochrome, raster before SVG, `purpose: any` before maskable, then the largest real size, PNG first, square first.
- `savedFiles[]` (when downloading): `{format, size, bytes, key, kvUrl, sourceUrl, dataUri, icoSizes}`. Files are in the run's key-value store.
- `blockedBy`: `robots`, `bot-protection` (a bot wall such as Cloudflare answered) or `http-403`/`http-401`/`http-429`… The Actor never reports "no favicon" for a site it could not read.
- The run summary is saved as `OUTPUT` in the key-value store.

### Pricing

Pay per event:

| Event | Price | When |
|---|---|---|
| `site-checked` | **$0.0005** ($0.50 per 1,000) | A site answered and at least one icon was found |
| `icon-file-saved` | $0.0003 | Each file stored in the key-value store (only with `downloadIcons` = `best`/`all`) |
| Actor start | $0.00005 | Once per run |

Free: sites with no icon, robots-blocked or bot-protected sites, DNS failures, timeouts, invalid input, PNG sizes skipped to avoid upscaling. Set a maximum total charge on the run and the Actor stops cleanly when it is reached.

Compared with other favicon Actors in the Store (prices as listed on 12 Nov 2026): benthepythondev/favicon-extractor charges $0.001 per row plus a $0.005 start fee; perryay/favicon-downloader-converter $0.01 per download; mahogany_songbird/favicon-url-extractor $0.002 per row.

### Limits (please read)

- **Static fetch, no browser.** Icons that JavaScript adds after the page loads are not seen. Almost every site declares its icons in the HTML `<head>`, so this rarely matters.
- **Only the homepage** of each domain is read (apex over https, then www, then http), plus the manifest and `/favicon.ico`.
- Sites behind bot protection (Cloudflare challenge, DataDome…) or that answer 403 to automated clients are reported as `blocked`, free. The Actor does not try to get around blocks and uses no proxy. Run from Apify's servers, a few more sites may block than from a home connection.
- SVG icons are returned and can be saved as originals, but are **not rasterised** to PNG/ICO.
- At most 25 icons per site are checked and 20 downloaded with `all`. Each saved file is at most 2 MB.
- **Icons are trademarks of their owners.** The Actor returns URLs by default; you are responsible for how you use downloaded icons.

### Fair use

- robots.txt is respected for our user agent `favicon-extractor`, including for icons hosted on CDNs, and Crawl-delay is honoured. Requests to one host are spaced at least 0.2 s apart.
- Requests to private or internal network addresses are refused.
- User agent: `favicon-extractor/0.1 (+https://apify.com/gazidev/favicon-extractor)`.

### Use with AI agents (Apify MCP)

Add the Actor to an MCP client (Claude, Cursor, VS Code) through the [Apify MCP server](https://mcp.apify.com) as `gazidev/favicon-extractor`, then ask for example: *"Get the best favicon URL and its size for these 50 domains"*. You can also call it from the Apify API, n8n, Make or Zapier with the input above and read the dataset.

### FAQ

**How is this different from Google's favicon service?** Google's `s2/favicons` returns one resized image from Google's cache. This Actor reads the site's own declarations and returns every variant with real sizes, so you can pick a sharp 180 or 512 px icon.

**Why is `bestIconUrl` an apple-touch icon?** It is usually the sharpest square icon a site has. If you need the classic favicon, use `faviconIcoUrl` or filter `icons` by `rel`.

**Why are some declared icons `ok: false`?** The site's HTML points at files that no longer exist. That is real, and useful for audits.

**Can I get exactly 32×32 PNGs for every site?** Yes: `downloadIcons: "best"`, `outputFormats: ["png"]`, `pngSizes: [32]`.

# Actor input Schema

## `domains` (type: `array`):

One per line. A bare domain (`stripe.com`), a full URL or an email address all work; the host is used and its homepage is read. Duplicates are skipped. Invalid entries get a free error row.

## `bulkText` (type: `string`):

Optional: paste many domains or URLs at once, separated by new lines, spaces, commas or semicolons. Added to the list above.

## `datasetId` (type: `string`):

Optional: an Apify dataset (for example another Actor's output) to read websites from.

## `datasetField` (type: `string`):

Field holding the domain or URL in that dataset. If it is empty for an item, `domain`, `url`, `website`, `websiteUrl` or `homepage` is tried.

## `downloadIcons` (type: `string`):

`none`: URLs only (cheapest). `best`: save the best icon of each site to the run's key-value store. `all`: save every reachable icon (up to 20 per site). Each stored file is charged as `icon-file-saved`. Icons can be trademarks: you are responsible for how you use them.

## `outputFormats` (type: `array`):

Used only when icons are downloaded. `original`: the file as served. `png`: square PNGs in the sizes below. `ico`: one multi-size .ico (16, 32, 48… up to the source size). SVG icons are saved as originals only.

## `pngSizes` (type: `array`):

Square sizes for PNG output, e.g. 16, 32, 48, 180, 192, 512. Sizes larger than the source icon are skipped (not charged) unless upscaling is on.

## `allowUpscale` (type: `boolean`):

Make PNG sizes larger than the source icon anyway (they will look blurry).

## `dataUri` (type: `boolean`):

Add a `data:image/...;base64,` string to each saved file of 64 KB or less, ready to paste into HTML, CSS or a spreadsheet.

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

Fetch the first 16 KB of each icon to confirm it answers, read its real type, pixel size and file size. Turn off for declared URLs only (faster; `ok` is then null).

## `includeManifest` (type: `boolean`):

Also read the icons, name and theme color from the site's `manifest.json` / `site.webmanifest` when the homepage declares one.

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

How many sites are processed at the same time. Requests to one host are always spaced out.

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

Timeout for each HTTP request. Dead sites are free, but slow ones hold a worker this long.

## `maxSites` (type: `integer`):

Process at most this many sites. Leave empty for no limit.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "stripe.com",
    "wikipedia.org"
  ],
  "datasetField": "domain",
  "downloadIcons": "none",
  "outputFormats": [
    "original"
  ],
  "pngSizes": [
    32,
    180,
    512
  ],
  "allowUpscale": false,
  "dataUri": false,
  "verifyIcons": true,
  "includeManifest": true,
  "maxConcurrency": 20,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `allIcons` (type: `string`):

No description

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

No description

## `files` (type: `string`):

No description

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

No description

# 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 = {
    "domains": [
        "apify.com",
        "github.com",
        "stripe.com",
        "wikipedia.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/favicon-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 = { "domains": [
        "apify.com",
        "github.com",
        "stripe.com",
        "wikipedia.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/favicon-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 '{
  "domains": [
    "apify.com",
    "github.com",
    "stripe.com",
    "wikipedia.org"
  ]
}' |
apify call gazidev/favicon-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/favicon-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/calDDPkMaqSFZsz3x/builds/TBzjDTLEIoIs9Zhxv/openapi.json
