Link Scraper API

POST

Extract every internal and external link from any webpage.

Link Scraper extracts internal and external links from any webpage URL in real time. It resolves relative paths to absolute URLs, strips empty fragments, and returns anchor text with internal and external counts.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/linkscraper
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "url": "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html",
    "linkCount": 16,
    "externalLinkCount": 13,
    "internalLinkCount": 3,
    "links": [
      {
        "text": "Documentation",
        "href": "http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html/index.html",
        "external": false
      },
      {
        "text": "Amazon EC2 Instance Types Guide",
        "href": "https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html",
        "external": true
      },
      {
        "text": "Amazon EC2 Auto Scaling",
        "href": "https://docs.aws.amazon.com/autoscaling/",
        "external": true
      }
    ],
    "uniqueDomains": [
      "docs.aws.amazon.com",
      "aws.amazon.com"
    ],
    "maxLinksReached": false
  }
}

About the Link Scraper API

Link Scraper works by parsing the HTML content of a web page to extract all the links. It returns the links in a structured format, including the link URL, title, and more.

What people use it for

Site Architecture Audits
Crawlers inspect internal navigation paths and anchor text across catalog pages to detect orphan URLs and track link equity distribution.
Dead Link Discovery
Run published articles through the scraper to catch external links, resolve relative URLs, and forward destination targets to status checkers.
Competitor Footprint Mapping
Growth analysts feed rival blog posts into the endpoint to inventory citation targets and detect outbound partner referrals.
Web Archival Pipelines
When archiving resource directories, extract all outbound destinations and clean anchor text before caching document references.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Link Scraper

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Link Scraper API.

Read the docs →
Is it cheap enough to scrape links for every page in my crawl?
Yes. Each scrape costs 10 credits, which works out to about $0.0015 per call or $1.50 per 1,000 pages on the Starter plan. The Free plan gives you 20 calls each month with no credit card required.
Do I get the unique domains list on the Free plan?
No. The unique external domains list and custom link extraction limits require a paid subscription. Any paid plan unlocks these premium features.
Does it convert relative links into full URLs?
Yes. The API automatically resolves root-relative paths into absolute destination URLs. It also extracts visible anchor text, calculates internal and external link counts, and strips out empty anchors and fragment links.
How do I know if a page had more links than were returned?
Check the maxLinksReached field in the response. When true, the target page contained more links than your requested limit, indicating additional links exist beyond what was returned.
Are the links fetched in real time?
Yes. Link Scraper parses the live HTML of the target URL in real time upon each request. It extracts current links and anchor text directly from the live page rather than serving cached results.
Can I use the scraped link data in my commercial tool?
Yes, as long as you are on a paid plan. Commercial use is permitted across all paid plans to power features inside your own product, provided you do not resell or redistribute the raw scraped data as-is.

Ready to build with Link Scraper? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs