{"uid":"cap_7jK3FcqRIPctVukbzrgVA","slug":"agent-web-tools-extract-all-links-from-a-page-1fcd9bcd","name":"Agent Web Tools – Extract All Links from a Page","description":"All links on a page, absolute and deduplicated, split into internal and external.","url":"https://agent-web-tools.agent-web-tools.workers.dev/v1/links?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Public http(s) URL (ports 80/443)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IJdKnPRrfQFywCKCW7Yel","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches all absolute, deduplicated hyperlinks from a given web page URL and returns them split into internal and external links.","exampleAgentPrompt":"Can you pull all the links from https://example.com/blog and tell me which ones are internal versus external?","exampleUseCases":[{"title":"SEO outbound link audit","prompt":"Fetch all the links on https://myblog.com/about and split them into internal and external so I can audit where the page is linking out to."},{"title":"Competitor site link discovery","prompt":"Get me every link on https://competitor.com/resources — I want to see which internal pages they highlight and which external sites they reference."},{"title":"Broken link detection prep","prompt":"Extract all the links from https://docs.myproduct.com/getting-started so I can check which ones might be broken or outdated."}],"resultDescription":"Returns two lists of absolute, deduplicated URLs: one for internal links (same domain) and one for external links (different domains), extracted from all anchor tags on the given page.","failureModes":["Non-public or non-HTTP/HTTPS URLs (e.g. localhost, non-standard ports) are rejected","Pages behind authentication or paywalls return no links or partial results","Heavy JavaScript-rendered pages may return fewer links if content is not in initial HTML","Rate limiting or network timeouts on the target URL can cause failures","Malformed URLs in the query parameter return a validation error"],"whenToPreferThis":"Choose this endpoint when you specifically need a structured list of internal vs. external links from a page, without needing the full page content or metadata. It is more targeted than a full page extraction and cheaper than a full crawl. Ideal for link audits, SEO analysis, site mapping, and discovering outbound references from a specific URL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:45:17.626Z","isFirstParty":false,"canonicalSlug":"agent-web-tools-extract-all-links-from-a-page-1fcd9bcd"}