---
title: Extract Links from Webpage API
slug: extract-links-from-webpage
url: https://apyhub.com/apyhub/service/extract-links-from-webpage
provider: ApyHub
categories: [Data Extraction, SEO]
tags: [web-scraping, link-extraction, html-parsing, crawl, seo]
auth: api_key
---

# Extract Links from Webpage API

Extract absolute URLs from a webpage, with optional headers and URL safety checks. Useful for crawling, audits, and sitemap collection.

## Endpoints

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

## About

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

## Usage

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