# GEDX402 Browser Link Extractor

> GEDX402 Browser Link Extractor is a paid API for AI agents from browser.gedx402.com, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Extracts all hyperlinks (href and text) from a given URL or raw HTML using a headless browser, returning a structured list of link objects.

## Facts

- Endpoint: GET https://browser.gedx402.com/v1/browser/links
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-browser-link-extractor-119915fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g-rvIRPoqVD73CwQ6gdNf

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 gedx402-browser-link-extractor-119915fb
```

Example prompt: Can you grab all the links from https://example.com — I need the href and link text for every anchor on the page.

## When to prefer this

Choose this endpoint when you need to extract all hyperlinks from a dynamically rendered JavaScript-heavy page (not just static HTML), without managing API keys. Ideal for agents that need quick, pay-per-use link extraction via USDC micropayments on Base, Polygon, Arbitrum, World, or Solana.

## Known failure modes

- Invalid or unreachable URL returns an error or empty array
- Page requires JavaScript that times out before links render — use gotoOptions waitUntil: networkidle0
- Payment failure if USDC balance is insufficient on supported chain
- CSS selector returns no matching elements if page structure differs from expectation
- Raw HTML provided without a URL may yield incomplete link resolution for relative hrefs

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

Returns a JSON array of link objects, each containing 'href' (the full URL) and 'text' (the visible anchor text) for every hyperlink found on the rendered page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "HTTPS URL to load (required unless html is set)."
  },
  "html": {
   "type": "string",
   "description": "Raw HTML to render instead of fetching a URL."
  },
  "prompt": {
   "type": "string",
   "description": "Natural-language extraction prompt (for /json)."
  },
  "elements": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "Scrape selectors (for /scrape)."
  },
  "selector": {
   "type": "string",
   "description": "CSS selector for element capture or scrape."
  },
  "viewport": {
   "type": "object",
   "description": "Browser viewport width/height/deviceScaleFactor."
  },
  "pdfOptions": {
   "type": "object",
   "description": "PDF print options."
  },
  "gotoOptions": {
   "type": "object",
   "description": "Puppeteer goto options (e.g. waitUntil: networkidle0)."
  },
  "response_format": {
   "type": "object",
   "description": "JSON schema for structured /json extraction."
  },
  "screenshotOptions": {
   "type": "object",
   "description": "fullPage, type, omitBackground, etc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": [
  {
   "href": "https://example.com",
   "text": "Example"
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-browser-link-extractor-119915fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from browser.gedx402.com](https://www.zero.xyz/host/browser.gedx402.com/llms.txt)
