spicrawlspicrawlDocs

Get a site's brand assets

Read a site's identity, logos, icons, colors, fonts, images, videos and social links from one rendered page load with POST /v1/brand. Links only, nothing downloaded, no LLM.

POST /v1/brand reads a site's brand assets in one call: its name and description, logos, favicons, theme colors, fonts, images, videos and social profiles. The page is rendered once, with JavaScript, and everything is read from that single load.

Links only. Nothing is downloaded, rehosted or returned as bytes. Logos, icons, images and font files come back as absolute URLs on the site. A video comes back as its platform or embed link with a poster image; a direct video file is never returned. No LLM is used, so the result is the same for the same page.

Minimal request

curl https://api.spicrawl.com/v1/brand \
  -H "Authorization: Bearer $SPICRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "include": ["identity", "logos", "colors"]
  }'

Choose sections

include takes any of identity, logos, icons, colors, fonts, images, videos and socials. Leave it out for all of them. Only the sections you ask for appear in the response, so a logo-only lookup stays small.

Latency

A brand request typically takes 5 to 20 seconds. It gives up after about 25 seconds with a 504 and the code ERR::UPSTREAM::TIMEOUT, and it is not retried, so set your client timeout to at least 30 seconds. If you hit the timeout, ask for fewer sections: the page work for the others is skipped. A section that runs out of time inside the page comes back empty, with a warning that names it.

What comes back

{
  "url": "https://example.com",
  "final_url": "https://example.com/",
  "identity": {
    "name": "Example",
    "description": "Example makes widgets.",
    "language": "en",
    "domain": "example.com",
    "theme_color": "#1d4ed8",
    "tagline": "Widgets for every workshop",
    "subtitle": "Example makes widgets for home makers and professional shops alike.",
    "cta": [
      { "text": "Get started", "url": "https://example.com/signup" },
      { "text": "Watch the demo", "url": null }
    ]
  },
  "logos": [
    { "url": "https://example.com/logo.svg", "svg": null, "format": "svg",
      "width": 0, "height": 0, "source": "header", "theme": "light", "score": 0.92 }
  ],
  "colors": [
    { "hex": "#1d4ed8", "role": "primary", "source": "theme_color", "confidence": 0.9 }
  ],
  "credits": 8,
  "engine": "browser",
  "warnings": []
}

identity also carries the hero text: tagline is the page's main headline, subtitle the line under it, and cta up to two primary buttons or links from the hero (url is null for a button with no link). Any of them is "" or [] when the page has no clear hero.

Each section is capped (10 logos, 20 icons, 12 colors, 10 fonts, 50 images, 20 videos, 20 social links). A logo's inline svg is included when it is at most 100 KB; otherwise svg is null and the url is kept. The full field list is in the API reference.

If one part of the page cannot be read, that section is empty and named in warnings. The request still succeeds.

Videos

Videos are returned as platform or embed links (youtube, vimeo, loom, wistia or other), with the page URL, an embed_url and a poster image. A <video> element that plays a direct file (.mp4, .webm, .mov and similar) is dropped, so you never receive a media file from the site.

Screenshot

"screenshot": true also returns a screenshot of the rendered page, in the same shape as on /v1/scrape. It renders in full-browser mode, which bills that tier instead of the JavaScript tier.

Scan more pages

A single page often has no logo, socials or colors: the homepage has them, an inner page does not. "pages": 5 also reads the top pages of the site's sitemap and merges them into one answer, in the same shape:

curl https://api.spicrawl.com/v1/brand \
  -H "Authorization: Bearer $SPICRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.com", "include": ["logos", "socials"], "pages": 5 }'

pages is from 1 to 5 and defaults to 1. The start page is always read. The other pages come from the site's sitemap (the first Sitemap: line of robots.txt, else /sitemap.xml), same host only, and are chosen by path: about, brand, press, media, company, contact, team and pricing first, then the shallower paths. Up to three pages are read at once.

The merged answer keeps identity from the start page, filling its empty fields from the other pages. Every list section is the union of the pages with duplicates removed, and each item carries "page", the URL it came from. The response adds pages, one entry per page read, with its status (ok, or the error code of a page that failed; a failed page does not fail the request) and its credits.

Each page is billed as one brand render, and each sitemap file read is billed as a plain fetch. Latency grows with the pages read.

hints is always present. When a section came back empty it says what to try: the homepage, or a footer, /about or /contact page for social links. For a single-page request it also suggests "pages": 5.

Credits

A brand request is priced as full-browser rendering, not as a JavaScript-rendered scrape, because the brand script runs as a browser action that only a full browser can run: 8 credits on a direct or datacenter exit, with no surcharge. On a residential or mobile exit it is that tier's full-browser price, 32 credits. A failed request costs nothing. A cache hit costs the same as the render that stored it, as with /v1/scrape. Check X-Credits-Charged on each response.

On this page