REST Reference
FAVINDEX API Documentation
Programmatic access to bidirectional favicon lookups, historical icon timelines, and embedded EXIF/XMP/PNG/SVG metadata.
Pass your API key on every /api/search/* and /icon/* request via
Authorization: Bearer fvx_live_... or
X-API-Key.
Base URL: https://favindex.sh
Free Plan & Limits
$0/mo- 50 requests / day per account, shared by all your API keys.
- Up to 2 API keys (
fvx_live_…), created after signing in with a magic link. No card required. - Full access to every endpoint below: domain, hash, upload, history and icon metadata, including
?crawl=false. - The quota resets at 00:00 UTC. Once it is used up, requests return
429with aRetry-Afterheader.
Need more volume? Contact us.
/api/search/domain?q=<domain>[&crawl=false]
Returns the current favicon, embedded icon_metadata, full icon_history, current related_domains, and historical_related_domains.
Append &crawl=false for a fast non-blocking cache check (~20 ms): if unindexed, the API returns immediately with found: false, queued_async: true and schedules a priority background crawl.
curl -s -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \ "https://favindex.sh/api/search/domain?q=github.com" # Fast non-blocking lookup + async priority crawl curl -s -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \ "https://favindex.sh/api/search/domain?q=github.com&crawl=false"
{
"domain": "github.com",
"found": true,
"status": "ok",
"crawled_on_the_fly": false,
"source_url": "https://github.com/favicon.svg",
"last_checked_at": 1764536400,
"icon": {
"sha256": "a3f5c8e1d9b2...94e7c10f",
"mmh3": -1864074548,
"mime_type": "image/svg+xml",
"byte_size": 1524,
"width": 32,
"height": 32,
"first_seen_at": 1758001200,
"similarity_status": "processed",
"icon_url": "/icon/a3f5c8e1d9b2...94e7c10f"
},
"icon_metadata": {
"file_created_at": 1701234567,
"file_modified_at": 1701234567,
"file_software": "Adobe Illustrator 27.0",
"meta": {
"svg_generator": "Adobe Illustrator 27.0"
},
"extracted_at": 1764536400
},
"metadata": {
"icon_last_modified": "Wed, 29 Nov 2023 05:09:27 GMT"
},
"icon_history": [
{
"sha256": "a3f5c8e1d9b2...94e7c10f",
"mmh3": -1864074548,
"mime_type": "image/svg+xml",
"byte_size": 1524,
"width": 32,
"height": 32,
"icon_url": "/icon/a3f5c8e1d9b2...94e7c10f",
"source_url": "https://github.com/favicon.svg",
"first_seen_at": 1758001200,
"last_seen_at": 1764536400
}
],
"related_domains": [
{ "domain": "docs.github.com", "source_url": "https://github.com/favicon.svg" }
],
"historical_related_domains": [
{
"domain": "legacy-portal.example.net",
"source_url": "https://legacy-portal.example.net/favicon.ico",
"first_seen_at": 1750000000,
"last_seen_at": 1761000000,
"current_status": "ok",
"current_icon_sha256": "7b219f...c410",
"current_icon_url": "/icon/7b219f...c410"
}
]
}
&crawl=false (unindexed domain){
"domain": "github.com",
"found": false,
"status": "queued",
"queued_async": true,
"icon": null,
"icon_metadata": null,
"icon_history": [],
"related_domains": [],
"historical_related_domains": []
}
/api/search/hash?sha256=<hex> | ?mmh3=<int>
Reverse lookup by cryptographic sha256 (64 hex chars) or Shodan-compatible mmh3 signed 32-bit integer. Returns both active and historical domains that served the favicon.
curl -s -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \ "https://favindex.sh/api/search/hash?mmh3=-1864074548" curl -s -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \ "https://favindex.sh/api/search/hash?sha256=<64_hex_chars>"
{
"found": true,
"icon": {
"sha256": "a3f5c8e1d9b2...94e7c10f",
"mmh3": -1864074548,
"mime_type": "image/svg+xml",
"byte_size": 1524,
"first_seen_at": 1758001200,
"similarity_status": "processed",
"icon_url": "/icon/a3f5c8e1d9b2...94e7c10f"
},
"icon_metadata": null,
"domains": [
{ "domain": "acme-cloud.example.com", "source_url": "https://acme-cloud.example.com/favicon.svg" },
{ "domain": "status.acme-cloud.example.com", "source_url": "https://acme-cloud.example.com/favicon.svg" }
],
"historical_domains": [
{
"domain": "old-portal.example.net",
"source_url": "https://old-portal.example.net/favicon.ico",
"first_seen_at": 1751000000,
"last_seen_at": 1760500000,
"current_status": "ok",
"current_icon_sha256": "91de02...ab77",
"current_icon_url": "/icon/91de02...ab77"
}
]
}
/api/search/upload
Upload a raw favicon image (multipart/form-data, max 512 KB) or send {"url": "https://..."} to compute SHA-256 & MMH3 hashes and find current and historical matching domains.
curl -s -X POST -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \
-F "file=@./favicon.ico" \
"https://favindex.sh/api/search/upload"
curl -s -X POST -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"url":"https://github.com/favicon.ico"}' \
"https://favindex.sh/api/search/upload"
{
"matched_by": "sha256",
"query_icon": {
"sha256": "e4b9a02f...81cc",
"mmh3": 116323821,
"mime_type": "image/x-icon",
"byte_size": 4286
},
"icon": {
"sha256": "e4b9a02f...81cc",
"mmh3": 116323821,
"mime_type": "image/x-icon",
"byte_size": 4286,
"icon_url": "/icon/e4b9a02f...81cc"
},
"icon_metadata": {
"file_created_at": null,
"file_modified_at": 1714003200,
"file_software": "Adobe Photoshop 24.0",
"meta": {
"container": "ico+png",
"exif_software": "Adobe Photoshop 24.0"
},
"extracted_at": 1764536400
},
"domains": [
{ "domain": "github.com", "source_url": "https://github.com/favicon.ico" }
],
"historical_domains": [],
"similarity": {
"enabled": true,
"min_score": 85,
"results": []
}
}
The similarity block lists visually similar indexed favicons, in the same format as /api/search/similar. Add ?min_score=70 to the URL to include similar-style matches.
/api/search/similar?sha256=<hex> | ?mmh3=<int>
Visually similar favicons: resized, recompressed, retouched or mirrored copies of an indexed icon, a common sign of phishing. Each result has a similarity_index from 0 to 100 (70% shape, 30% colour): 85+ near identical, 70–84 similar style. Optional min_score (70–100, default 85) and limit (1–50, default 20). The query icon is also tried mirrored, flipped and rotated; orientation tells which one matched. SVG and WebP icons cannot be compared yet. The domain, hash and upload searches return the same similarity block inline; add similar=false to skip it.
curl -s -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \ "https://favindex.sh/api/search/similar?sha256=<64_hex_chars>&min_score=85"
{
"found": true,
"icon": { "sha256": "a3f5c8e1d9b2...94e7c10f", "mmh3": -1864074548, "icon_url": "/icon/a3f5c8e1d9b2...94e7c10f" },
"similarity": {
"enabled": true,
"min_score": 85,
"candidates_checked": 14,
"candidates_truncated": false,
"results": [
{
"sha256": "7c21e09a4f...d3b8",
"mmh3": 1520345981,
"icon_url": "/icon/7c21e09a4f...d3b8",
"similarity_index": 94,
"label": "near_identical",
"orientation": "mirror",
"shape_bits": 9,
"color_diff": 4,
"dhash_bits": 1,
"domains": [{ "domain": "acme-cloud-login.example.net", "source_url": "https://acme-cloud-login.example.net/favicon.ico" }],
"more_domains": false
}
]
}
}
/icon/:sha256
Serves the immutable binary favicon from object storage. Requires your API key, like the search endpoints; each download counts toward your daily quota and returns the same X-RateLimit-* headers. Use the icon_url paths returned by the search endpoints. Without a key the API answers 401 API_KEY_REQUIRED.
curl -s -H "Authorization: Bearer fvx_live_<YOUR_API_KEY>" \ -o favicon.bin "https://favindex.sh/icon/<sha256>"
Rate-Limit & Plan Headers
X-RateLimit-Limit
Daily request allowance assigned to your API key.
X-RateLimit-Remaining
Remaining requests left in the current UTC day.
X-RateLimit-Reset
Unix timestamp (UTC) when the daily quota resets.
X-API-Plan
Active plan identifier (e.g. free).
Error Response Format
{
"code": "QUOTA_EXCEEDED",
"error": "Daily API quota reached. Resets at 00:00 UTC.",
"retry_after_sec": 14400
}