{"uid":"cap_RPDu-C-RriWhNKPE4G3fl","slug":"agentutility-link-extractor-0812595d","name":"AgentUtility Link Extractor","description":"817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.","url":"https://x402.agentutility.ai/link-extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["url"],"properties":{"url":{"type":"string","description":"Page URL to fetch and extract from. http or https only. Private/loopback targets are rejected. Redirects followed."},"max_links":{"type":"number","description":"Max links to return (1-2000). Default 500. Pagination beyond max isn't supported; tighten the URL instead."},"timeout_ms":{"type":"number","description":"Fetch timeout. Default 12000, max 25000."},"include_text":{"type":"boolean","description":"If true (default), include the anchor's visible text. Set false to skip text extraction."},"include_external_only":{"type":"boolean","description":"If true, drop same-host links. Default false (return all)."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":"string"},"count":{"type":"integer"},"links":{"type":"array","items":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"},"text":{"type":"string"},"is_external":{"type":"boolean"}}}},"source":{"type":"string"},"base_url":{"type":"string"},"final_url":{"type":"string"},"page_title":{"type":"string"},"attribution":{"type":"string"},"total_found":{"type":"integer"},"truncated_at_max":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","count":1,"links":[{"rel":"","href":"https://www.iana.org/domains/example","text":"More information...","is_external":true}],"source":"Direct HTML fetch + parse","base_url":"https://example.com/","final_url":"https://example.com/","page_title":"Example Domain","attribution":"Extracted from the source HTML at the requested URL.","total_found":1,"truncated_at_max":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zE5Wk7VLs8yW-52wyDAA5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a web page by URL and extracts all hyperlinks with their anchor text, href, and external/internal classification","exampleAgentPrompt":"Can you grab all the hyperlinks from https://en.wikipedia.org/wiki/Artificial_intelligence and return them with their anchor text, up to 300 links, only showing external ones?","exampleUseCases":[{"title":"Audit outbound links on a blog post","prompt":"Fetch all external links from https://myblog.com/post/seo-guide and show me each link's href and anchor text so I can audit which sites I'm linking out to."},{"title":"Build a site map of linked pages","prompt":"Extract all the internal and external links from https://docs.example.com/overview — I want up to 1000 links with their text so I can map out the documentation structure."},{"title":"Competitive link discovery","prompt":"Pull every hyperlink from https://www.competitor.com/resources, include anchor text, and filter to external links only — I want to see which third-party sources they reference."}],"resultDescription":"A JSON object containing the final URL (after redirects), the page title, the source method used to fetch the page, an array of link objects each with href, visible anchor text, rel attribute, and an is_external boolean, plus total_found count, the returned count, and a truncated_at_max flag indicating whether the result was capped at the max_links limit.","failureModes":["Private/loopback IP targets rejected with error (e.g. 192.168.x.x, localhost)","Non-HTTP/HTTPS URLs rejected","Timeout exceeded (default 12s, max 25s) if the target page is slow to respond","Page returns no links (empty links array, count=0)","Redirect loop or fetch error from target server","max_links out of range (must be 1–2000) causes validation error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call link extraction without setting up a scraping infrastructure or managing API keys. It is ideal when you need anchor text alongside hrefs (not just raw href extraction), when you want automatic external/internal classification, or when you need redirect-following and final URL resolution. Prefer this over a full browser-rendered scraper when the target page delivers links in static HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T12:38:42.849Z","isFirstParty":false,"canonicalSlug":"agentutility-link-extractor-0812595d"}