# Headless Browser Session Procurement Decision Procedure

> Headless Browser Session Procurement Decision Procedure is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns an AI-generated decision brief guiding agents on when to buy a hosted headless browser session versus using simpler fetch/scraping alternatives

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/headless-browser-session-procurement-decision-pr
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/headless-browser-session-procurement-decision-procedure-913b8d09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N6tfKSBzKqHp2pBS3vRT-

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 headless-browser-session-procurement-decision-procedure-913b8d09
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## 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",
      "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
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/headless-browser-session-procurement-decision-procedure-913b8d09/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
