Get Logo Image
GEThttps://api-logos.dataandapis.com/v1/logos/{domain}/image
Get Logo Image is an endpoint of the Logos API. Every icon a website publishes, scored and served as an image, from just the domain.
Send your key in the X-Api-Key header. Each call costs 5 tokens; a free key includes 500 tokens a month.
Request
Path parameters
| Parameter | Example | |
|---|---|---|
| domain | github.com | Required |
Example request
curl
curl "https://api-logos.dataandapis.com/v1/logos/github.com/image" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-logos.dataandapis.com/v1/logos/github.com/image", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api-logos.dataandapis.com/v1/logos/github.com/image",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Example response
Example response
{
"note": "Binary response — the best icon itself, not JSON. Shown here as the headers the endpoint returns.",
"status": 200,
"headers": {
"Content-Type": "image/svg+xml",
"Cache-Control": "public, max-age=86400",
"X-Logo-Source": "https://github.githubassets.com/favicons/favicon.svg"
},
"body": "<svg width=\"32\" height=\"32\" ...> (959 bytes)"
}
