# Creative Tim ShadCN Block Code Viewer (x402 Pay-per-View)

> Creative Tim ShadCN Block Code Viewer (x402 Pay-per-View) is a paid API for AI agents from x402.creative-tim.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the source code for a named ShadCN UI component block after a $0.01 USDC micropayment via x402

## Facts

- Endpoint: GET https://x402.creative-tim.com/shadcn-blocks/user-payment
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/creative-tim-shadcn-block-code-viewer-x402-pay-per-view-d2139e03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8xw0JYhw5FCoG2gQ9QitX

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 creative-tim-shadcn-block-code-viewer-x402-pay-per-view-d2139e03
```

Example prompt: Can you fetch the source code for the 'testimonials-02' ShadCN block from Creative Tim — I want to see the component HTML/JSX for it.

## When to prefer this

Use this endpoint when you need the source code for a specific named ShadCN UI block from Creative Tim and are willing to pay $0.01 USDC per fetch. Ideal for agents automating frontend scaffolding or retrieving premium UI templates programmatically.

## Known failure modes

- Payment not processed or x402 header missing — returns HTTP 402 Payment Required
- Invalid or unknown block_name — may return 404 or empty result
- No block_name provided defaults to testimonials-02, potentially returning unexpected content
- Network timeout or server error returns 5xx

## How this service works

View component code after payment

## Output

The agent receives the full source code or content of the specified ShadCN UI block (e.g. testimonials-02, cruds-01), gated behind a $0.01 USDC x402 micropayment. If no block_name is provided, it defaults to testimonials-02.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "block_name": {
       "type": "string",
       "description": "Name of the block to fetch (e.g., testimonials-02, cruds-01). Defaults to testimonials-02 if not provided."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/creative-tim-shadcn-block-code-viewer-x402-pay-per-view-d2139e03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.creative-tim.com](https://www.zero.xyz/host/x402.creative-tim.com/llms.txt)
