/v1/tools/read_brandpricedRead a brand from a website
Reads a website's colours, fonts and logo into a draft Brand Kit to check: the page's background, text and accent colours from where the site's own CSS uses them, its fonts as Scrub draws them, its logo and its name, from a public web address.
Takes address (text). Returns kit (a draft Brand Kit's look (the page's background, its text and accent colours, its text font as Scrub draws it, and the logo), with everything found on the site and where it was used, to check before it is saved), logo (the site's logo, as the page draws it; an SVG keeps its drawing and nothing that runs or reaches out).
$0.01 a read.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
address | string | Required | The website's address, such as example.com or https://www.example.com/about. Only public websites are read; its home page usually says the most about its look. |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/read_brand \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"address":"…"}'Answer
{
"ok": true,
"result": {
"job_id": "job_…",
"status": "running",
"price_usd": "$…"
}
}It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.
Every call can also answer an error: what comes back. Try it with your key from Account.