# Favicon & Logo Extractor: icons, logos, brand colours (`tagadanar/favicon-logo-extractor`) Actor

Every icon and logo a website declares, one row per site: favicon, Apple touch and manifest icons with sizes, JSON-LD and header logo (SVG too), og:image, site name, theme colours and a best-icon pick. Optional verified icon download. $1.00 per 1,000 sites found + $0.001/run.

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

## Pricing

from $0.70 / 1,000 website with icons founds

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 & Logo Extractor: icons, logos, brand colours

Give it a list of websites (domains, URLs or even e-mail addresses) and get back one row per site with **every icon and logo the site declares**: the favicon, Apple touch icons, the web app manifest icons with their sizes, the Safari pinned-tab icon and its colour, the Windows tile, the logo from the site's structured data, the logo in the page header (as an image link or as ready-to-use SVG markup), the Open Graph and Twitter share images, the site name and the brand colours. A **best icon** is picked for you by a documented rule, and on request the actor **downloads that icon**, checks it is a real image and stores the file with its true width, height and format.

**$1.00 per 1,000 sites found on Free ($0.70 on Gold), plus $0.001 per run. Platform usage is included.** Sites that refuse the visit, do not answer, or declare no icon at all are listed and **not charged**. No API key, no login, no browser.

### What you get

One flat row per website. Fields the site does not publish are null.

| Field | What it is |
| --- | --- |
| `domain` | The site's domain (without `www.`) |
| `status` | `FOUND` (charged), `NO_ICON` (proven: nothing declared and no `/favicon.ico`; free), `NOT_ANSWERED` (refused, timed out, did not resolve; free), `INVALID_INPUT` (free) |
| `siteName` | The site's own name (`og:site_name`, manifest name, `application-name`, structured data, or a plain page title) |
| `title` | The homepage title |
| `logoUrl` | The logo: the structured-data (JSON-LD) logo of the organisation, else the header logo image, else the best icon |
| `logoSource` | Where the logo came from: `json-ld`, `header-img`, `icon:<source>`, or `header-svg` when the only logo is the inline SVG in `headerLogoSvg` (then `logoUrl` is empty) |
| `headerLogoSvg` | The header logo when it is drawn inline as SVG: standalone SVG markup you can save as a `.svg` file |
| `bestIconUrl` | The best square icon (rule below) |
| `bestIconSource` | `manifest`, `apple-touch-icon`, `icon`, `ms-tile` or `favicon.ico` |
| `bestIconFormat`, `bestIconWidth`, `bestIconHeight` | Format and size: as declared by the site, or the real values read from the file when it was downloaded |
| `bestIconVerified` | `true` when the file was downloaded and is a real image |
| `bestIconStoreUrl`, `bestIconBytes` | With the download option: a link to the stored file in the run's key-value store, and its size |
| `faviconUrl` | The browser favicon (the first declared icon, else `/favicon.ico`) |
| `appleTouchIconUrl` | The largest Apple touch icon |
| `maskIconUrl`, `maskIconColor` | Safari pinned-tab icon and its colour |
| `ogImageUrl`, `twitterImageUrl` | Share images (usually wide banners, not logos) |
| `jsonLdLogoUrl`, `headerLogoUrl` | Each logo source on its own |
| `manifestUrl` | The web app manifest |
| `themeColor`, `manifestThemeColor`, `manifestBackgroundColor`, `tileColor` | Brand colours, as `#rrggbb` when written in hex |
| `iconCount`, `icons` | Every icon found, each with `url`, `source`, `sizes`, `width`, `height`, `format`, `type`, `purpose`, `media`, `color` |
| `finalUrl`, `httpStatus` | Where the homepage ended after redirects, and its HTTP status |
| `error`, `errorMessage` | Why a site was not charged (`HTTP_403`, `TIMEOUT`, `DNS`, `CHALLENGE` ...) |
| `checkedAt` | When the site was checked (ISO 8601) |

#### How the best icon is picked

Candidates are the declared icons (`<link rel="icon">`, Apple touch icons, the web app manifest icons, the Windows tile image) and `/favicon.ico`. The Safari mask icon (a one-colour silhouette) and the share images are never picked. The largest square icon wins: an SVG counts as the largest because it scales (choose **Raster only** to leave SVG out), a non-square icon counts for half its short side, a manifest icon marked only `maskable` (it has padding) and a dark-mode-only variant are ranked lower, and `monochrome` icons are skipped. An Apple touch icon without a declared size counts as 180 px, a Windows tile image as 144 px. Ties go to the manifest, then the Apple touch icon, then the page icon.

