# Favicon and Logo Extractor (`properscraper/favicon-and-logo-extractor`) Actor

Get the favicon, app icons, logo and social sharing image of any list of websites: direct image links with sizes, plus the site's name and brand colour. One record per website, no browser needed.

- **URL**: https://apify.com/properscraper/favicon-and-logo-extractor.md
- **Developed by:** [jake mcclure](https://apify.com/properscraper) (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 $0.50 / 1,000 website reads

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 and Logo Extractor

Get the favicon, app icons, logo and social sharing image of any list of websites. For each site you get direct links to the images with their sizes, the best pick for each purpose, the site's name and its brand colour.

It reads each site's home page and its web app manifest. No browser is used, so thousands of websites take minutes.

Use it to:

- show a company's icon next to its name in a CRM, a directory, a dashboard or a link list
- enrich a list of leads or portfolio companies with logos
- collect brand assets (icon, logo, sharing image, brand colour) for many sites at once
- check that your own sites declare the icons that browsers and phones expect

### Input

| Field | What it does |
|---|---|
| **Websites** | One per line: a domain such as `example.com`, or a full address. |
| **Read the web app manifest** | On by default: also reads the site's manifest, which usually lists its largest icons. One extra request per website. |
| **Obey robots.txt** | On by default: a website that asks crawlers not to read the page is skipped and not charged for. |

```json
{
    "websites": ["wordpress.org", "github.com", "stripe.com"]
}
```

### Output

One record per website:

```json
{
    "input": "github.com",
    "domain": "github.com",
    "url": "https://github.com/",
    "siteName": "GitHub",
    "faviconUrl": "https://github.githubassets.com/favicons/favicon.svg",
    "appleTouchIconUrl": null,
    "largestIconUrl": "https://github.githubassets.com/assets/app-icon-512.png",
    "logoUrl": null,
    "socialImageUrl": "https://images.ctfassets.net/8aevphvgewt8/abc/OG_image.jpg",
    "themeColor": "#1e2327",
    "icons": [
        { "url": "https://github.githubassets.com/favicons/favicon.svg", "rel": "icon", "sizes": null, "type": "image/svg+xml", "width": null },
        { "url": "https://github.githubassets.com/assets/app-icon-192.png", "rel": "manifest", "sizes": "192x192", "type": "image/png", "width": 192 },
        { "url": "https://github.githubassets.com/assets/app-icon-512.png", "rel": "manifest", "sizes": "512x512", "type": "image/png", "width": 512 }
    ],
    "logoCandidates": [],
    "scrapedAt": "2026-11-18T12:00:00.000Z"
}
```

- `faviconUrl` is the best browser icon: a vector (SVG) icon if the site has one, otherwise the largest declared, otherwise the traditional `/favicon.ico` if the site serves one.
- `appleTouchIconUrl` is the icon phones use for a home-screen shortcut, usually 180 pixels square.
- `largestIconUrl` is the biggest icon found anywhere, often 512 pixels from the manifest. It is the best choice when you need a crisp square image.
- `logoUrl` is the image the site names as its logo in its structured data, or failing that the first image on the page that calls itself a logo. `logoCandidates` lists up to five. It is `null` when the page marks nothing as a logo.
- `socialImageUrl` is the picture shown when the site is shared (Open Graph).
- `themeColor` is the brand colour the site declares for browser chrome.
- `icons` is every icon found, with where it was declared (`rel`) and its size.
- A website with no icons at all is still saved, with empty fields.

A `SUMMARY` record in the run's key-value store lists any websites that could not be read and why.

### Pricing

Pay per result. You are charged once for each website saved to the dataset, at the per-result price shown on this page.

A website that could not be read (it did not answer, refused the request, or its robots.txt does not allow it) is not saved and not charged for. Lines that are not website addresses and repeated websites cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

### Limits

- The Actor returns links to the images; it does not download or convert them.
- Only what the home page and manifest declare is found. A logo drawn inline as SVG, or set as a CSS background, has no address to return.
- Pages are read without running their JavaScript.
- Some sites refuse automated requests. The Actor identifies itself honestly and does not disguise itself or work around a refusal.

### Is this allowed, and how may I use the images?

The Actor reads one or two public files per website, identifies itself in its User-Agent, obeys robots.txt by default and paces its requests.

Logos and icons are usually trademarks of their owners. Showing a company's icon to identify that company is normal practice; using it to suggest endorsement or affiliation is not. Check the owner's brand guidelines for anything beyond identification.

# Actor input Schema

## `websites` (type: `array`):

One per line: a domain such as example.com, or a full address.

## `readManifest` (type: `boolean`):

Also read the site's web app manifest, which usually lists its largest icons. One extra request per website.

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

Skip a website whose robots.txt asks crawlers not to read the page. Skipped websites are not charged for.

## Actor input object example

```json
{
  "websites": [
    "wordpress.org",
    "github.com",
    "stripe.com"
  ],
  "readManifest": true,
  "respectRobotsTxt": true
}
```

# Actor output Schema

## `websites` (type: `string`):

One record per website read.

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

Totals for the run and, for each batch of websites, how many results were saved and any error.

# 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 = {
    "websites": [
        "wordpress.org",
        "github.com",
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("properscraper/favicon-and-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 = { "websites": [
        "wordpress.org",
        "github.com",
        "stripe.com",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,properscraper/favicon-and-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/17hLHZfb80mH9fKce/builds/qFaD28gaafVjPaFbp/openapi.json
