# Favicon & Website Logo Extractor (`klyve1/favicon-logo-extractor`) Actor

Find every favicon, Apple touch icon, web app manifest icon, logo and Open Graph image of any list of websites, with sizes and formats. Optionally save the best icon of each site.

- **URL**: https://apify.com/klyve1/favicon-logo-extractor.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (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 $2.00 / 1,000 website processeds

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 & Website Logo Extractor

Give a list of websites, get back their **favicon, Apple touch icon, web app manifest icons, logo and Open Graph image**, each checked and measured (real format, width, height, file size). The Actor also picks the **best icon** of each site (the largest square one) and can save it as a file for you.

### Who uses it

- **SaaS and CRM builders**: show company logos next to accounts, links or bookmarks.
- **Lead enrichment**: add a logo and brand color to every company domain.
- **Designers and marketers**: collect brand assets of partners or competitors.
- **Link preview and directory sites**: fill icons for thousands of URLs.

### Example output

```json
{
  "url": "https://github.com",
  "siteName": "GitHub",
  "themeColor": "#1e2327",
  "manifestUrl": "https://github.com/manifest.json",
  "bestIcon": "https://github.githubassets.com/assets/app-icon-512-7f9c4ff2e960.png",
  "bestIconSize": "512x512",
  "favicon": "https://github.githubassets.com/favicons/favicon.png",
  "ogImage": "https://images.ctfassets.net/.../OG_image.jpg",
  "iconCount": 16,
  "icons": [
    { "url": "https://github.githubassets.com/favicons/favicon.svg", "source": "icon", "declaredType": "image/svg+xml", "ok": true, "format": "svg", "width": 32, "height": 32, "bytes": 959 },
    { "url": "https://github.githubassets.com/assets/app-icon-512-7f9c4ff2e960.png", "source": "manifest", "declaredSizes": "512x512", "ok": true, "format": "png", "width": 512, "height": 512 }
  ]
}
```

### Input

| Field | Description |
|---|---|
| Websites | Home pages or any page of the sites. |
| Download and measure icons | Check each icon and read its real size (on by default). |
| Save best icon file | Store the best icon of each site in the key-value store and return a download link. |
| Respect robots.txt | Skip pages that robots.txt disallows (on by default). |
| Parallel sites / timeout | Speed settings. |

### Pricing

Pay per result: **$0.002 per website** where at least one icon is found. Unreachable sites and sites without icons are free.

### Good to know

- Sources read: `<link rel="icon">`, `apple-touch-icon`, `mask-icon`, the web app manifest, schema.org `logo`, logo images in the header, `og:image`, `twitter:image` and `/favicon.ico`.
- Only one HTML page per site is loaded, plus the icon files themselves.
- Logos and icons belong to their owners: check the brand guidelines before reusing them publicly.

# Actor input Schema

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

Home pages or any page of the websites, one per line. Missing https:// is added automatically.

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

Download each icon to check it exists and read its real format, width, height and size. Turn off for a faster run with declared sizes only.

## `saveBestIcon` (type: `boolean`):

Save the best (largest square) icon of each site in the run's key-value store and add its download link to the results.

## `respectRobotsTxt` (type: `boolean`):

Skip pages that the site's robots.txt disallows for all bots. Skipped sites are free.

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

How many websites are processed at the same time.

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

A page or icon that takes longer is skipped.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://github.com",
    "https://www.wikipedia.org"
  ],
  "verifyIcons": true,
  "saveBestIcon": false,
  "respectRobotsTxt": true,
  "concurrency": 5,
  "timeoutSecs": 20
}
```

# Actor output Schema

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

All rows produced by the run.

# 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://apify.com",
        "https://github.com",
        "https://www.wikipedia.org"
    ]
};

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

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

```

## MCP server setup

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