# Favicon and Brand Assets Extractor \[USD 1.2/1K sites] (`usefulapi/favicon-logo-extractor`) Actor

Get the favicon, apple-touch-icon, logo and brand colours of any website, in bulk. Every declared icon is fetched and verified (real format and pixel size from the file, broken links flagged), plus the web app manifest, theme colours and the best icon per use. Optional file download with a ZIP.

- **URL**: https://apify.com/usefulapi/favicon-logo-extractor.md
- **Developed by:** [Useful API](https://apify.com/usefulapi) (community)
- **Categories:** Developer tools, SEO 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

from $1.20 / 1,000 site with icons or brand data

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 and Brand Assets Extractor

Get the **favicon, apple-touch-icon, logo and brand colours** of any website, in bulk. Paste a list of domains and get one row per site, with every icon the page declares **fetched and checked**: the real file format and pixel size read from the file itself, broken links flagged, and the best icon picked for each use.

Most favicon tools list the `<link>` tags a page declares. This one also opens each file, so you know which ones actually work and what they really are.

### What you get for each site

- **Every icon, verified**: `link rel="icon"`, `shortcut icon`, `apple-touch-icon` (and the precomposed form), `mask-icon` (with its colour), `fluid-icon`, `msapplication-TileImage`, the icons in the web app manifest (with their `sizes` and `purpose`), `browserconfig.xml` tiles, and the `/favicon.ico` and `/apple-touch-icon.png` files browsers and iOS request on their own.
- **Real format and size**: PNG, GIF, JPEG, WebP, AVIF, BMP, SVG and ICO are recognised from the first bytes of the file, not from the file name or the `Content-Type` header. An `.ico` that holds 16, 32 and 48 pixel images lists all three. SVG is marked as vector. PNG transparency is reported.
- **Broken links and fakes**: a declared icon that answers 404, times out, or returns an HTML page instead of an image (a common single-page-app mistake) gets its own status. A size declared as `180x180` that is really `57x57` is reported.
- **Best icon per use**: `browserTab`, `appleTouch`, `largestSquare`, and a `vectorIcon` when an SVG exists. Each pick says why it was chosen.
- **Logo candidates**: the organization logo from the page's JSON-LD structured data, logo images in the header or navigation, other images named or classed "logo", then `og:image` and `twitter:image`. The best guess comes with a plain-language reason, and a share image is labelled as one.
- **Brand colours**: `theme-color` (including dark and light variants), the manifest's `theme_color` and `background_color`, the mask-icon colour and the Windows `TileColor`, as hex codes.
- **Web app manifest**: name, short name, display mode and icon count.
- **Issues in plain words**: no apple-touch-icon, no manifest, an icon below 32 pixels, no 512 pixel manifest icon, broken declared icons.
- **Optional file download**: the chosen browser tab icon, apple-touch-icon, largest square icon and logo, saved to the run's storage with a link to one ZIP of all of them.

### Polite and honest

- The homepage is requested once after reading `robots.txt` (every host the page redirects through is checked too). Sites that disallow it get the status `blocked_by_robots` and nothing else is fetched. The robots.txt group name is `favicon-logo-extractor`; the `*` group applies otherwise.
- At most 2 requests at the same time to any one host.
- Private, loopback and cloud-metadata addresses are never fetched, whether typed in or reached by a redirect.
- A site that answers with a bot check page is marked `blocked`; only its standard icon files are then checked, and no tricks are used to get past the check.

### Input

| Field | What it does |
|---|---|
| `domains` | Domains or URLs, one per line. A domain is read on its homepage; a full URL is read on that page. Duplicates are dropped. |
| `downloadAssets` | Off by default. Saves up to 4 files per site (browser tab icon, apple-touch-icon, largest square icon, logo, 2 MB each) to the run's key-value store as `assets__<site>__<role>.<ext>`. |
| `maxSites` | Stop after this many sites. |

Example:

```json
{
  "domains": ["github.com", "allbirds.com", "wordpress.org"],
  "downloadAssets": false
}
```

### Output

One row per site. Main fields:

- `status`: `ok`, `blocked_by_robots`, `blocked` (bot check), `http_error`, `not_html`, `unreachable`, `dns_not_found` or `invalid_input`, with `error` explaining it.
- `finalUrl`, `title`, `siteName`.
- `icons`: for each icon `url`, `kind`, `declaredIn`, `declaredSizes`, `status` (`ok`, `not_found`, `wrong_type`, `unreachable` ...), `format`, `width`, `height`, `sizes` (for ICO), `vector`, `hasAlpha`, `bytes`, `sizeMismatch`.
- `best`: `browserTab`, `appleTouch`, `largestSquare`, `vectorIcon`, `logo`, each with a `reason`.
- `logoCandidates`, `colors` (`brand` and `all`), `manifest`, `issues`, `iconsFound`, `iconsDeclared`, `iconsBroken`.
- With saving on: `assets` (key, link, format, size of each saved file).
- `billedAs`: the events this row was billed.

Run summary (`OUTPUT` record in the key-value store): counts per status, events billed, megabytes downloaded, and with saving on `filesZipUrl`, a link that downloads every saved file as one ZIP and works without a login for 7 days. Saved files are kept in their own store, separate from your input list, so a forwarded link shows only the files. Unnamed storage expires after 7 days: download the ZIP within 7 days.

### Price

Pay per event, no subscription. See the Pricing tab for the current prices:

- a small **run start** fee;
- **per site** where an icon, logo or colour was found (the main price);
- a much smaller price for a site where nothing was found (dead domain, bot wall, closed by robots.txt);
- **per saved file**, only when saving is switched on.

You can set a maximum cost per run; the Actor stops cleanly before passing it and keeps every row it already wrote.

### Good to know

- Only what the homepage declares is read: icons added by JavaScript after the page loads are not seen, and no browser is run.
- Logo detection is a guess from what the page declares; the `reason` field says what it is based on.
- One page and at most 24 files are fetched per site; icons are read up to 128 KB (enough to know the size of any format).

# Actor input Schema

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

One per line: example.com, www.example.com or a full URL such as https://example.com/shop. Each is checked on its homepage (or the page you give). Duplicates are dropped.

## `downloadAssets` (type: `boolean`):

Saves the chosen browser tab icon, apple-touch-icon, largest square icon and logo of each site into the run's key-value store as assets\_\_<site>\_\_<role>.<ext>, and puts a link to one ZIP of all of them in the OUTPUT record. Up to 4 files per site, 2 MB each. Unnamed storage expires after 7 days: download the ZIP within 7 days.

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

Stop after this many sites (the rest of the list is ignored). Leave empty for all.

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "allbirds.com",
    "wordpress.org"
  ],
  "downloadAssets": false
}
```

# Actor output Schema

## `sites` (type: `string`):

No description

## `icons` (type: `string`):

No description

## `brand` (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": [
        "github.com",
        "allbirds.com",
        "wordpress.org"
    ]
};

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

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

```

## MCP server setup

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