# Web Scraper API – Link Extractor

> Web Scraper API – Link Extractor is a paid API for AI agents from scrape.payapi.market, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Scrapes a webpage and returns all internal and external hyperlinks found on the page, with their anchor text and rel attributes.

## Facts

- Endpoint: POST https://scrape.payapi.market/scrape/links?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-scraper-api-link-extractor-fa58d8cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sENAKGEfAP2pavZjIkPHJ

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 web-scraper-api-link-extractor-fa58d8cd -d '<json body>'
```

Example prompt: Can you pull all the links from https://techcrunch.com/latest/ and tell me which ones point to external sites versus internal pages?

## When to prefer this

Choose this endpoint when you specifically need to enumerate hyperlinks (internal and external) from a single webpage, including their anchor text and rel attributes. It is ideal for SEO audits, link graph construction, competitor research, or pre-crawl discovery. If you need full page text, metadata, or structured data instead of links, use the sibling text/metadata/structured scraping endpoints on the same service.

## Known failure modes

- Invalid or non-absolute URL returns a validation error
- Page is behind authentication or a paywall — returns empty or incomplete link lists
- URL resolves to a non-HTML resource (PDF, image) — may return empty link arrays
- Target site blocks scrapers (403/429) — request fails or returns partial data
- Payment authorization fails for x402 microtransaction — request not processed
- Network timeout on slow or unreachable pages

## How this service works

HTML scraping (text, links, metadata, structured) with x402 payments and MCP server.

## Output

Returns a JSON object with the scraped page URL, a list of external links (each with url, text, and rel), a list of internal links (each with url, text, and rel), the final resolved URL after redirects, and counts of external and internal links.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Absolute http(s) URL of the page to scrape, e.g. 'https://example.com'."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "external": [
   {
    "rel": null,
    "url": "https://www.iana.org/domains/example",
    "text": "More information..."
   }
  ],
  "internal": [],
  "final_url": "https://example.com/",
  "external_count": 1,
  "internal_count": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-scraper-api-link-extractor-fa58d8cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrape.payapi.market](https://www.zero.xyz/host/scrape.payapi.market/llms.txt)
