# Favicon & Brand Asset Extractor (`dojito/favicon-brand-asset-extractor`) Actor

Get favicon, best icon (real size and format), apple-touch-icon, manifest icons, og:image, theme color and site name for any list of domains. URLs only, one row per site. $1.50 per 1,000 sites with assets found; failed and empty sites free. Obeys robots.txt.

- **URL**: https://apify.com/dojito/favicon-brand-asset-extractor.md
- **Developed by:** [Dongjin Kim](https://apify.com/dojito) (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

from $1.20 / 1,000 website with brand assets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 & Brand Asset Extractor** gives you the **URLs of a website's favicon and brand assets** — every declared icon, the **best (largest) icon with its real width, height and format**, the **apple-touch-icon**, the Safari **mask icon**, the **web app manifest icons**, the **og:image** share picture, the **theme color** and the **site name** — from a list of domains, one row per website.

Use it to put logos next to companies in a CRM, a lead list, a directory or a dashboard, without opening each site by hand. **URLs only:** the actor never stores or re-publishes logo files (see *Responsible use*).

### How to use

1. Click **Start** — the input is prefilled with three websites (python.org, github.com, wikipedia.org), so you see real rows in a few seconds (3 rows ≈ $0.0045 on the Free plan).
2. Replace them with your own list: one domain or URL per line (`example.com`, `https://shop.example.com/`). Paste hundreds or thousands; duplicates are removed.
3. Leave **Check the best icon** on to get the real pixel size and format of `bestIcon` (the file is read, measured and dropped). Turn it off for a faster run that reports the icon as the page declares it.
4. Set **Max websites** to cap the run, then click **Start**.
5. Open the **Output** tab: the **Brand assets** table shows the best icon as a picture next to each domain (export as JSON, CSV or Excel). A second view lists every declared icon on its own line.

**Polite by design:** robots.txt, then at most **4 requests per website** (home page, its manifest, icon checks; the home page alone is retried once after a 429 / 5xx answer), about one request per second per host. Identifies itself, never logs in, no proxies, no CAPTCHA solving, no browser.

### What you get

One row per website. This row is from a real run on 2026-11-16 UTC (github.com; 9 of its 11 manifest icons left out):

```json
{
  "input": "github.com",
  "domain": "github.com",
  "finalUrl": "https://github.com/",
  "status": "ok",
  "siteName": "GitHub",
  "bestIcon": {"url": "https://github.githubassets.com/assets/app-icon-512-7f9c4ff2e960.png", "rel": "manifest", "width": 512, "height": 512, "format": "png", "bytes": 9825, "verified": true, "unverifiedReason": null, "source": "manifest"},
  "appleTouchIcon": null,
  "maskIcon": {"url": "https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg", "color": "#000000"},
  "ogImage": "https://images.ctfassets.net/8aevphvgewt8/76epZKB2wF998m4e4bLLXn/c505f20b00ec70b88b1be5aec42c4be4/OG_image.jpg",
  "themeColor": "#1e2327",
  "manifestUrl": "https://github.com/manifest.json",
  "icons": [
    {"url": "https://github.com/fluidicon.png", "rel": "fluid-icon", "sizes": null, "type": null},
    {"url": "https://github.githubassets.com/favicons/favicon.png", "rel": "icon", "sizes": null, "type": "image/png"},
    {"url": "https://github.githubassets.com/favicons/favicon.svg", "rel": "icon", "sizes": null, "type": "image/svg+xml"}
  ],
  "manifestIcons": [
    {"url": "https://github.githubassets.com/assets/app-icon-192-bcc967ab9829.png", "sizes": "192x192", "type": "image/png", "purpose": null},
    {"url": "https://github.githubassets.com/assets/app-icon-512-7f9c4ff2e960.png", "sizes": "512x512", "type": "image/png", "purpose": null}
  ],
  "error": null,
  "checkedAt": "2026-11-16T00:33:40+00:00"
}
```

The same run (10 domains): **python.org** — 144x144 PNG apple-touch icon, 7 declared icons; **wikipedia.org** — 160x160 PNG; **web.dev** — 512x512 PNG from the web app manifest (8 manifest icons), theme color `#3740ff`; **mozilla.org** — 196x196 PNG; **apple.com** and **info.cern.ch** — no icon declared, `/favicon.ico` found (64x64 and 16x16 ICO); **example.com** — nothing declared and no `/favicon.ico` (`no_assets_found`, free); **yelp.com** — robots.txt disallows (free); a domain that does not exist — `dns_error` (free).

| Field | Meaning |
|---|---|
| `input` / `domain` / `finalUrl` | `input` is exactly what you typed (match rows to your list with it); `domain` is the host after redirects, without `www.`; `finalUrl` is the page that was read. |
| `status` | `ok` = a `bestIcon` or an `ogImage` URL is returned — the only charged status; `no_assets_found`; or why the site could not be read (see *Free rows*). |
| `siteName` | `og:site_name`, else `application-name`, else the manifest `name`, else the page `<title>`. |
| `bestIcon` | `{url, rel, width, height, format, bytes, verified, unverifiedReason, source}`. The top-ranked icon (largest declared size; a scalable SVG counts as 192 px, so a declared 192 px or larger PNG comes first). With **Check the best icon** on, the file is fetched (up to 1 MB) and `width`, `height`, `format` (`png`, `ico`, `svg`, `jpeg`, `gif`, `webp`, `bmp`, `avif`) are read from the file itself, `verified: true`; for an ICO file, the largest image inside it. If that file is missing (404) or is not an image, it is dropped and the next icon is tried. `verified: false` = taken from the page's declaration without fetching (size `null` if the page did not declare one); `unverifiedReason` says why — checking was off, the icon host's robots.txt disallows it, a network error, a 401 / 403 / 429 / 5xx answer, over 1 MB, or the 4-request budget was used. `source`: `html`, `manifest`, or `default` (`/favicon.ico` that no page tag declares). |
| `appleTouchIcon` | URL of the largest `apple-touch-icon` (or `-precomposed`). Usually a 180x180 PNG on a solid background — a good square logo. |
| `maskIcon` | Safari pinned-tab icon `{url, color}` (a one-colour SVG). |
| `ogImage` | The `og:image` share picture (often a wide banner with the logo). Not fetched. |
| `themeColor` | `<meta name="theme-color">` (the light / default one), else the manifest `theme_color`. Often the brand colour. |
| `manifestUrl` / `manifestIcons` | The web app manifest and its icons `[{url, sizes, type, purpose}]` (`purpose: maskable` icons have extra padding; `monochrome` ones are never picked as `bestIcon`). |
| `icons` | Every `<link rel="icon">`, `shortcut icon`, `apple-touch-icon`, `fluid-icon` and `msapplication-TileImage` on the page `[{url, rel, sizes, type}]`, absolute URLs. |
| `error` | Why the row has no assets (free rows), else `null`. |
| `checkedAt` | When the site was read (UTC). |

### Use cases

- **CRM and lead lists** — add a logo column to companies by domain, for import into CRMs and databases such as HubSpot, Salesforce, Airtable or Notion.
- **Directories and marketplaces** — show each listed site's icon and brand colour without asking owners to upload one.
- **Dashboards and link previews** — favicon + og:image + theme colour for any list of URLs.
- **Website audits** — which of your client sites have no favicon, no apple-touch-icon or no manifest, or declare an icon that is missing (with **Check the best icon** on: it is listed in `icons` but `bestIcon` is a different file or `null`)?

### Input

| Field | What it does |
|---|---|
| `domains` | Domains (`python.org`) or URLs. A domain is read at `https://<domain>/` — and at `http://<domain>/` if https can't connect; a URL is read exactly as given. Comma- or space-separated lists in one line are split. |
| `verifyIcons` | Fetch the best icon to confirm it and read its real size and format (default on). |
| `includeAllIcons` | Also return `icons` and `manifestIcons` (default on). |
| `timeoutSecs` | Seconds to wait for each request (default 15, 5–60). |
| `maxItems` | Most website rows to return, free error rows included (default 1,000, max 100,000). Inputs beyond it are not fetched. |
| `maxConcurrency` | Different websites read at the same time (default 10, max 25). Each host still gets at most one request per second. |

The actor can also be called as an API, e.g. `POST https://api.apify.com/v2/acts/<this actor>/run-sync-get-dataset-items?token=<your token>` with the JSON input below as the body returns the rows directly (runs up to 5 minutes; use the async run endpoint for long lists).

Example:

```json
{
  "domains": ["python.org", "github.com", "https://www.mozilla.org/en-US/"],
  "verifyIcons": true,
  "includeAllIcons": false,
  "maxItems": 5000
}
```

### Pricing

**$1.50 per 1,000 websites with assets found** on the Apify Free plan, **$1.30 per 1,000** on Bronze and **$1.20 per 1,000** on Silver and higher plans (pay per event: one `site-processed` charge per website row with `status: ok`, plus Apify's standard actor-start event of $0.00005 per run at the default 256 MB memory — no start fee of our own). Rows for websites that could not be read — robots.txt says no, HTTP errors such as 403 or 404, DNS or network errors, blocked sites, bot-protection pages, invalid input — and websites where no usable icon or og:image was found are **free**; duplicates produce no row. Example: 10,000 domains cost at most $15.00 on Free, $12.00 on Silver. Set **Max websites** or a **maximum cost per run** and the actor stops cleanly when it is reached (`stoppedAtMaxItems` / `stoppedAtMaxCharge` in the run report); rows are saved as each website finishes.

### How it works

For each website the actor reads robots.txt, then:

1. requests the home page once (following up to 5 redirects to public pages that robots.txt allows) and reads the first 512 KB — the `<head>` is at the top;
2. collects `<link rel="icon" | "shortcut icon" | "apple-touch-icon" | "apple-touch-icon-precomposed" | "mask-icon" | "fluid-icon" | "manifest">`, `<meta property="og:image" | "og:site_name">`, `<meta name="theme-color" | "application-name" | "msapplication-TileImage">`, `<base href>` and `<title>`;
3. reads the web app manifest if the page links one **on the same origin** (up to 256 KB);
4. with **Check the best icon** on, fetches the top-ranked icon (up to 1 MB) and reads its format and size from the file header; if it is missing, an HTML page (a "soft 404") or not an image, the next one is tried. If the page declares no icon that works, `/favicon.ico` is checked (also with the check off: it is only a guess until fetched).

Icons on another host (a CDN) obey that host's robots.txt too. A robots.txt that answers 401 / 403 closes a website's pages (cautious), but on an icon host it means "no rules", as RFC 9309 says for every 4xx (S3 / CloudFront asset hosts answer 403 when there is no robots.txt); explicit `Disallow` rules are always obeyed.

Each website gets at most 4 of these requests — without a manifest, up to 3 icon checks (robots.txt, redirect hops and one retry of the home page after a 429 / 5xx not counted; the manifest and icons are never retried). Every connection goes only to public internet addresses (checked when the socket is opened, so a DNS answer that changes cannot reach a private network).

### Free rows

Every input produces one row. Duplicates are skipped — including different inputs that end up on the same page after redirects (`example.com` and `www.example.com`), counted as `duplicatesSkipped` in the run report; match rows to your list with `input`, not by position. Rows whose `status` is not `ok` are never charged; the **RUN_REPORT** record in the run's key-value store counts them by status.

| status | meaning |
|---|---|
| `no_assets_found` | No usable icon and no og:image: the page declares none and `/favicon.ico` is missing, or every declared icon was fetched and is missing or not an image. |
| `robots_txt` | robots.txt disallows the home page for our bot, or robots.txt answered 401 / 403 / 429 / 5xx or asks for a Crawl-delay over 60 seconds. We don't work around it. |
| `http_403`, `http_404`, `http_5xx` … | The home page answered that status (many bot-protection services answer 403). Not retried with tricks. |
| `dns_error` | The domain does not resolve. |
| `network_error` | Connection or TLS error, or a timeout — also after trying `http://` for a bare domain (not after a timeout). |
| `bot_challenge` | A bot-protection or challenge page ("Just a moment…", Cloudflare / AWS WAF challenge headers) or a status other than 200. Not the real home page. |
| `not_html` | The address returned something other than an HTML page. |
| `redirect_blocked` | The page redirected to a blocked site, a private address, a login page, a page robots.txt disallows, or more than 5 times. |
| `terms_of_use` / `blocked_site` | Sites whose terms forbid robots (e.g. Amazon, eBay, Google) and some of the largest retailers, marketplaces, social and video platforms (e.g. Walmart, Etsy, Facebook, YouTube). No request is sent. |
| `private_page` | Login, account, cart or checkout page URLs, or a URL with a user name / password in it. No request is sent. |
| `invalid_url` | `localhost`, private or internal IP addresses (also host names that resolve to one), ports other than 80 / 443, IPv6 addresses, non-http(s) or malformed input. |
| `internal_error` | An unexpected problem with one site. That site gets an error row; the run continues. |

### Limits — be aware

- **No browser.** Only icons in the HTML the server sends are seen; icons added later by JavaScript (some single-page apps) are missed — `/favicon.ico` is still checked.
- **Home page only** (or the exact URL you give). A different icon on a subdomain needs that URL.
- **`bestIcon` is a ranking, not a design judgment.** The largest declared icon usually is the clearest logo, but a site may declare a large icon that differs from its favicon. When a page declares many icons and the first ones are broken, the request budget (4 per site) can run out: the next icon is then reported as declared, `verified: false`. Icons fetched and found missing or not an image are never reported as `bestIcon`.
- **og:image, appleTouchIcon, maskIcon and the other `icons` are not fetched** — they are the URLs as the site declares them (one may be missing). Inline `data:` icons are not listed (they have no URL).
- **SVG size** comes from its `width` / `height` or `viewBox` (it scales anyway). AVIF size is not read (`width`/`height` `null`).
- **Manifest on another origin** (e.g. a CDN) is not read — its URL is still in `manifestUrl`.
- **Sites behind bot protection** that answer 403 or a recognised challenge page get a free error row; they are not bypassed.

### Responsible use

- **Logos, icons and brand names belong to their owners**: they are usually trademarks, and icons and og:images are often copyrighted artwork or photos. This actor only tells you **where** a site publishes its icons — the same URLs every browser loads. It does not download icons for you to keep, does not store them, and does not grant any right to use them. If you display or re-host them (e.g. a logo next to a company name in your CRM), check that your use is allowed — showing a company's logo to identify that company is common, using it to suggest endorsement is not.
- The bot identifies itself: `DojitoFaviconBot/1.0 (+https://apify.com; contact djkim@dojito.com)`. Site owners can block it in robots.txt (`User-agent: DojitoFaviconBot` / `Disallow: /`) and it will obey.
- Output is URLs, sizes, a colour and the site name — no page content, no names, emails, phone numbers or social accounts. `siteName` and the URLs are copied as the site publishes them (a personal site's title can contain its owner's name).
- Background: [RFC 9309 Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309), [Apify — Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/). General information, not legal advice.

### FAQ

**Can I get the logo file itself?** The actor returns URLs only. Open or download them yourself where your use is allowed; `bestIcon.url` with `verified: true` was a working image at `checkedAt`.

**Why is `bestIcon` a 16x16 ICO for some sites?** That site publishes nothing larger. Check `appleTouchIcon` and `ogImage` — they are often larger.

**Do I pay for sites that fail?** No. Only rows with `status: ok` are charged.

**How fast is it?** Each site needs 2–4 small requests spaced one second apart, so a site takes a few seconds and about 10 run in parallel: in our tests on Apify 10 domains took about 6 seconds and 60 popular domains about 44 seconds — roughly 1.5–2 websites per second at the default **maxConcurrency** of 10 (slow sites wait for their timeout). 10,000 domains take about 1.5–2 hours; the default run timeout is 3 hours. For longer lists raise **maxConcurrency** (up to 25) and the run timeout, or split the list — rows already saved are kept if a run times out.

***

Built on the Polite Web Scraper Kit (robots.txt, pacing, retries). Not affiliated with, endorsed by or sponsored by any company, product or website mentioned; all names are trademarks of their owners.

# Actor input Schema

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

Domains (python.org) or full URLs (https://example.com/blog). A domain is read at https://<domain>/ (http:// if https can't connect); a URL is read exactly as given. Duplicates are removed.

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

Download the top-ranked icon (up to 1 MB, then discarded) to confirm it exists and read its real width, height and format. If it is missing or not an image, the next one is tried. Off: bestIcon is the top declared icon as declared (verified=false) — faster, fewer requests.

## `includeAllIcons` (type: `boolean`):

Also list every icon the page and its web app manifest declare (icons, manifestIcons). Off: only bestIcon, appleTouchIcon, maskIcon, ogImage, themeColor.

## `timeoutSecs` (type: `integer`):

How long to wait for each request before the website is given up (not charged).

## `maxItems` (type: `integer`):

Most website rows to return (including free error rows). Inputs beyond this are not fetched.

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

Different websites checked at the same time. Each host still gets at most one request per second.

## Actor input object example

```json
{
  "domains": [
    "python.org",
    "github.com",
    "wikipedia.org"
  ],
  "verifyIcons": true,
  "includeAllIcons": true,
  "timeoutSecs": 15,
  "maxItems": 1000,
  "maxConcurrency": 10
}
```

# Actor output Schema

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

One row per website: input, domain, finalUrl, status, siteName, bestIcon {url, rel, width, height, format, bytes, verified, unverifiedReason, source}, appleTouchIcon, maskIcon {url, color}, ogImage, themeColor, manifestUrl, icons \[{url, rel, sizes, type}], manifestIcons \[{url, sizes, type, purpose}], error, checkedAt. Only rows with status=ok are charged.

## `runReport` (type: `string`):

JSON: rows, charged events, payPerEvent, row statuses (ok, no_assets_found, robots_txt, dns_error, network_error, http_4xx/5xx, terms_of_use, blocked_site, private_page, invalid_url, redirect_blocked, bot_challenge, not_html, internal_error), duplicates skipped, requests sent, icon checks, user agent. Free.

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

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

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

```

## MCP server setup

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