apyhub
DATA EXTRACTION · SEO

Extract Links from Webpage API

Hosted on ApyHub

What it does

Link Extractor pulls every hyperlink from a web page and returns the absolute URLs it finds. Send a page URL, and you get a list of links back in a structured response.

Use it when you need to crawl a site, audit outbound references, build a sitemap, or collect page targets for downstream processing. The request accepts a URL in the body, with optional user_agent, accept_language, and secure_mode settings for controlling how the page is fetched. Protocol is optional; if you omit it, http:// is prepended.

The normal response contains data.links, an array of strings with the absolute URLs found on the page. If secure_mode detects a malicious URL before fetching, the response instead returns threat details in data.url, data.threat, and data.reported_malicious.

Use Link Extractor when you need a simple way to turn a webpage into a clean set of link targets without building your own parser or crawler.

▣ 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.