# Stableflare Browser Scrape

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

Renders a URL or HTML in a real browser and returns scraped content, with support for screenshots, CSS selectors, authentication, and custom viewport/headers

## Facts

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

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-scrape-ad3dd56e -d '<json body>'
```

Example prompt: Render the page at https://example.com in a headless browser — wait until the network is idle, then take a full-page PNG screenshot and return the scraped content. Use a 1280x800 viewport.

## When to prefer this

Use this endpoint when you need to scrape or screenshot JavaScript-heavy pages that require a real browser to render, especially when you want pay-per-request access without managing API keys or subscriptions. Prefer over static HTTP scrapers when the target page uses client-side rendering.

## Known failure modes

- URL unreachable or times out — timeout error
- Invalid CSS selector — selector not found error
- Authentication failure if credentials are wrong — 401 or empty response
- Page never reaches the requested waitUntil state — navigation timeout
- Invalid URL format — validation error on uri field
- Payment not completed — 402 Payment Required

## How this service works

Pay-per-request access to Replicate AI and Cloudflare Browser Rendering. No API keys, no subscriptions.

## Output

Returns rendered page content and/or a screenshot (PNG or JPEG) of the full page or a specific CSS-selected element, captured after the page has fully loaded according to the specified wait conditions.

## 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": {}
   }
  },
  "elements": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "selector"
    ],
    "properties": {
     "selector": {
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "description": "CSS selectors to scrape"
  },
  "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"
  },
  "setExtraHTTPHeaders": {
   "type": "object",
   "propertyNames": {
    "type": "string"
   },
   "additionalProperties": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stableflare-browser-scrape-ad3dd56e/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)
