{"name":"402s.shop API","version":"1.0.0","description":"Pay-per-call HTTP 402 utility endpoints for AI agents.","auth":{"type":"bearer","header":"Authorization: Bearer ap_live_...","purchase_url":"https://402s.shop"},"payment":{"protocol":"HTTP/402","pricing":[{"package":"small","amount_usd":1,"credits":5},{"package":"medium","amount_usd":5,"credits":30},{"package":"large","amount_usd":20,"credits":150}],"cost_per_call":1},"endpoints":[{"path":"/api/v1/qr-code","method":"POST","credits":1,"description":"Generate a QR code PNG from text","request":{"text":"string (required)","size":"number (optional, 100-1000)"},"response":{"content_type":"image/png"}},{"path":"/api/v1/og-image","method":"POST","credits":1,"description":"Generate a 1200x630 social media OG image","request":{"title":"string (required)","subtitle":"string","theme":"\"dark\" | \"light\""},"response":{"content_type":"image/png"}},{"path":"/api/v1/screenshot","method":"POST","credits":1,"description":"Take a screenshot of any URL","request":{"url":"string (required)","viewport":"{width,height}","fullPage":"boolean"},"response":{"content_type":"image/png"}},{"path":"/api/v1/pdf-from-url","method":"POST","credits":1,"description":"Convert any URL to PDF","request":{"url":"string (required)","format":"\"A4\" | \"Letter\" | \"Legal\""},"response":{"content_type":"application/pdf"}},{"path":"/api/v1/word-count","method":"POST","credits":1,"description":"Count words and reading time on any URL","request":{"url":"string (required)"},"response":{"content_type":"application/json"}},{"path":"/api/v1/extract-metadata","method":"POST","credits":1,"description":"Extract Open Graph and meta tags from any URL","request":{"url":"string (required)"},"response":{"content_type":"application/json"}},{"path":"/api/v1/extract-emails","method":"POST","credits":1,"description":"Find email addresses on a webpage","request":{"url":"string (required)"},"response":{"content_type":"application/json"}},{"path":"/api/v1/website-tech","method":"POST","credits":1,"description":"Detect frameworks, CMS, and analytics tools","request":{"url":"string (required)"},"response":{"content_type":"application/json"}},{"path":"/api/v1/whois","method":"POST","credits":1,"description":"Get domain registration data","request":{"domain":"string (required)"},"response":{"content_type":"application/json"}},{"path":"/api/v1/domain-check","method":"POST","credits":1,"description":"Check if a domain is available","request":{"domain":"string (required)"},"response":{"content_type":"application/json"}},{"path":"/api/v1/youtube-transcript","method":"POST","credits":1,"description":"Get YouTube video transcript","request":{"url":"string (required)","lang":"string (optional, default \"en\")"},"response":{"content_type":"application/json"}},{"path":"/api/v1/summarize","method":"POST","credits":1,"description":"AI-powered text or URL summarization","request":{"text":"string OR url: string","length":"\"short\" | \"medium\" | \"long\""},"response":{"content_type":"application/json"}}],"error_responses":{"400":{"error":"bad_request","description":"Invalid request body or missing required fields"},"401":{"error":"invalid_api_key","description":"API key missing or invalid"},"402":{"error":"payment_required","description":"Out of credits — top up at the purchase URL"},"422":{"error":"processing_failed","description":"External resource fetch failed (no credit deducted)"}},"headers":{"WWW-Authenticate":"Returned with 402 — Bearer realm, charge, topup_url","X-Credits-Remaining":"Returned with every successful call"}}