Skip to main content

Favicon API

developer
GET/v1/domain/favicon

Discovers all favicon and icon files for a domain including traditional favicons, Apple touch icons, and modern manifest icons in various sizes.

What It Does

Analyzes the HTML head section for link tags pointing to icons, checks common favicon locations (/favicon.ico, /apple-touch-icon.png), parses web app manifests for icon definitions, and validates that discovered icons are accessible.

Why It's Useful

Favicons are useful for brand identification, UI enhancement (displaying site icons in applications), and can sometimes reveal technology platforms through default icons.

Use Cases

Designer

Brand Asset Collection

Collect all icon variations for a brand to ensure consistency across platforms.

Audit and standardize favicon implementations across properties.

Frontend Developer

UI Enhancement

Dynamically display favicons next to links in a bookmark manager or aggregator app.

Improve UI with visual brand identification for external links.

Security Researcher

Technology Fingerprinting

Identify default CMS or platform favicons that reveal the underlying technology.

Discover technology platforms through favicon analysis.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to find favicons forExample: github.com
validateImagesquerybooleanOptionalWhen true, Range-byte probes each discovered icon (cap 5) to extract real pixel dimensions. Catches the common "192×192 declared, actually 16×16" bug that breaks Android home-screen icons.Example: true

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe queried domain
iconsarrayAll discovered icons with URL, type, and size. When validateImages=true each entry includes actualDimensions (real width/height/format from probing) and matchesDeclared flag.
pwaReadinessobjectPWA install-readiness composite per W3C Web App Manifest spec: installable boolean, missingManifestRequired (name/icons/start_url/display), hasMin192, hasMin512, hasMaskableIcon (Android adaptive icons), hasServiceWorker + serviceWorkerPath. Tells you whether the "Add to Home Screen" path actually works.
primaryFaviconstringBest available favicon URL
countnumberTotal number of unique icons discovered
scorenumberFavicon health score (0-100)
gradestringLetter grade (A-F) based on score
recommendationsarraySuggestions to improve favicon coverage

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/favicon?domain=github.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/favicon?domain=github.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/favicon?domain=github.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Favicon guide

Learn the concepts, choose a practical workflow, and interpret the observations from Favicon before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Favicon endpoint live in the playground.

    Favicon API Reference | EdgeDNS