Get Logo Image

GEThttps://api-logos.dataandapis.com/v1/logos/{domain}/image

Get Logo Image es un endpoint de Logos API. Todos los iconos que publica un sitio web, puntuados y servidos como imagen, solo con el dominio.

Envía tu clave en la cabecera X-Api-Key. Cada llamada cuesta 5 tokens; una clave gratuita incluye 500 tokens al mes.

Petición

Parámetros de ruta

ParámetroEjemplo
domaingithub.comObligatorio

Petición de ejemplo

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()

Respuesta de ejemplo

Respuesta de ejemplo
{
  "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)"
}