POST /v1/brand
Turn a domain into a brand and firmographic profile in one call: logo, colors, a primary brand color, fonts, social handles and NAICS industry, read from the company's own homepage, the stylesheets it links and its logo file. The profile carries one completeness score for the whole record, the page each found field was read from, and a freshness timestamp.
Request
POST /v1/brand
Content-Type: application/json
x-api-key: YOUR_KEYBody
| Field | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Domain or URL, e.g. stripe.com or https://stripe.com/about. |
url | string | No | Alias for domain. |
ignoreRobotsTxt | boolean | No | Default false. robots.txt is respected by default; set true to opt out. |
Example
curl -X POST https://api.superscraper.dev/v1/brand \
-H "x-api-key: ss_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"domain": "stripe.com"}'Response
HTTP 200 on success. HTTP 400 if the domain is missing or the site cannot be fetched.
{
"domain": "stripe.com",
"name": "Stripe",
"description": "Financial infrastructure for the internet",
"logo": "https://images.stripeassets.com/.../favicon.svg",
"favicon": "https://images.stripeassets.com/.../favicon.svg",
"colors": ["#533afd", "#ffffff", "#95a4ba", "#acacff", "#7680f5", "#32325d", "#ffd601", "#ee30fb"],
"palette": {
"primary": "#533afd",
"confidence": "high",
"source": "logo+css",
"logo": ["#ffffff", "#533afd"],
"site": ["#533afd", "#ffffff", "#95a4ba", "#acacff", "#7680f5", "#32325d", "#ffd601", "#ee30fb"]
},
"fonts": ["sohne-var", "SourceCodePro"],
"socials": { "linkedin": "https://linkedin.com/company/stripe", "twitter": "https://x.com/stripe" },
"industry": { "naics": "522320", "title": "Financial Transactions Processing, Reserve, and Clearinghouse Activities", "confidence": 0.8 },
"_completeness": 1,
"_provenance": {
"logo": "https://stripe.com",
"colors": "https://stripe.com",
"logo_colors": "https://images.stripeassets.com/.../favicon.svg",
"industry": "https://stripe.com"
},
"_freshness": "2026-07-21T04:00:00.000Z"
}How each field is found
| Field | Source, in order |
|---|---|
logo | The logo in the page header or nav (an image, or the inline SVG of the home link), then the Organization logo in the page's JSON-LD, an image on the page marked as the logo, the apple-touch-icon, and last a declared icon (SVG, a PNG of 64px or more, the favicon). The og:image share picture is never used. An inline SVG is returned as a data:image/svg+xml;base64 URI. It is sanitised by allowlist: only drawing elements and geometry and paint attributes are kept, and scripts, stylesheets, links, text, images, animation and every reference outside the file are dropped. The sanitised SVG is at most 8 KB, so the URI (its base64 form) is at most about 11 KB; a larger SVG is skipped and the next source is used. Show it as an image only. |
logo_source | Where logo was found: header_img, header_svg, jsonld, page_img, touch_icon or favicon. touch_icon and favicon mean no logo was found and an icon stands in for it. null when logo is null. |
colors | Up to 8 hex strings. The theme-color (and msapplication-TileColor, mask-icon color) the site declares comes first (a favicon generator's stock value, such as #da532c or plain white, counts only when the site's CSS also uses it), then CSS variables named brand, primary or accent with var() chains resolved, then the colors its CSS uses most. Near-duplicate shades are merged, common framework defaults (Bootstrap, WordPress presets, social buttons) are left out, and at most two greys are kept. |
palette | The primary brand color, where it came from, and the logo and site palettes. See Palette and primary color. |
fonts | Up to 8 family names from font-family and font declarations, font CSS variables, @font-face and Google Fonts links, most used first. Icon fonts are dropped; monospace and system fonts (Arial, Helvetica and the like) rank last. Locale and script editions of a family (Noto Sans JP, Noto Sans Arabic) are listed once, under the family name. |
industry | A NAICS code matched by keyword from the page title, meta and Open Graph descriptions, meta keywords and the JSON-LD Organization description. null when no rule matches or the match scores under 0.5; _reason is then industry_uncertain, unless the profile is also thin. |
Colors and fonts on most current sites live in linked stylesheets, not in the HTML. Brand reads up to 40 of them (same site first, then CDN hosts), at most 512 KB each and 2 MB and 6 seconds in total. Private, loopback and cloud metadata addresses are refused on every request and every redirect.
Palette and primary color
palette sits next to colors, and colors is unchanged.
| Field | Meaning |
|---|---|
palette.primary | One hex color, or null when only greys, black and white were found. |
palette.source | declared, logo+css, css or logo: the rule below that picked primary. null when there is no primary. |
palette.confidence | high, medium or low, as set by the rule. |
palette.logo | Up to 6 colors read from the logo file, largest share first. Empty when the logo could not be read. |
palette.site | The colors read from the site's CSS and markup, the same list as colors. |
The first rule that finds a color picks primary. Greys, black and white never count, so a black or white logo
adds nothing.
- Declared. A color the site declares:
theme-color,msapplication-TileColor, themask-iconcolor, or a CSS variable named for the brand (--brand,--primary,--color-primary,--brand-color). Confidence ishigh, ormediumwhen the logo's colors disagree with it. The stock values favicon generators write (#da532c,#2b5797,#00aba9,#603cba,#b91d47,#ffc40d,#2d89ef,#5bbad5, white, black) count as declared only when the site's CSS uses the same color. - Logo and CSS agree. A logo color that also appears in the CSS, within a CIEDE2000 distance of 10. The CSS value
is returned. Confidence is
high. - CSS button or link color. The color the site paints its buttons and links with. Confidence is
medium, orlowwhen the logo has colors and none of them match. - Logo only. The logo's main color, when the CSS has no button or link color. Confidence is
medium. - Most used CSS color. Confidence is
low.
An SVG logo gives its fill, stroke and stop-color values exactly (the first 5,000 elements are read). A PNG,
JPEG, WebP or GIF logo is reduced to its main colors by median cut, skipping transparent, near-white and near-black
pixels. The logo file is fetched once, at most 512 KB and within 4 seconds, at the same time as the stylesheets, and
private, loopback and cloud metadata addresses are refused. An inline SVG logo is read from the page itself, with
no request.
Completeness, provenance and freshness
| Field | Meaning |
|---|---|
_completeness | 0 to 1. 0.35 plus 0.1 per signal found (logo, colors, fonts, socials, industry, a usable name, a description), max 1. Capped at 0.35 when only a favicon was found and at 0.5 for a thin profile. See What completeness means. |
_provenance | Per-field source trail: which URL each field came from. Only present for fields that resolved. For colors and fonts the URL is the homepage; the values may come from that page's own CSS or from the stylesheets it links. logo_colors is the logo file URL, present when palette.logo is not empty. |
_freshness | When this profile was assembled (ISO 8601). |
brand_meta | { partial, reasons[] }: which caps cut the analysis short. partial is true when any reason is listed, and colors or fonts may then be missing. Reasons: stylesheet_budget (the 6 second stylesheet budget ran out), stylesheet_count_cap (more than 40 linked stylesheets), stylesheet_byte_cap (a stylesheet was cut at 512 KB), stylesheet_total_byte_cap (the 2 MB total was reached), stylesheet_timeout (a stylesheet did not arrive within 4 seconds), css_cap (CSS past 3 million characters was not read), var_budget (more than 5,000 CSS var() substitutions), var_depth_cap (a var() chain deeper than 7 levels), css_value_cap (a CSS value, or its var() expansion, was cut at 2,048 characters, or a custom property longer than 500 characters was dropped), button_scan_cap (more than 500 inline-styled buttons or links; the rest were not read), jsonld_node_cap (a JSON-LD block had more than 500 nodes; the logo search stopped there), page_analysis_budget (the page itself could not be analysed: its structure is over the parser limits, so only its text was read, or the analysis did not finish inside its time limit). |
Branch on _completeness: a low score means the site gave little to work with, so verify before acting. industry is
null when NAICS can't be classified (no 000000 filler).
Errors
| Status | Cause |
|---|---|
| 400 | `domain` is required: missing input |
| 400 | could not fetch site: the domain is unreachable or a blocked (private/loopback/metadata) target |
| 401 | missing or invalid API key |
Notes
- One call returns logo, colors, a primary color, fonts, socials and NAICS industry, which would otherwise take several requests.
- Each call reads the live site. When the business graph is on, the name, description, logo, socials, industry, colors and fonts are also saved to the company record. See Resolve to look up a company profile.