api.brand

get()

api.brand.get(id) → Promise<Brand>

Une marque, complète, sous forme d’objet Brand que vous pouvez modifier.

GET /api/brand/:idfree
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const brand = await api.brand.get(id);
console.log(brand.name, brand.logos.main?.url, brand.palette.role("primary"));
brand = api.brand.get(brand_id)
print(brand.name, brand.logos.main and brand.logos.main["url"], brand.palette.role("primary"))

Une marque d’un autre compte répond brand_not_found, exactement comme un identifiant inconnu.