# AGISHub Link Extractor

> AGISHub Link Extractor is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Extracts all hyperlinks from a JavaScript-rendered web page using a headless browser, returning absolute URLs with optional filtering for visible-only or same-site links.

## Facts

- Endpoint: POST https://api.agishub.com/paid/links
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-link-extractor-75fe8f3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hoFg9lQn9LGYRGOOFzDV3

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 agishub-link-extractor-75fe8f3f -d '<json body>'
```

Example prompt: Can you grab all the links from https://example.com — only same-site links, and only the ones that are actually visible on the page?

## When to prefer this

Choose this endpoint when the target page uses JavaScript frameworks (React, Vue, Angular, Next.js) that require a real browser to render links — static HTML parsers would miss them. It is also the right choice when you need to filter results to visible or internal links only, or when seeding a crawler. Prefer this over a static HTML fetcher whenever dynamic rendering matters.

## Known failure modes

- Invalid or unreachable URL returns an error or empty list
- JavaScript-heavy SPAs may timeout if rendering takes too long
- Pages behind authentication walls return links visible only to unauthenticated users
- Very large pages with hundreds of links may return truncated results
- Non-http/https URLs (e.g. mailto:, tel:) may be excluded from output

## How this service works

Return every hyperlink on a JavaScript-rendered page as a list of absolute URLs, with options to keep only visible links or only same-site links. Backed by a headless browser. Use it to map a site or seed a crawler.

## Output

A JSON response containing a list of absolute URLs found on the rendered page. Each URL is a fully-qualified http/https link. The list is filtered based on the visible_only and exclude_external flags provided in the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Full http/https URL of the page to read links from."
      },
      "visible_only": {
       "type": "boolean",
       "description": "Return only links visible in the rendered layout (default false)."
      },
      "exclude_external": {
       "type": "boolean",
       "description": "Drop links pointing to other domains, keeping only same-site links (default false)."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-link-extractor-75fe8f3f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
