# CodePulse Brand Palette Extractor

> CodePulse Brand Palette Extractor is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Extracts the dominant brand color palette from any website URL

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/brand/palette
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-brand-palette-extractor-cf7ca329
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MM7oh9JgjBgo1Dycg0h_m

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability codepulse-brand-palette-extractor-cf7ca329 -d '<json body>'
```

Example prompt: Can you pull the brand color palette from https://stripe.com and give me the hex codes?

## When to prefer this

Use this endpoint when you need to programmatically extract a website's brand color palette without an API key, paying only $0.01 USDC per call. Prefer it over manual inspection or full browser automation when you just need hex color codes from a public-facing site. Ideal for design pipelines, brand audits, and competitive research where you need colors from arbitrary URLs at scale.

## Known failure modes

- URL is unreachable or returns non-200 status — may return supported: false or empty colors array
- Website uses heavy JavaScript rendering that prevents static scraping — lower confidence or empty result
- URL points to a non-visual or plain-text resource — colors array may be empty
- Paywalled or bot-protected pages may block extraction — warnings field will indicate issues
- Malformed URL input — likely returns validation error

## How this service works

Parses CSS hex and rgb colors on a target website to resolve brand colors.

## Output

Returns a JSON object containing an array of hex color codes (e.g. ['#38bdf8', '#0f172a']), a supported flag indicating whether the site's palette could be determined, a confidence level (e.g. 'high'), a data_as_of timestamp, any warnings, and a disclaimer. Colors represent the dominant brand colors extracted from the page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Website URL to extract colors from"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "colors": [
    "#38bdf8",
    "#0f172a"
   ]
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-brand-palette-extractor-cf7ca329/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
