Download (or synthesize) a site favicon.
Looks for `<link rel="icon">`, apple-touch icons, or `/favicon.ico`. If none are available the helper generates a branded fallback icon using the hostname so you always get an asset. Accepts inline HTML to skip the remote fetch during tests.
/web/page-iconWhere this helper shines
Download (or synthesize) a site favicon. keeps web helpers on autopilot. Use it whenever you need to download (or synthesize) a site favicon without pausing a sprint or asking design/dev to jump in.
- Trigger this helper whenever you need to download (or synthesize) a site favicon without waiting on a full deploy.
- Drop it into automations (Zapier, Make, workers) to download (or synthesize) a site favicon as part of your workflow.
- Share the GET URL so support and success can download (or synthesize) a site favicon safely using their Dataczar API key.
Copy & ship snippets
GET
Instant link
GET https://api.dataczar.app/web/page-icon?url=https%3A%2F%2Fexample.com%2Fsample.png&size=20&format=png&timeout=40&ak=demoOpen directly in any browser, webhook, or low-code workflow.
curl
curl GET
curl "https://api.dataczar.app/web/page-icon?url=https%3A%2F%2Fexample.com%2Fsample.png&size=20&format=png&timeout=40&ak=demo"Swap ak=demo with your Dataczar API key.
curl
curl POST
curl -X POST "https://api.dataczar.app/web/page-icon?ak=demo" \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/sample.png",
"html": "<p>Example</p>",
"size": 30,
"format": "png",
"timeout": 50,
"dryrun": true
}'Send JSON payloads from back-end jobs, queues, or workers.
Parameters
Query Parameters
| Name | Type | Description |
|---|---|---|
| url | string | Site to inspect. |
| size | integer | Output size in pixels (default 256). |
| format | string | png, jpg, webp, etc. Defaults to png. |
| timeout | number | Fetch timeout in seconds. |
| dryrun | boolean | Return a JSON summary instead of an icon. |
All helper calls accept your Dataczar key via the ak query parameter. Need one? Create or copy a key on Dataczar Connect and drop it into each request.
Responses
Status 200
Icon image response.
Examples
Test Contracts
[
{
"name": "generated_fallback",
"method": "POST",
"body": {
"url": "https://example.com/icon",
"html": "<html><title>Example</title></html>",
"size": 128
},
"expect": {
"status_code": 200
}
}
]Grab your Dataczar API key
Every helper runs with the same simple API key. Sign in (or create a free Dataczar account) at Dataczar Connect to issue keys in seconds, then drop the key into any `ak=` parameter and start shipping.
Tip: reuse the same key across these helpers, or rotate keys per project from the Connect dashboard.