Extract a site's brand assets
Returns a site's brand assets (identity, logos, icons, colors, fonts, images, videos and social links) from one rendered page load.
Requires scope: scrape
Credits (credits per successful request)
| engine | direct | datacenter | residential | mobile |
|---|---|---|---|---|
| full_browser_rendering | 8 | 8 | 32 | 32 |
Failures cost 0; cache hits cost the price of the render that stored it. The billed amount is in the X-Credits-Charged response header, and the monthly allowance left after it in X-Credits-Remaining.
Returns a site's brand assets (identity, logos, icons, colors, fonts, images, videos and social links) from one rendered page load. The page is rendered once, with JavaScript, and a single script reads everything from the live DOM.
Links only. Nothing is downloaded, rehosted or returned as bytes: logos, icons, images and font files are URLs on the target site, and a logo's inline SVG markup is returned only when it is small enough (up to 100 KB) and otherwise as null with its URL kept. Videos are returned as platform or embed links with a poster image; a direct video file (.mp4, .webm, .mov, .m4v, .ogv, .m3u8, .mpd) is never returned, even when a <video> element uses one.
No LLM is used. Extraction is deterministic, from the page's markup, styles and metadata.
Use include to ask for only some sections. Only the sections you ask for appear in the response. Each section is capped (logos 10, icons 20, colors 12, fonts 10, images 50, videos 20, socials 20). A section that fails on the page is empty and named in warnings; the request still succeeds.
Use pages (1 to 5, default 1) to also read the top pages of the site's sitemap. The start page is always read; the other pages are chosen by path (about, brand, press, media, company, contact, team, pricing first), then by depth. The merged answer carries pages with each page's status and credits, and every item carries the page it came from. Latency grows with the pages read.
hints is always present: short sentences on what to try next when a requested section is empty.
Billing: priced as full-browser rendering, not as a JavaScript-rendered scrape, because the brand script runs as an evaluate action that only a full browser can run: 8 credits on a direct or datacenter exit, with no surcharge (32 on a residential or mobile exit). screenshot=true renders in full-browser mode at the same price. With pages above 1, each page is billed as one such render, and each sitemap file read is billed as a plain scrape. Failures cost 0. A cache hit is billed at the same price as the render that stored it, and the cache behaves as it does for /v1/scrape. Check X-Credits-Charged.
Not idempotent: each call bills again, whether it renders the page or is served from cache.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body of POST /v1/brand. Unknown fields are rejected with 400.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/brand" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com" }'{ "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 } ], "icons": [ { "url": "https://example.com/favicon-32.png", "rel": "icon", "sizes": "32x32", "type": "image/png" } ], "colors": [ { "hex": "#1d4ed8", "role": "primary", "source": "theme_color", "confidence": 0.9 } ], "fonts": [ { "family": "Inter", "role": "body", "weights": [ 400, 600 ], "source": "google", "files": [ "https://fonts.gstatic.com/s/inter/v13/example.woff2" ] } ], "images": [ { "url": "https://example.com/og.png", "alt": "Example widgets", "width": 1200, "height": 630, "role": "og" } ], "videos": [ { "provider": "youtube", "id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "embed_url": "https://www.youtube.com/embed/dQw4w9WgXcQ", "poster": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg" } ], "socials": [ { "network": "github", "url": "https://github.com/example" } ], "credits": 8, "engine": "browser", "warnings": []}