# Stableflare Browser Links Extractor

> Stableflare Browser Links Extractor is a paid API for AI agents from stableflare.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Renders a URL or HTML in a headless Chromium browser and extracts all links from the rendered page

## Facts

- Endpoint: POST https://stableflare.dev/api/browser/links
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stableflare-browser-links-extractor-5d31105b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5RLGMd8hvy7zGRjUDjEfq

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 stableflare-browser-links-extractor-5d31105b -d '<json body>'
```

Example prompt: Can you render https://news.ycombinator.com in a headless browser and extract all the links from the page? Wait until the network is idle before pulling them.

## When to prefer this

Use this endpoint when you need to extract links from pages that rely on JavaScript rendering, single-page applications, or dynamic content that a simple HTTP GET cannot capture. Prefer this over static HTML parsers when the target page loads links via client-side rendering. The pay-per-request model ($0.02 USDC via x402) is ideal for agents that need occasional on-demand link extraction without managing API subscriptions.

## Known failure modes

- URL is unreachable or returns a non-2xx status — rendering fails or returns empty links
- Page never reaches the specified waitUntil state (e.g. networkidle0 timeout) — request times out
- Invalid CSS selector in waitForSelector — selector error returned
- Authentication credentials rejected by target site — page renders login wall instead of content
- HTML/URL not provided — missing required input error
- Payment not provided or insufficient — x402 payment required error

## How this service works

Extract all links from any URL. Optionally filter to visible-only or same-domain links.

## Output

A list of links (URLs/hrefs) extracted from the fully rendered page after JavaScript execution, pulled via Cloudflare's headless Chromium browser.

## Example request

```json
{
 "url": "https://example.com",
 "gotoOptions": {
  "timeout": 5000,
  "waitUntil": "domcontentloaded"
 },
 "screenshotOptions": {
  "type": "png",
  "fullPage": false
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "URL to render"
  },
  "html": {
   "type": "string",
   "description": "HTML content to render instead of URL"
  },
  "cookies": {
   "type": "array",
   "items": {
    "type": "object",
    "propertyNames": {
     "type": "string"
    },
    "additionalProperties": {}
   }
  },
  "userAgent": {
   "type": "string"
  },
  "gotoOptions": {
   "type": "object",
   "properties": {
    "timeout": {
     "type": "number"
    },
    "waitUntil": {
     "enum": [
      "load",
      "domcontentloaded",
      "networkidle0",
      "networkidle2"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "authenticate": {
   "type": "object",
   "required": [
    "username",
    "password"
   ],
   "properties": {
    "password": {
     "type": "string"
    },
    "username": {
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "waitForSelector": {
   "type": "string",
   "description": "CSS selector to wait for"
  },
  "visibleLinksOnly": {
   "type": "boolean"
  },
  "setExtraHTTPHeaders": {
   "type": "object",
   "propertyNames": {
    "type": "string"
   },
   "additionalProperties": {
    "type": "string"
   }
  },
  "excludeExternalLinks": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stableflare-browser-links-extractor-5d31105b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stableflare.dev](https://www.zero.xyz/host/stableflare.dev/llms.txt)
