# red-web-utils Link Extractor

> red-web-utils Link Extractor is a paid API for AI agents from red-web-utils.agent-tools-x402.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Extracts all hyperlinks (href and anchor text) from a given webpage URL

## Facts

- Endpoint: POST https://red-web-utils.agent-tools-x402.workers.dev/api/links?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/red-web-utils-link-extractor-4fa124a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l2TjH3n8LodAsxHXXP1MN

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 red-web-utils-link-extractor-4fa124a4 -d '<json body>'
```

Example prompt: Can you grab all the links from https://example.com and tell me the href and anchor text for each one?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call solution to extract all hyperlinks from a single webpage without setting up your own scraping infrastructure. Ideal for agents that occasionally need link discovery as part of a workflow without committing to a full crawling service subscription.

## Known failure modes

- URL is unreachable or returns a non-200 status — link array may be empty or error returned
- Page uses JavaScript-rendered content — statically fetched links may be incomplete
- URL is missing or malformed — likely returns a 4xx error
- Page has no anchor elements — returns empty links array with linkCount 0
- Rate limiting or payment failure via x402 — call rejected before execution

## How this service works

Pay-per-call web and onchain utilities for AI agents (MPP + x402, USDC on Base).

## Output

Returns a JSON object containing the original URL, an array of link objects each with 'href' and 'text' fields (the anchor text), and a 'linkCount' integer summarizing the total number of links found on the page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "links": [
   {
    "href": "https://example.com/about",
    "text": "About"
   }
  ],
  "linkCount": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/red-web-utils-link-extractor-4fa124a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from red-web-utils.agent-tools-x402.workers.dev](https://www.zero.xyz/host/red-web-utils.agent-tools-x402.workers.dev/llms.txt)
