{"uid":"cap_euOy4ZRWU9T0hSrHUuEDn","slug":"fastx402-html-extract-links-a35fa264","name":"FastX402 HTML Extract Links","description":"216 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/html-extract-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":["html"],"properties":{"html":{"type":"string","description":"HTML document or fragment to parse"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"count":{"type":"integer"},"links":{"type":"array","items":{"type":"object","properties":{"href":{"type":"string"},"text":{"type":"string"},"attributes":{"type":"object","properties":{}}}}}}}}}}},"responseSchema":{"type":"json","example":{"count":2,"links":[{"href":"https://example.com","text":"Example","attributes":{}},{"href":"/about","text":"About","attributes":{"class":"nav"}}]}},"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_aPhqB00wTBtAycw_hvr3b","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":"Parses an HTML document or fragment and extracts all hyperlinks with their href, text, and attributes","exampleAgentPrompt":"Here's the raw HTML from a webpage — can you extract all the hyperlinks from it, including the link text and href for each one? <paste HTML here>","exampleUseCases":[{"title":"Navigation menu link discovery","prompt":"I have the HTML for a website's header navigation — can you pull out all the links from it so I can see where each menu item points?"},{"title":"Outbound link audit from article","prompt":"Here's the HTML of a blog post I scraped. Extract all the hyperlinks so I can see which external sites it's linking to and what anchor text is used."},{"title":"Sitemap seed URL collection","prompt":"I fetched the HTML of a homepage and need to collect every link on the page to use as seeds for a crawl — can you parse out all the hrefs and their display text?"}],"resultDescription":"A JSON object containing a count of links found and an array of link objects, each with an href (URL or relative path), text (the visible anchor text), and an attributes object containing any additional HTML attributes on the anchor element.","failureModes":["Missing or empty html query parameter returns an error","Malformed or non-HTML input may yield zero links or parsing errors","Very large HTML documents may hit request size limits","Relative hrefs are returned as-is without resolution to absolute URLs","Payment failure via x402 protocol returns 402 before processing"],"whenToPreferThis":"Choose this endpoint when you already have raw HTML content in hand and need a quick, structured extraction of all anchor links without setting up a browser, DOM parser, or full scraping pipeline. It is ideal for lightweight link harvesting within an agentic workflow where you want to avoid heavy dependencies and pay only $0.002 per call with no account or API key required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:21:19.054Z","isFirstParty":false,"canonicalSlug":"fastx402-html-extract-links-a35fa264"}