Favicon Extractor: Brand Icons and Theme Color
Pricing
Pay per event
Favicon Extractor: Brand Icons and Theme Color
Favicon extractor for a list of websites: finds favicons, apple-touch-icons, manifest icons and og:image, verifies the bytes are real images, and returns up to 5 per site plus theme color and site name. Charged only when a verified asset is found ($2 per 1,000 sites). Plus $0.00005 start.
Pricing
Pay per event
Rating
0.0
(0)
Developer
fecklesspleb
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
15 days ago
Last modified
Categories
Features
Share
Favicon and Brand Asset Extractor
For each website URL, read the page (usually the homepage) and its linked web app manifest, then check icon candidates: icon, apple-touch-icon and mask-icon links, manifest icons, /favicon.ico and og:image. The dataset lists up to 5 candidates verified as real images, plus theme-color, site name and page title. Optionally save the top verified icon into an Apify key-value store.
At a glance: $2.00 per 1,000 sites ($0.002 per site), charged only when at least one icon or brand image is verified (fetched and recognised as image bytes), plus the Apify run-start event. Sites with no verified asset, failed sites, login pages and skipped sites are free.
Behaviour
Per site the Actor fetches:
- The page HTML (a non-HTML response fails the site, free). Query strings and fragments in the input URL are dropped.
- The linked web app manifest (if any).
- Icon candidates in priority order (apple-touch-icon, manifest icons, icon links and
/favicon.ico, thenog:image) until 5 are verified, none are left, or 10 candidates have been fetched (a hard cap per site). Candidates are fetched to verify them even when download is off.
robots.txt is checked on every hop, and requests to one host are spaced at least 0.5 s apart. No browser; JS-injected icons are not seen. A page that is a login page (login path or password field) fails free (tested locally).
SVG storage (security)
When the top icon is an SVG, it is stored in the key-value store as text/plain (not image/svg+xml) so opening the public store URL cannot run embedded script on the storage origin. The dataset row records svgStoredAs: "text/plain" and iconContentType: "text/plain"; iconOriginalContentType keeps the server's content type.
Pricing
apify-actor-start: $0.00005, the standard Apify start event (one per GB of memory, minimum 1).site: $0.002 per site with at least one verified icon or brand image ($2.00 per 1,000 sites). Saving the top icon, when enabled, is included.
Free: sites with no verified asset, non-HTML pages, HTTP errors, robots blocks, private-address blocks, login pages, sites skipped by Max sites or the cost limit, and invalid input. Set Maximum cost per run to stop cleanly.
Call it from an API or an AI agent
One site per call is the typical agent pattern: about $0.00205 per call with a verified icon ($0.00005 start event + $0.002 site), $0.00005 when nothing is verified. Each call is a separate run with its own start event, so batch sites into one run when you can. Replace <YOUR_APIFY_TOKEN> with your token and keep it in a secret or credential; maxTotalChargeUsd caps what one run can cost.
One request that starts a run, waits for it and returns the dataset items (if the run takes longer than 300 seconds, the response is HTTP 408 and the run keeps going):
curl -X POST \-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"startUrls": [{"url": "https://www.python.org/"}], "maxSites": 1}' \"https://api.apify.com/v2/actors/fecklesspleb~favicon-brand-extractor/run-sync-get-dataset-items?maxTotalChargeUsd=0.01&format=json"
Python (pip install apify-client, written against version 3.5):
from apify_client import ApifyClientclient = ApifyClient('<YOUR_APIFY_TOKEN>')run = client.actor('fecklesspleb/favicon-brand-extractor').call(run_input={'startUrls': [{'url': 'https://www.python.org/'}], 'maxSites': 1},max_total_charge_usd=0.01,)for item in client.dataset(run.default_dataset_id).iterate_items():print(item.get('url'), item.get('bestIconUrl'), item.get('status'))
JavaScript (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('fecklesspleb/favicon-brand-extractor').call({ startUrls: [{ url: 'https://www.python.org/' }], maxSites: 1 },{ maxTotalChargeUsd: 0.01 },);const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((i) => [i.url, i.bestIconUrl, i.status]));
AI agents: the Apify MCP server can expose this Actor as a tool. Add https://mcp.apify.com?tools=fecklesspleb/favicon-brand-extractor to an MCP client.
Run it on a schedule
Use this when you want favicons and brand colours for a list of sites refreshed on a regular cadence.
Example. Keep company or product homepage URLs in the startUrls field and run it weekly. For each site the dataset lists up to 5 verified icon candidates, plus theme-color, site name and page title. When downloadBestIcon is true (the default), the top verified icon is also saved to the key-value store. A site is charged only when at least one icon or brand image is verified. Charges are unchanged; see Pricing.
Apify Schedules
You must have run the Actor at least once before you can schedule it. In Apify Console, open Schedules and click Create new. Set a name (3–63 characters) and a timezone (daylight saving is supported). Under Schedule setup, use the visual builder or a cron expression. For example, 0 8 * * * runs every day at 08:00 in that timezone. Click Add, choose this Actor or a saved task, and optionally override the input, build, timeout or memory. If you leave the input empty, the Actor's default input is used. New schedules are created disabled; check the Next runs preview, then click Enable. One schedule can include at most 10 Actors and 10 tasks.
Webhook or dataset hand-off
On the Actor or a task, add a webhook for the event ACTOR.RUN.SUCCEEDED (you can also listen for ACTOR.RUN.FAILED). The event data includes actorRunId. Fetch that run's dataset items:
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://api.apify.com/v2/actor-runs/<RUN_ID>/dataset/items?format=json"
Keep the token in a credential or secret, never in a URL you share publicly. The API also accepts ?token=, but the Authorization header is the recommended, more secure method. format may be json (the default), jsonl, csv, xlsx, xml or rss.
When downloadBestIcon is enabled, the top verified icon is in the run's key-value store (see the row's download fields). The dataset itself lists the verified candidates.
n8n
- Install the Apify node: on self-hosted n8n, go to Settings → Community Nodes and install
@apify/n8n-nodes-apify; on n8n Cloud, search for Apify and install the node. - Create an Apify API credential and store
<YOUR_APIFY_TOKEN>there (OAuth2 is also available on n8n Cloud). Do not put the token in a node URL. - Add an Apify Run an Actor node, select this Actor, and set the input JSON below. To get rows in the same step, use Run an Actor and get dataset instead, which waits for the run to finish and returns the dataset items.
- If an Apify Schedule starts the run, use the On new Apify Event trigger (event type Succeeded), then Get Dataset Items with the run's default dataset id.
- Send the items to a sheet, folder or the next node.
Works with Apify's native n8n, Make and Zapier integrations. For a scheduled run, start it from an Apify Schedule or a Schedule Trigger in n8n, then read the run's default dataset in the next node.
Example input for a scheduled run:
{"startUrls": [{"url": "https://www.python.org/"}],"downloadBestIcon": true}
Make
- In a Make scenario, add the Apify app and connect with OAuth or an API token (store the token in the connection).
- Add Run an Actor, select this Actor, and paste the same input JSON. Set Run synchronously to Yes only if the run will finish inside Make's synchronous timeout (Make's Apify app page states a 120-second maximum; Apify's Make docs say the timeout varies by plan). For longer runs, let an Apify Schedule start the Actor and use Watch Actor Runs, then Get Dataset Items with that run's default dataset id.
- Map the items to Google Sheets, Drive, or the next module.
Limits
- One page per site plus its manifest and at most 10 icon candidates; not a full site crawl.
- A candidate is not counted or saved if the response is not image bytes or is larger than the max icon size (default 5 MB).
- Concurrency is capped at 10 and lowered automatically to fit memory; private addresses blocked on the Apify platform.
- Returns only page-level brand metadata: site name, title, theme colour, and icon and
og:imageURLs.
Legal
Use only on sites you are allowed to fetch. Obey robots.txt and terms.