Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man link-extract

/link-extract(1)

agentutility / web-probe / link-extract
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobe
CATEGORY
uncategorized
STATUS
live
NAME
link-extract link extractor / extract links from url / list all anchor links / page outlink crawler / scrape outbound links / get hrefs from page
SYNOPSIS
POST https://x402.org/v1/link-extract
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Link extractor / extract links from URL / list all anchor links / page outlink crawler / scrape outbound links / get hrefs from page. Fetches an HTML URL and returns every <a> link with its anchor text, rel attribute, and an is_external flag. Resolves relative URLs against the page's <base> or final URL. Lighter than full scrape / metadata endpoints — exact tool for the agent task 'walk this page, pick which links to follow.' Default 500-link cap. SSRF-guarded (no loopback / RFC1918 targets).

INPUTrequest schema
propertytypedescriptionreq?
urlstringPage URL to fetch and extract from. http or https only. Private/loopback rejected. Redirects followed.required
include_external_onlybooleanIf true, drop same-host links. Default false.optional
max_linksnumberMax links to return (1-2000). Default 500.optional
include_textbooleanInclude anchor visible text. Default true.optional
timeout_msnumberFetch timeout. Default 12000, max 25000.optional
OUTPUTresponse shape
fieldtypedescription
urlstringOriginal URL submitted by the caller before any redirect resolution.
final_urlstringURL after following redirects; used as the fallback base for resolving relative hrefs.
base_urlstringEffective base URL used to resolve relative links, from the page's <base> tag or final_url.
page_titlestringnullText inside the page's <title> tag, or null if the page has none.
linksarrayArray of extracted anchors, each with href, anchor text, rel attribute, and is_external flag.
countintegerNumber of links returned in the links array after the 500-link cap is applied.
total_foundintegerTotal anchor count discovered on the page before the max-link cap truncated the list.
truncated_at_maxbooleanTrue when total_found exceeded the 500-link cap and links was trimmed.
sourcestringIdentifier of the extractor pipeline that produced the result, e.g. link-extract worker name.
attributionstringRequired credit string for the link-extract endpoint when republishing the extracted data.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/link-extract \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the link-extract tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
linklinksextractanchorhrefcrawlerscrape
methods
POST
cluster
webprobe
price
$0.005 USDC per call
ADJACENTother endpoints in webprobe
endpointdescriptionprice
disposable-email-checkDisposable email detector / fake email filter / fraud signup defense.$0.005
domain-availabilityDomain availability / RDAP lookup / WHOIS replacement / domain registration checker / expiry date lookup.$0.005
github-stars-historyGitHub stars history / star growth chart / repo popularity over time / trending tracker.$0.005
mcp-tools-listMCP tools-list / Model Context Protocol discovery / list MCP server tools / tools/list JSON-RPC / agent capability discovery / MCP catalo…$0.005
sitemap-fetchSitemap fetcher / sitemap.xml parser / sitemap index resolver / SEO sitemap reader / robots.txt sitemap discovery / website URL inventory.$0.005
wikipediaWikipedia API / encyclopedia lookup.$0.005
wikipedia-lookupWikipedia API / encyclopedia lookup / structured article fetch.$0.005
homoglyph-checkHomoglyph attack detector / Unicode lookalike scanner.$0.003
SEE ALSO
agentutility(7) · webprobe(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org