{"name":"Hyperdope Video L402","description":"Lightning-gated video streaming. Pay per video, no accounts needed.","protocol":"L402","price_sats":10,"token_expiry_seconds":14400,"endpoints":{"stream":{"url":"/api/l402/videos/{hash}/master.m3u8","method":"GET","auth":"L402","cost_sats":10,"description":"HLS video stream. Returns 402 with Lightning invoice. Pay and re-request with L402 token."},"browse":{"url":"/api/homepage","method":"GET","auth":"none","description":"Browse featured and recent videos. Extract videoHash from results to use with stream endpoint."},"search":{"url":"/api/search?q={query}","method":"GET","auth":"none","description":"Search videos by keyword. Returns titles, hashes, and metadata."},"category":{"url":"/api/category/{name}","method":"GET","auth":"none","description":"Browse by category. Categories: Bitcoin, Politics, History, Cosmology, Memes, Vibes."},"health":{"url":"/api/l402/health","method":"GET","auth":"none","description":"L402 system health check."}},"consumption":{"type":"browser","action":"Open the player URL with the L402 token to play the video in the browser.","player_url":"https://hyperdope.com/player.html?v={hash}&token={token}","token_delivery":"query_param","token_encoding":"URL-encode the full macaroon:preimage string as the {token} parameter"},"l402_flow":["1. Browse or search to find a video hash (GET /api/homepage or /api/search?q=bitcoin)","2. Request the stream: GET /api/l402/videos/{hash}/master.m3u8","3. Server returns 402 with WWW-Authenticate: L402 macaroon=\"...\", invoice=\"...\"","4. Pay the Lightning invoice. Your wallet returns a preimage (64-char hex).","5. Re-request with header: Authorization: L402 {macaroon}:{preimage}","6. For browser playback: open https://hyperdope.com/player.html?v={hash}&token={url_encoded_macaroon:preimage}"],"registry":"https://l402.directory/api/services"}