# Swift Bot Labs Toolbox – Web Links Extractor

> Swift Bot Labs Toolbox – Web Links Extractor is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-31).

Extracts all hyperlinks from a given webpage URL, returning href, anchor text, rel attribute, scheme, and internal/external classification for each link

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/web/links?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-web-links-extractor-44b0a0b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aFDm5NOYFRGz8ty5l4pXJ

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 swift-bot-labs-toolbox-web-links-extractor-44b0a0b5
```

Example prompt: Can you pull all the external links from https://news.ycombinator.com/ and show me the href and anchor text for each one?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call link extraction with no account setup, want immediate classification of links as internal vs external, need nofollow detection, or are building a scraping pipeline that pays per-use in USDC via x402 rather than subscribing to a monthly plan.

## Known failure modes

- Target URL is unreachable or returns non-200 status — ok:false with an error message
- Invalid or malformed URL input — schema validation error
- Page returns no parseable HTML — empty links array with total:0
- Rate-limited or blocked by target server — upstream fetch error
- Payment not settled via x402 — 402 Payment Required before response is served

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

A JSON object containing the target URL, an array of link objects (each with href, rel, anchor text, scheme, internal flag, nofollow flag), and summary counts of total, internal, and external links found versus returned.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "limit": {
       "type": "string"
      },
      "filter": {
       "enum": [
        "all",
        "internal",
        "external"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "web-links",
  "result": {
   "url": "https://news.ycombinator.com/",
   "links": [
    {
     "rel": null,
     "href": "https://www.ycombinator.com/",
     "text": "",
     "scheme": "https",
     "internal": false,
     "nofollow": false
    }
   ],
   "total": 197,
   "external": 33,
   "internal": 163,
   "returned": 5
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-web-links-extractor-44b0a0b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
