---
title: Extract Links from Webpage API
slug: extract-links
url: https://apyverse.com/apyhub/service/extract-links
provider: ApyHub
categories: [Data Extraction, "Security & Privacy", SEO]
auth: api_key
---

# Extract Links from Webpage API

Extract all absolute hyperlinks from a web page URL. Supports custom headers and can return malicious-URL detection instead of link data.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `extract/links/url` | What it does Extracts all hyperlinks from the web page at the provided URL and returns them as abso… | 50 |

## About

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

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/extract-links
