# Anokha Web Tools – Link Extractor

> Anokha Web Tools – Link Extractor is a paid API for AI agents from tools.anokha.space, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Extracts all hyperlinks (href, anchor text, internal/external flag) from a given public URL

## Facts

- Endpoint: GET https://tools.anokha.space/v1/links?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anokha-web-tools-link-extractor-5281566d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8sRftwFm8JKIPd2o-IPRt

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 anokha-web-tools-link-extractor-5281566d
```

Example prompt: Can you extract all the hyperlinks from https://example.com and tell me which ones are internal vs external?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call link extraction from a single public URL without managing API keys. It's ideal for agents doing SEO audits, site structure analysis, or link discovery tasks where you want a simple JSON list of hrefs with internal/external classification and anchor text, billed at $0.002 USDC per call via x402.

## Known failure modes

- Non-public or paywalled URL returns an error or empty link list
- URL is malformed or unreachable — returns error response
- Page uses JavaScript-rendered links that are not present in static HTML — links may be missed
- Rate limit or timeout on large pages may result in partial results
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Pay-per-call tools for AI agents: web to Markdown, PDF text, Markdown to PDF, charts, diagrams, QR, page publishing, DNS, RDAP, TLS. x402, USDC on Base, no API key.

## Output

Returns a JSON object containing the source URL, a total count of links found, and an array of link objects each with an href (full URL), anchor text, and a boolean indicating whether the link is internal (same domain) or external.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "...",
  "count": 2,
  "links": [
   {
    "href": "https://...",
    "text": "...",
    "internal": true
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anokha-web-tools-link-extractor-5281566d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.anokha.space](https://www.zero.xyz/host/tools.anokha.space/llms.txt)
