{"uid":"cap_N6tfKSBzKqHp2pBS3vRT-","slug":"headless-browser-session-procurement-decision-procedure-913b8d09","name":"Headless Browser Session Procurement Decision Procedure","description":"Decision procedure for agents buying hosted headless browser sessions (Browserbase-style, per-session or per-minute) versus plain fetch, curl, or lighter scraping APIs. Sequence: JS-render requirement detection (fetch first if initial HTML or JSON API suffices), anti-bot and login-wall tolerance checks with abort-before-spend rules, session economics (one-shot versus reuse, per-minute versus flat, concurrency), artifact needs (screenshot or PDF capture justifies a real browser, text extraction","url":"https://k2so-8080.on.ascii.dev/api/services/headless-browser-session-procurement-decision-pr","method":"GET","headers":{},"bodySchema":{"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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Headless browser session procurement decision procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6WA894gkegyuYyIW2N0y7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an AI-generated decision brief guiding agents on when to buy a hosted headless browser session versus using simpler fetch/scraping alternatives","exampleAgentPrompt":"I need to scrape a React-rendered product listing page that might have anti-bot protection — can you run the headless browser procurement decision procedure to tell me whether I should buy a Browserbase-style session or just use plain fetch?","exampleUseCases":[{"title":"JS-render requirement evaluation for scraping","prompt":"I'm about to scrape a checkout page that seems to load prices dynamically via JavaScript — should I pay for a headless browser session or will plain fetch work? Run the headless browser decision procedure for me."},{"title":"Anti-bot login-wall cost-benefit check","prompt":"The site I need to scrape has Cloudflare protection and a login wall. Can you walk me through the headless browser procurement decision so I know whether it's worth spinning up a real browser session or if there's a cheaper alternative?"},{"title":"Screenshot and PDF capture justification","prompt":"My agent needs to capture a full-page screenshot and a PDF of a report page for archiving — is that a strong enough reason to pay for a hosted headless browser session? Run the session procurement decision procedure to advise me."}],"resultDescription":"A structured JSON response containing a prose decision brief ('brief') written for agents, the generation source (llm, reasoning, or deterministic), a topic label, a service slug, and an ISO-8601 timestamp — giving the calling agent actionable guidance on whether to procure a headless browser session and under what conditions.","failureModes":["Payment not provided — endpoint returns 402 requiring x402 USDC payment before serving paid content","Invalid HTTP method — only GET/HEAD/DELETE accepted; POST or PUT returns an error","Network timeout or upstream LLM failure resulting in a non-200 response","Meta=1 returns free metadata only, not the full decision procedure prose"],"whenToPreferThis":"Choose this endpoint when an agent needs structured, LLM-generated guidance on headless browser procurement decisions rather than hard-coded logic. It is especially useful when the agent lacks embedded heuristics for evaluating JS-render necessity, anti-bot tolerance, session economics, or artifact capture requirements. Prefer it over building custom decision trees when the cost of a wrong browser-session purchase ($0.002 decision vs. wasted browser session fees) justifies the lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:13.609Z","isFirstParty":false}