# ApyHub Extract Links from URL

> ApyHub Extract Links from URL is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.020625/call, status unknown (last checked 2026-09-16).

Extracts all hyperlinks from a given web page URL and returns them as absolute URLs, with optional malicious-URL checking via secure mode.

## Facts

- Endpoint: POST https://gateway.apiosk.com/apyhub-extract-links/extract/links/url
- Price: $0.020625/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apyhub-extract-links-from-url-7494e96a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NZ5hzt8agRk3P2kDvVlou

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 apyhub-extract-links-from-url-7494e96a -d '<json body>'
```

Example prompt: Can you pull all the hyperlinks from https://www.example.com/blog and return them as a list of absolute URLs? Enable secure mode so the URL is checked for malicious content first.

## When to prefer this

Use this endpoint when you need a quick, structured list of all hyperlinks from a single web page without needing the full page content. Prefer it over general-purpose scrapers when link extraction is the primary goal, especially when you also want malicious-URL safety checking via secure mode. It is pay-per-call and well-suited for one-off or agent-driven tasks rather than bulk crawls.

## Known failure modes

- Target URL is unreachable or returns a non-200 HTTP status
- URL flagged as malicious in secure mode — fetch is blocked and an error is returned
- Target page contains no hyperlinks — empty list returned
- Malformed or invalid input URL causes a parsing error
- Rate limiting or timeout if the target page is slow to respond

## How this service works

Extracts all hyperlinks from the web page at the given URL and returns them as absolute URLs. If `secure_mode` is enabled, the URL is checked against a malicious-URL database before the page is fetched.

## Output

A list of all hyperlinks found on the fetched web page, normalized and returned as absolute URLs. If secure mode is enabled, the endpoint first validates the target URL against a malicious-URL database before fetching and parsing the page.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apyhub-extract-links-from-url-7494e96a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