### Who uses it

- **CRM and lead-list builders**: add a logo and a square icon to every company record from its website or a contact's e-mail domain.
- **Directories, marketplaces and link-in-bio tools**: show a crisp icon next to every listed site, with the brand colour for the tile background.
- **Agencies and brand teams**: audit which sites ship a complete icon set (manifest, Apple touch icon, SVG favicon) and which still rely on a 16 px `favicon.ico`.

### Examples

Prefill (three sites, defaults):

```json
{"urls":["wordpress.org","wikipedia.org","python.org"]}
```

A lead list with e-mail addresses, raster icons only, files stored for import:

```json
{"urls":["jane@acme-example.com","www.example.org","https://example.net/shop"],"iconFormat":"raster","downloadBestIcon":true}
```

Fastest pass, page tags only (no manifest request):

```json
{"urls":["wordpress.org","python.org"],"fetchManifest":false}
```

### Results, zeros and errors

- Each site costs at most a few requests: the homepage, the web app manifest when one is declared, `/favicon.ico` only when the page declares no icon, and the icon file itself with the download option.
- The visit is plain HTTP with a user agent that names this actor; it does not pose as a browser or use proxies. Some large consumer sites refuse such visitors: those rows say `NOT_ANSWERED` with the reason and cost nothing.
- `NO_ICON` is only reported when the homepage was read, declares no icon or logo, and `/favicon.ico` does not exist; it costs nothing.
- The run status counts each kind. A run where every site refused ends as failed, so it never looks like "no icons".
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $1.00 per 1,000 sites found (`FOUND` rows) on Free, with lower prices on higher Apify plans ($0.70 per 1,000 on Gold).
- Optional icon download: $0.50 per 1,000 icon files stored on Free ($0.35 on Gold), only for files actually stored.
- `NO_ICON`, `NOT_ANSWERED` and invalid rows are free. Platform usage is included.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Why is `logoUrl` sometimes the same as the icon?** Many sites do not publish a logo in structured data or as an image in the header (the header logo is often inline SVG, returned in `headerLogoSvg`). The best icon is then the closest thing to a logo, and `logoSource` says so.

**Are the sizes real?** Without the download option, sizes are what the site declares (`sizes` attribute, manifest). With it, `bestIconWidth`, `bestIconHeight` and `bestIconFormat` are read from the downloaded file itself; `/favicon.ico` sizes are always read from the file.

**Can it read sites behind a login or a bot check?** No. It reads public homepages only; a bot check is reported as `NOT_ANSWERED` with `CHALLENGE` and not charged.

**How do I get the stored icon files?** Each row's `bestIconStoreUrl` is a direct link; the files are also listed in the run's key-value store (keys `icon-<domain>.<ext>`).

### Data use

The actor reads public homepages, their web app manifest and their icon files, the same files every browser fetches when it opens the site. It collects no personal data. Logos and icons are the trademarks of their owners: check that your use (for example showing them next to a company record) is allowed.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/favicon-logo-extractor/changelog.md

# Actor input Schema

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

Domains or URLs, one per line (example.com, www.example.com, https://example.com/shop). An e-mail address is read as its domain. Up to 10,000 per run. Sites that refuse or do not answer are reported and not charged.

## `iconFormat` (type: `string`):

Which icons may become the "best icon". Any (default): an SVG icon wins because it scales to any size. Raster only: PNG, ICO, WebP, JPEG, GIF or AVIF, for tools that cannot show SVG. Every icon is still listed in the icons column.

## `fetchManifest` (type: `boolean`):

Read the site's web app manifest when it declares one: adds its icons (often 192 and 512 px), its name and its theme and background colours. One extra request per site that has a manifest.

## `downloadBestIcon` (type: `boolean`):

Download the best icon, check it is a real image, and save the file in the run's key-value store. The row then holds the file's link, its real width, height, format and size in bytes. If the best icon is broken, the next best one is tried. $0.50 per 1,000 icons stored on the Free plan; sites where no icon could be downloaded are not charged for it.

## Actor input object example

```json
{
  "urls": [
    "wordpress.org",
    "wikipedia.org",
    "python.org"
  ],
  "iconFormat": "any",
  "fetchManifest": true,
  "downloadBestIcon": false
}
```

# Actor output Schema

## `dataset` (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 = {
    "urls": [
        "wordpress.org",
        "wikipedia.org",
        "python.org"
    ]
};

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

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

```

## MCP server setup

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