# 24K Labs Extract Links

> 24K Labs Extract Links is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Fetches a web page by URL and returns all absolute hyperlinks found on it, with optional filtering to external links only.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/extract-links
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-extract-links-db868e58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zn5y8l_WMxUjSn4NKIEA9

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 24k-labs-extract-links-db868e58 -d '<json body>'
```

Example prompt: Can you fetch https://example.com/blog and give me all the hyperlinks on that page — only external ones?

## When to prefer this

Use this endpoint when you need a fast, lightweight extraction of all hyperlinks from a single web page without needing full page content or structured data. It is ideal for link auditing, SEO analysis, outbound link research, or building simple site maps. Prefer this over a full-page scraper when you only need URLs, not the surrounding text or HTML structure.

## Known failure modes

- Page is unreachable or returns a non-200 status — endpoint may return an error or empty list
- Page requires JavaScript rendering — static fetch may miss dynamically injected links
- URL is malformed or missing — likely returns a validation error
- Page blocks bots or returns a CAPTCHA — link extraction may be empty or fail
- Very large pages with thousands of links may incur latency or truncation

## How this service works

Fetch a page and return all hyperlinks (absolute), optionally filtered to external only.

## Output

A list of absolute hyperlink URLs found on the fetched page. If the external-only flag is set, only links pointing to domains other than the source page are returned. Each entry is a fully qualified URL string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "links": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-extract-links-db868e58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
