# AgentReader Link Extractor

> AgentReader Link Extractor is a paid API for AI agents from agentreader.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Extracts all hyperlinks from a web page as structured JSON, including absolute URL, anchor text, internal/external classification, and nofollow flag, up to 2000 unique links.

## Facts

- Endpoint: GET https://agentreader.dev/links
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentreader-link-extractor-2d1ee841
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-JQnnI_O5bzHgleSCIlqL

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 agentreader-link-extractor-2d1ee841
```

Example prompt: Can you extract all the hyperlinks from https://example.com/blog and tell me which ones are external and which have nofollow set?

## When to prefer this

Choose this endpoint when you specifically need a structured, enumerated list of hyperlinks from a page with metadata like anchor text, internal/external classification, and nofollow status. It is ideal for SEO audits, crawler seed generation, and site mapping. Prefer it over general-purpose content extraction endpoints when links — not page text or metadata — are the primary output needed.

## Known failure modes

- Invalid or unreachable URL returns an error response
- Pages with JavaScript-rendered links may not return dynamically injected anchors
- Pages behind authentication or paywalls may return no links or an error
- Pages with more than 2000 links will be truncated to the first 2000 unique links
- Malformed HTML may result in incomplete link extraction

## How this service works

Extract every hyperlink on a web page as structured JSON: resolved absolute URL, anchor text, internal-vs-external classification and nofollow flag, up to 2000 unique links. The building block for agent crawlers that need to decide where to go next, plus broken-link sweeps, backlink and SEO analysis, and site mapping.

## Output

A structured JSON array of up to 2000 unique hyperlinks found on the page, each containing the absolute URL, anchor text, a flag indicating whether the link is internal or external to the page's domain, and a nofollow boolean flag derived from the rel attribute.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL of the page"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentreader-link-extractor-2d1ee841/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentreader.dev](https://www.zero.xyz/host/agentreader.dev/llms.txt)
