/v1/branding endpoint

Logo URL, favicon, and primary brand color palette extracted from CSS.

Language:
POST

/v1/branding

10 credits

Extracts branding assets from the page: best-match logo image URL, favicon, and dominant color palette (up to 3 colors) ranked by frequency in CSS. Neutral colors (black, white, near-black, near-white) are filtered out.

Request body

fieldtypereqdescription
urlstringyesFull URL of the site. Must include protocol (https://).
options.timeoutnumbernoTimeout in ms. Default: 30000. Max: 60000.

Example

curl -X POST https://contextforai.ashutoshswamy.in/v1/branding \
  -H "Authorization: Bearer cfai_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Response

200 OK
{
  "url": "https://example.com",
  "logo": "https://example.com/logo.svg",
  "colors": [
    { "name": "primary",   "hex": "#1A73E8" },
    { "name": "secondary", "hex": "#34A853" },
    { "name": "accent",    "hex": "#EA4335" }
  ]
}
← Full API reference: authentication, errors, rate limits, billing