Get a logo from a domain
Turning a bare domain into a correct, usable logo usually means scraping, guessing favicon paths, and handling broken images yourself. Send a domain (or URL) to Fivicon’s Discover endpoint instead, and get back a normalized, scored list of logo assets you can render immediately.
Step-by-step
-
Choose the input you have: a domain like
fivicon.comor a URL likehttps://fivicon.com. -
POST to
/api/v1/discoverwith a JSON body. -
Parse
logos[]and pick a variant bytypeand quality fields (score,score_details,width,height).
Example request
$ curl -sS "https://api.fivicon.com/api/v1/discover" \ -H "Content-Type: application/json" \ -d '{"domain":"fivicon.com"}'
Example response
{
"domain": "fivicon.com",
"logos": [
{
"type": "primary",
"url": "https://static.fivicon.com/fivicon/primary.svg",
"width": 512,
"height": 512,
"format": "svg",
"score": 94,
"score_details": {
"format_points": 35,
"resolution_points": 30,
"asset_type_points": 20,
"file_size_points": 15,
"penalty_points": 0
}
},
{
"type": "icon",
"url": "https://static.fivicon.com/fivicon/icon.svg",
"width": 128,
"height": 128,
"score": 91
}
]
}
FAQ
Do I need to scrape websites to get a logo?
No. You send a domain to Fivicon and receive normalized asset URLs.
What if the company has multiple logo files?
The API returns a catalog-style list of variants. Pick the variant that matches your UI and quality requirements.
Do you return favicon information too?
Yes. Favicon is returned as one of the normalized asset types (along with other higher-quality variants when available).