# Favicon & App Icon Extractor: Bulk Domains to PNG Logos (`chivalrous_skyline_vtd/favicon-extractor`) Actor

Get every favicon, apple-touch-icon and web-manifest icon of any website in bulk, measure the real pixel size, pick the best one and save it as a ready-to-use PNG. Also returns og:image, theme color and site name. No start fee.

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

## Pricing

$2.00 / 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 & App Icon Extractor: Bulk Domains to PNG Logos

Paste a list of domains or URLs and get, for every website, **all the icons it declares** (favicon, `apple-touch-icon`, web-app manifest icons, Safari `mask-icon`, and the plain `/favicon.ico`), their **real pixel size**, and **the best one saved as a ready-to-use PNG**.

No login, no browser, plain HTTP. You pay only for websites where icons were found, and there is **no start fee**.

### What you get per website

| Field | Example |
|---|---|
| `best_icon_png_url` | Link to the largest icon, converted to PNG (ICO frames included) |
| `best_icon_url`, `best_icon_width`, `best_icon_format` | `https://python.org/static/apple-touch-icon-precomposed.png`, `144`, `PNG` |
| `icons` | Every icon found: URL, `rel`, declared `sizes`, MIME type, measured width/height and format |
| `site_name`, `title`, `theme_color`, `og_image`, `manifest_url` | Brand details from the page head |
| `final_url`, `status`, `error` | Where redirects ended, and why a site failed |

`status` is `ok`, `no_icon` (the page declares nothing and `/favicon.ico` is missing) or `error` (download failed, blocked by robots.txt, timed out).

### Why this one

- **Measures, not guesses.** Many sites declare `sizes="192x192"` on a 32 px file, or list icons that return 404. Icons are downloaded and the real dimensions are read, so `best_icon_*` is the largest icon that actually exists.
- **Reads the web-app manifest.** The 192 px and 512 px icons most sites ship only live in `site.webmanifest`. They are included.
- **ICO to PNG.** `favicon.ico` files often hold 16, 32 and 48 px frames. The largest frame is extracted and saved as PNG.
- **Bulk and polite.** Up to 5,000 websites per run, parallel downloads, robots.txt respected, private network addresses refused.

### Use cases

- Logos for a **CRM, lead list or directory**: add a small brand image next to every company domain.
- **Link previews and bookmarks**: show the right icon for each saved URL.
- **Brand monitoring**: watch for icon or theme color changes across many sites (schedule the Actor).
- **Data enrichment pipelines**: chain after any scraper that outputs domains.
- **AI agents (MCP)**: "get the logo of these companies" as a single tool call.

### Input

```json
{
  "urls": ["apify.com", "https://www.python.org/", "wikipedia.org"],
  "saveBestIconAsPng": true,
  "measureIcons": true,
  "maxConcurrency": 5
}
```

Turn `measureIcons` off for a faster run that only lists what the HTML declares (no sizes are measured, `/favicon.ico` is listed without checking it exists).

### Pricing

Pay per event: **$0.002 per website ($2 per 1,000 sites)**. One **site processed** charge per website that returned at least one icon. Websites that fail, are blocked or have no icon are listed in the output and **not charged**. There is no charge for starting the Actor.

### Output example

```json
{
  "url": "https://www.python.org/",
  "final_url": "https://www.python.org/",
  "status": "ok",
  "site_name": null,
  "title": "Welcome to Python.org",
  "theme_color": null,
  "best_icon_url": "https://www.python.org/static/apple-touch-icon-144x144-precomposed.png",
  "best_icon_width": 144,
  "best_icon_height": 144,
  "best_icon_format": "PNG",
  "best_icon_png_url": "https://api.apify.com/v2/key-value-stores/<store>/records/www-python-org-1a2b3c4d.png",
  "icon_count": 6,
  "icons": [{"url": "https://www.python.org/static/favicon.ico", "rel": "icon", "sizes": null, "type": "image/x-icon", "width": 32, "height": 32, "format": "ICO"}]
}
```

### FAQ

**Does it render JavaScript?** No. Icons are declared in the HTML head, which plain HTTP reads in a fraction of the time and cost of a browser.

**Why is a site `no_icon`?** It declares no `<link rel="icon">`, has no manifest icons and returns 404 for `/favicon.ico`.

**SVG icons?** They are listed with format `SVG`. The PNG file is made from the best raster icon.

### Related actors

- [Bulk Image Compressor & WebP / AVIF Converter](https://apify.com/chivalrous_skyline_vtd/bulk-image-optimizer): compress, resize and convert up to 2,000 images by URL.
- [AI Crawler Checker & GEO / AEO Audit](https://apify.com/chivalrous_skyline_vtd/ai-search-readiness-audit): check whether AI search engines can crawl and cite a site.
- [Duplicate & Similar Image Finder](https://apify.com/chivalrous_skyline_vtd/image-duplicate-finder): group exact and near-duplicate images with perceptual hashing.
- [Image Metadata Remover: EXIF, GPS & AI Prompt Stripper](https://apify.com/chivalrous_skyline_vtd/image-metadata-stripper): strip EXIF, GPS and embedded prompts from images.
- [Video Frame Extractor: MP4 to JPG/WebP, Scenes & Contact Sheet](https://apify.com/chivalrous_skyline_vtd/video-frame-extractor): still frames from video files at intervals, scene changes or exact timestamps.
- [Stable Diffusion Prompt Extractor](https://apify.com/chivalrous_skyline_vtd/sd-prompt-extractor): read prompts, seeds and settings embedded in AI images.
- [Japanese to Romaji, Hiragana & Furigana Converter](https://apify.com/chivalrous_skyline_vtd/japanese-furigana-romaji): readings for Japanese kanji text.
- [Japan Diet Parliament Debates & Speeches Search](https://apify.com/chivalrous_skyline_vtd/japan-diet-minutes): speeches from Japan's National Diet since 1947.

# Actor input Schema

## `urls` (type: `array`):

Domains (example.com) or full page URLs. One row per website in the output.

## `saveBestIconAsPng` (type: `boolean`):

Converts the largest raster icon (ICO frames included) to PNG and stores it in the run's key-value store. The link is in best_icon_png_url.

## `measureIcons` (type: `boolean`):

Downloads the icons to read their real width, height and format, and checks that /favicon.ico exists. Turn off for a faster run that only lists what the HTML declares.

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

How many websites are processed at the same time.

## Actor input object example

```json
{
  "urls": [
    "apify.com",
    "python.org",
    "wikipedia.org"
  ],
  "saveBestIconAsPng": true,
  "measureIcons": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Results in the run's default dataset.

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

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

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

```

## MCP server setup

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