# Favicon & Logo Downloader: Bulk Icons with Sizes (`dataforgehq/favicon-logo-downloader`) Actor

Download favicons, apple-touch-icons, web-manifest icons and logos (JSON-LD, header img, inline SVG) for many domains. Real width/height, format, best icon pick, hosted file URLs. $0.50 per 1,000 sites; no icon = free.

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

## Pricing

from $0.50 / 1,000 websites

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 & Logo Downloader – bulk icons with real sizes and hosted files

Give it a list of domains and get back **every favicon, apple-touch-icon, web-manifest icon, Safari mask icon and the site logo**, downloaded and measured. Each image gets its **real format and width × height** (read from the file, not just the HTML `sizes` attribute), and the **best icon and logo are saved as hosted files** you can use directly (all other images are listed with source URL, format and size).

### What it finds

- `<link rel="icon">` / `shortcut icon` favicons (PNG, ICO with all embedded sizes, SVG)
- `apple-touch-icon` images
- **Web app manifest** icons (`manifest.json` / `site.webmanifest`, plus name and theme colors)
- Safari `mask-icon` (pinned tab SVG)
- **Logo** from JSON-LD `Organization.logo`, from a header/home-link `<img>`, or the inline header **SVG logo**
- `/favicon.ico` fallback
- Optional `og:image`

The **best icon** is picked for you: the largest square icon, SVG preferred.

### Use cases

- Enrich CRM / lead lists with company **logos and favicons**
- Build link previews, bookmark managers, dashboards and app directories
- Brand asset audits: is the favicon missing, tiny, or not square? Is there a 512×512 manifest icon?

### Input

```json
{ "sites": ["apify.com", "github.com", "stripe.com"], "downloadFiles": true }
```

Optional: `include` (any of `favicon, appleTouchIcon, manifest, maskIcon, logo, ogImage`), `downloadFiles` (save best icon + logo files; off = URLs and sizes only), `maxIconsPerSite`, `maxFileSizeKb`, `timeoutSecs`, `concurrency`, `maxSites`.

### Output (one item per site)

```json
{
  "site": "https://github.com/",
  "bestIcon": "https://github.githubassets.com/assets/app-icon-512-7f9c4ff2e960.png",
  "bestIconSize": "512x512",
  "bestIconFile": "https://api.apify.com/v2/key-value-stores/…/records/github.com-manifest-….png",
  "favicon": "https://github.githubassets.com/favicons/favicon.png",
  "logo": "(inline svg)",
  "logoSource": "inline-svg",
  "logoFile": "https://api.apify.com/v2/key-value-stores/…/records/github.com-logo-….svg",
  "manifest": { "name": "GitHub", "themeColor": "#1e2327" },
  "iconCount": 8,
  "icons": [{ "kind": "manifest", "url": "https://github.githubassets.com/assets/app-icon-512-….png", "format": "png", "width": 512, "height": 512, "bytes": 18934 }]
}
```

### Pricing

**$0.0005 per site** with at least one icon or logo found ($0.50 per 1,000 sites, all images included) + a tiny start fee. Sites that are unreachable or have no icon at all are **free**.

### Related Actors

- [Website Metadata Extractor](https://apify.com/dataforgehq/website-metadata-extractor) – title, description, Open Graph, social profiles
- [Website Color Palette Extractor](https://apify.com/dataforgehq/color-palette-extractor) – brand colors
- [Website Image Extractor](https://apify.com/dataforgehq/website-image-extractor) – every image on a page
- [Tech Stack Detector](https://apify.com/dataforgehq/tech-stack-detector)

# Actor input Schema

## `sites` (type: `array`):

Domains or URLs, one per line. The homepage is fetched to discover icons.

## `include` (type: `array`):

Any of: favicon, appleTouchIcon, manifest, maskIcon, logo, ogImage.

## `downloadFiles` (type: `boolean`):

Save the best icon and the logo to the run's key-value store and return hosted bestIconFile / logoFile URLs. All other images are reported with their source URL, format and size. Off = URLs only.

## `maxIconsPerSite` (type: `integer`):

Download at most this many candidate images per site.

## `maxFileSizeKb` (type: `integer`):

Skip files larger than this.

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

Seconds to wait for each request.

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

Sites processed at once.

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

Process at most this many (0 = all).

## Actor input object example

```json
{
  "sites": [
    "apify.com",
    "github.com"
  ],
  "include": [
    "favicon",
    "appleTouchIcon",
    "manifest",
    "maskIcon",
    "logo"
  ],
  "downloadFiles": true,
  "maxIconsPerSite": 10,
  "maxFileSizeKb": 2048,
  "timeoutSecs": 15,
  "concurrency": 5,
  "maxSites": 0
}
```

# Actor output Schema

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

All sites (overview table).

## `files` (type: `string`):

Key-value store with the image files.

## `summary` (type: `string`):

Counts.

# 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 = {
    "sites": [
        "apify.com",
        "github.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataforgehq/favicon-logo-downloader").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 = { "sites": [
        "apify.com",
        "github.com",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataforgehq/favicon-logo-downloader"
        }
    }
}
```

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/rM5sKclsDrKXCCY8R/builds/gAjrr6PT1z8XsdkGY/openapi.json
