Skip to content
New: Agenty MCP server.

Scrape websites, take screenshots and get datasets right from Claude, ChatGPT, Gemini or Cursor.

Connect your AI

Bulk Link Extractor & API

Extract every link from any web page with anchor text, internal vs external, nofollow, and the section it sits in, then export to CSV.

Bulk link extractor
Paste one URL per line. Requests run one by one in your browser. 5 of 5 free requests left. Sign in for more.
API reference

Paste one or more URLs above to list every link on each page. With Anchor text & rel on, each link includes its anchor text, whether it is internal or external, its rel values (nofollow, sponsored, ugc), the page section it sits in (nav, header, main, footer), and the nearest heading above it.

Download everything as one CSV for SEO audits and link mapping. To trace where a link ends up, use the redirect checker; to list every page on a site, use the sitemap crawler. Every option is documented in the Links API reference.

Features

  • All anchors
    Every <a> tag on the rendered page in one call.
  • Internal vs external
    Filter by same-domain or external links.
  • Rel detection
    nofollow, sponsored, and ugc flags per link.
  • Link summary
    Total, unique, internal, external, and nofollow counts.
  • Anchor text
    Link text, or the aria-label or image alt when empty.
  • Position context
    Page section (nav, main, footer) and nearest heading.
  • CSV export
    One CSV with every link from every page.
  • Bulk URLs
    Paste a list of pages and extract them in one run.

Use cases

  • SEO audits of internal linking structure
  • Audit outbound links and their rel attributes
  • Check which links are nofollow or sponsored
  • Link mapping during site migrations
  • Build a link graph for content recommendation

Use it from Claude or ChatGPT

Connect the Agenty MCP server to Claude, ChatGPT, Gemini, Cursor or VS Code and ask for it in plain language. The assistant picks the Agenty tool it needs, usually extract_links, and runs it in the same browser as this page. Paste a few URLs and it works through them in one go. Claude gets every link on the rendered page and can group or filter them for you.

Prompts to try:

  • Extract the links from https://scrapingsandbox.com, https://scrapingsandbox.com/data-table, https://scrapingsandbox.com/infinite-scroll and https://scrapingsandbox.com/form-submit, and tell me which links appear on all 4 pages.
  • Get all product page links from https://scrapingsandbox.com and count them.
Claude extracting links from four scrapingsandbox.com pages with the Agenty MCP server and listing the links shared by all of them
Extract all links from a URL with cURLbash
curl -X POST https://api.agenty.ai/v1/links \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'
Get details for external links onlybash
curl -X POST https://api.agenty.ai/v1/links \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "details": true,
    "filter": "external"
  }'
List nofollow links on a page in Node.jsjavascript
const res = await fetch('https://api.agenty.ai/v1/links', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ url: 'https://example.com', details: true }),
});
const { summary, result } = await res.json();
console.log(summary); // { total, unique, internal, external, nofollow }
result
  .filter((link) => link.nofollow)
  .forEach((link) => console.log(link.url, link.text, link.section));
List internal links and their anchor text in Pythonpython
import requests

res = requests.post(
    "https://api.agenty.ai/v1/links",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"url": "https://example.com", "details": True, "filter": "internal"},
)
for link in res.json()["result"]:
    print(link["url"], link["text"], link["heading"])

How Agenty compares

FeatureAgentyScreaming FrogAhrefsSEMrush
Extract all linksYes (hosted API)Desktop onlyYesYes
Anchor text & page sectionYesYesPartialPartial
nofollow / sponsored / ugc detectionYesYesYesYes
API-first (no desktop app)YesNoPartialPartial
Free tierYesLimitedNoNo

Frequently asked questions

What is the Link Extractor API?

The Agenty Links API extracts every link from a rendered web page. By default it returns a list of URLs. Pass details: true to also get anchor text, rel values, internal or external, page section, and the nearest heading for each link. See the API reference for the full response.

Can I filter by link type?

Yes. Set filter to "internal" or "external". Each link in the detailed response also has nofollow, sponsored, and ugc flags you can filter on.

What does the position context show?

Each detailed link includes section, the nearest enclosing nav, header, main, aside, or footer, plus the closest heading above it and its position on the page. Use it to tell navigation links apart from links in your content.

How do I extract links from multiple pages?

Paste your URLs into the tool at the top of this page, one per line, and click Extract links. When it finishes, click Download CSV to get every link with its source page in one file.

Is there a free tier?

You can check 5 pages without an account, and all accounts include free credits. Visit our pricing page for details.

Can I use this tool from Claude or ChatGPT?

Yes. Add https://api.agenty.ai/mcp as a connector in your AI app, sign in to Agenty, and ask in plain language. The assistant usually runs extract_links for you. See the MCP setup guide for each app.

API pricing

Pay only for successful requests

API calls use the same monthly credits as your agents. JavaScript pages cost 5 credits.

Compare all plans

Included in every plan

$29 /month

  • 200,000 credits monthly
  • Only successful requests billed
  • Credits shared with your agents

Credits per request

/v1/scrape
5
/v1/content
5
/v1/markdown
5
/v1/links
5
/v1/screenshot
5
/v1/pdf
5
/v1/extract
10
/v1/redirects
1
/v1/sitemap
1
/v1/emails
1
Web scraping agent

Web scraping with AI

Start scraping data from any website using the Agenty's web scraping agents with AI.

  • Custom web scraping at scale
  • Real-time price monitoring
  • LLM training data curation
  • Structured JSON & CSV exports
  • Anti-bot bypass built-in
  • 99.9% uptime SLA

Get a free sample dataset from any website before you commit.