Pay 0.005 USDC, send a URL, get the structured OpenGraph + meta-tag preview every link-preview / social-card / classify-before-scrape pipeline needs. Returns og:title, og:description, og:image, og:type, og:site_name, og:url, the full twitter:* card block, plus standard HTML head fields (title, description, canonical, favicon, lang). Pure JS regex extraction, no LLM, no headless browser. 8s timeout, 512 KB body cap, non-HTML rejected. The lightweight pre-flight before paying for the heavier render-pro extraction.
curl -X POST https://app.heinrichstech.com/v1/cdp/og-card \
-H 'content-type: application/json' \
-d '{}'
# 1. Server returns 402 with a WWW-Authenticate: X402 challenge.
# 2. Pay 0.005 USDC to 0xDa2F35d283c42dd60B965322394bc658a5c1769F on Base mainnet
# (your x402 client signs the EIP-712 authorization).
# 3. Retry the same request with the X-PAYMENT header. The Coinbase CDP
# Facilitator verifies and settles, then the response unlocks.
import { x402Fetch } from '@bitbooth/x402-client';
const res = await x402Fetch('https://app.heinrichstech.com/v1/cdp/og-card', {
method: 'POST',
body: JSON.stringify({}),
wallet: process.env.AGENT_PRIVATE_KEY, // signs X-PAYMENT EIP-712
network: 'eip155:8453', // Base mainnet
});
const data = await res.json();
Every x402 client and ecosystem indexer can discover this endpoint without scraping. Hit the JSON feeds below or read the OpenAPI spec directly.