# Favicon & Brand Logo Extractor (`andok/favicon-extractor`) Actor

Extract high-resolution favicons, Apple touch icons, and brand logos from any domain for dashboard building and brand monitoring.

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

## Pricing

from $1.00 / 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 & Brand Icon Extractor

Extract favicons, Apple touch icons, and other brand icons from any website in bulk. Building a link directory, dashboard, or brand monitoring tool requires site icons -- and manually hunting for the right favicon URL across different markup conventions is tedious. Pass in a list of domains and get every declared icon with sizes, types, and resolved URLs.

### Features

- **Standard favicons** — extracts `<link rel="icon">` and `<link rel="shortcut icon">` declarations
- **Apple touch icons** — captures `<link rel="apple-touch-icon">` for iOS home screen display
- **Safari mask icons** — detects `<link rel="mask-icon">` pinned-tab SVGs
- **Fallback detection** — automatically includes the default `/favicon.ico` path when no icon is declared in markup
- **Full URL resolution** — resolves relative icon paths to absolute URLs ready for direct download
- **Bulk processing** — scan hundreds of sites in a single run with configurable concurrency
- **Pay-per-event billing** — you only pay for each site checked, with automatic charge-limit enforcement

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `urls` | `array` | Yes | — | List of website URLs to scan for favicon and icon declarations. |
| `url` | `string` | No | — | Single URL to scan (for backwards compatibility). Use `urls` for bulk processing. |
| `timeoutSeconds` | `integer` | No | `15` | Maximum seconds to wait for each page response before timing out. |
| `concurrency` | `integer` | No | `10` | Number of sites to process in parallel. Increase for large batches, decrease if you hit rate limits. |

#### Input Example

```json
{
  "urls": [
    "https://crawlee.dev",
    "https://github.com",
    "https://apify.com"
  ]
}
```

### Output

Each URL produces one dataset item listing all detected icons for that site.

- `inputUrl` (`string`) — the URL you submitted
- `finalUrl` (`string`) — the URL after redirects
- `status` (`number`) — HTTP status code
- `iconCount` (`number`) — total number of icons found
- `icons` (`array`) — list of icon objects, each containing:
  - `rel` (`string`) — the link rel attribute (e.g., `icon`, `apple-touch-icon`, `mask-icon`)
  - `href` (`string`) — resolved absolute URL of the icon
  - `sizes` (`string | null`) — declared icon dimensions (e.g., `32x32`, `180x180`)
  - `type` (`string | null`) — MIME type if specified (e.g., `image/png`, `image/x-icon`)
- `error` (`string | null`) — error message if the URL could not be fetched
- `checkedAt` (`string`) — ISO 8601 timestamp of when the check was performed

#### Output Example

```json
{
  "inputUrl": "https://crawlee.dev",
  "finalUrl": "https://crawlee.dev/",
  "status": 200,
  "iconCount": 3,
  "icons": [
    {
      "rel": "icon",
      "href": "https://crawlee.dev/img/favicon.ico",
      "sizes": "32x32",
      "type": "image/x-icon"
    },
    {
      "rel": "apple-touch-icon",
      "href": "https://crawlee.dev/img/apple-touch-icon.png",
      "sizes": "180x180",
      "type": null
    },
    {
      "rel": "default fallback",
      "href": "https://crawlee.dev/favicon.ico",
      "sizes": null,
      "type": "image/x-icon"
    }
  ],
  "error": null,
  "checkedAt": "2025-01-15T10:30:00.000Z"
}
```

### Pricing

| Event | Cost |
|-------|------|
| Site Checked | Pay-per-event (see actor pricing page) |

The actor stops automatically when the per-run charge limit is reached, so you never overspend.

### Use Cases

- **Dashboard building** — grab site icons to display alongside bookmarks, link lists, or monitoring panels
- **Brand monitoring** — track favicon changes across a portfolio of competitor or partner sites
- **Directory sites** — automatically populate logo thumbnails for link aggregators and review platforms
- **Design audits** — verify that all icon sizes and formats are properly declared across your properties
- **Browser extension development** — collect icon URLs programmatically for extension UIs and toolbars

### Related Actors

| Actor | What it adds |
|-------|-------------|
| [OpenGraph & Twitter Card Inspector](https://apify.com/andok/opengraph-inspector) | Extracts OG images and social preview tags — get both brand icons and social share images in one workflow |
| [Web Page Asset Extractor](https://apify.com/andok/asset-extractor) | Lists all scripts and stylesheets — combine with favicons for a complete page resource inventory |
| [Website Tech Stack Analyzer](https://apify.com/andok/tech-stack-analyzer) | Detects the CMS and framework behind each site — understand the platform that generates those icons |

# Actor input Schema

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

List of website URLs to scan for favicon and icon declarations. Each site is checked for standard favicons, Apple touch icons, and mask icons.

## `url` (type: `string`):

Single URL to scan (for backwards compatibility). Use the URLs field above for bulk processing.

## `timeoutSeconds` (type: `integer`):

Maximum seconds to wait for each site response. Increase for slow or geographically distant sites.

## `concurrency` (type: `integer`):

Number of sites to process in parallel. Higher values speed up large batches but may trigger rate limits on some hosts.

## Actor input object example

```json
{
  "urls": [
    "https://crawlee.dev"
  ],
  "timeoutSeconds": 15,
  "concurrency": 10
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

## `run` (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": [
        "https://crawlee.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("andok/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": ["https://crawlee.dev"] }

# Run the Actor and wait for it to finish
run = client.actor("andok/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": [
    "https://crawlee.dev"
  ]
}' |
apify call andok/favicon-extractor --silent --output-dataset

```

## MCP server setup

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