{"uid":"cap_ctAZx6ftuN3Zt1OJgB9XY","slug":"x402-utility-tools-html-link-extractor-7f8a0ba5","name":"x402 Utility Tools – HTML Link Extractor","description":"A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.","url":"https://x402-utils.558686.xyz/v1/tools/html-links?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"html-links","input":{"html":"<a href=\"/docs\">Docs</a>","baseUrl":"https://x402-utils.558686.xyz"},"route":"/v1/tools/html-links","result":{"count":1,"links":[]},"project":"x402-utility-tools","deterministic":true}},"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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i3BBsvWXOUmdTA6a0x24K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and resolves all hyperlinks from an HTML string, returning a deduplicated list of absolute URLs with a count","exampleAgentPrompt":"Pull all the links out of this HTML snippet and resolve them against https://x402-utils.558686.xyz as the base URL: '<a href=\"/docs\">Docs</a><a href=\"/api\">API</a>'","exampleUseCases":[{"title":"Sitemap link harvesting from raw HTML","prompt":"I have the raw HTML of a homepage — can you extract every hyperlink from it and resolve them all to absolute URLs using https://example.com as the base?"},{"title":"Validating anchor tags in generated content","prompt":"Here's some HTML I generated for a newsletter — extract all the links so I can check they're correct before sending: '<p>Check out <a href=\"/offers\">our offers</a> and <a href=\"https://blog.example.com\">our blog</a></p>', base is https://example.com."},{"title":"Counting outbound links on a scraped page","prompt":"I scraped this HTML from a product page — how many links does it contain, and what are they all? Base URL is https://shop.example.com."}],"resultDescription":"Returns a JSON object with 'ok' status, the tool name, echoed input, the route used, and a 'result' object containing 'count' (integer number of links found) and 'links' (array of extracted/resolved absolute URL strings). The response is deterministic for the same input.","failureModes":["Malformed or non-string HTML input may return an error or empty links array","Missing baseUrl may leave relative URLs unresolved or cause parsing errors","Very large HTML payloads may be rejected or time out","Non-HTML content passed as the html field may yield zero links","Invalid baseUrl format may cause URL resolution failures"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, deterministic link extraction from raw HTML without spinning up a headless browser or calling an LLM. It is ideal for pipelines that parse crawled pages, validate generated HTML, or build link graphs at scale. At $0.002/call it is cost-effective for high-volume repeatable extraction tasks where accuracy is sufficient from static HTML parsing alone.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T14:29:57.374Z","isFirstParty":false,"canonicalSlug":"x402-utility-tools-html-link-extractor-7f8a0ba5"}