Website Link Extractor avatar

Website Link Extractor

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Website Link Extractor

Website Link Extractor

Extracts every link from any website — internal, external, documents and media — with anchor text and the page it was found on

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Mina

Mina

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Share

Give it any website and it returns every link on it — where each link points, the text it was written as, whether it stays on the site or leads elsewhere, and which page it was found on.

Paste a domain, press Start, and download the result as JSON, CSV or Excel — or pull it straight from the Apify API.

  • Audit a site — get a complete map of its pages in one run.
  • Find broken or unwanted links — export everything and check it in a spreadsheet.
  • See who a site links to — collect its outbound links to partners, sources or competitors.
  • Collect documents — pull every PDF or spreadsheet a site publishes.
  • Feed another tool — the links come out as a clean list, ready to hand to another scraper.
  1. Enter one or more websites or pages. A bare domain like example.com is fine.
  2. Set Maximum pages to read and How deep to follow links.
  3. Optionally choose Which links to return — all, internal only, or external only.
  4. Click Start, then open the Output tab when it finishes.

Input

FieldTypeRequiredDescription
Websites or pages (start_urls)arrayYesWhere to start.
Maximum pages to read (max_pages)integerNoHow many pages to visit per site. Default 20.
How deep to follow links (max_depth)integerNo0 reads only the page given, 1 also reads pages linked from it. Default 1.
Which links to return (link_scope)selectNoall, internal or external. Default all.
Stay on the same website while crawling (stay_on_site)booleanNoControls which pages are visited, not which links are returned. On by default.
Only include links matching (include_pattern)stringNoOptional regular expression, e.g. /blog/.
Exclude links matching (exclude_pattern)stringNoOptional regular expression, e.g. \?utm_.
Proxy configuration (proxyConfiguration)objectNoOptional. Most sites need no proxy.

Example input:

{
"start_urls": ["https://www.python.org"],
"max_pages": 20,
"max_depth": 1,
"link_scope": "external"
}

Output

One row per unique link found:

{
"url": "https://pypi.org/",
"text": "PyPI",
"type": "page",
"is_internal": false,
"domain": "pypi.org",
"found_on": "https://www.python.org/",
"depth": 0,
"rel": null,
"source_site": "https://www.python.org/"
}

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Data fields

FieldDescription
urlWhere the link points.
textThe clickable text of the link.
typepage, document, image or media, based on what it points at.
is_internaltrue if it stays on the same site.
domainThe domain it points to, handy for grouping outbound links.
found_onThe page the link was found on.
depthHow many clicks from the starting page that page was.
relThe link's rel attribute, such as nofollow, when it has one.
source_siteWhich of your start URLs this came from.

What to expect

Each unique destination is returned once, no matter how many times it appears — a link in the header of every page gives you one row, not one per page. Anchors, mailto: and javascript: links are not included, since they are not pages.

Very little. Six pages of python.org produced 317 links in fourteen seconds and cost under two tenths of a cent.

Tips

  • Start with depth 1. It covers a site's main navigation. Raise it only if you need to go deeper.
  • Use link_scope: external to see everywhere a site sends its visitors.
  • Use the exclude pattern to drop tracking URLs, for example \?utm_.

FAQ and support

Why do I get fewer links than I expected? Each destination is listed once. Raise Maximum pages or How deep to follow links to cover more of the site.

Does it find links added by JavaScript? It reads the HTML a site serves. Links that only appear after scripts run may not be included.

Is scraping links legal? This Actor collects only publicly available data. You are responsible for how you use it, and you should respect the terms of the sites you crawl. If in doubt, take legal advice.

Found a bug, or need a field that is not here? Open an issue on the Issues tab.

SEO Keywords

website link extractor, extract all links from a website, url crawler, internal and external link scraper, broken link audit data, site structure crawler, anchor text extractor, seo link audit, sitemap discovery tool, web crawler for links