apyhub
DATA EXTRACTION · SECURITY & PRIVACY

Extract Links from Webpage API

What it does

Link Extractor takes a web page URL, fetches the page, and returns the absolute URLs of every hyperlink it finds. Send the page address in body.url, and you can also pass a custom user_agent, accept_language, and secure_mode flag when you need to control how the page is fetched.

Use Link Extractor when you need to collect outbound links from a page for crawling, site audits, content analysis, or backlink checks. The response is structured around a data object. For normal pages, it returns data.links, an array of strings containing the extracted URLs.

If secure_mode is enabled and the target URL is flagged as malicious, the response switches to a threat result instead of link data. In that case, data includes the original url, a threat label, and reported_malicious: true. That makes it useful in automation flows where you want to inspect pages before processing them further.

Keep it focused on a single page URL, and use the extracted links as input to downstream crawlers, validators, or indexing jobs.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.