{"uid":"cap_7eGUwQIlAPl9w2oyKx47u","slug":"html-links-extractor-dfe4c2b6","name":"HTML Links Extractor","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/html/links?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":{"type":"object","required":["html"],"properties":{"html":{"type":"string","maxLength":500000},"base_url":{"type":"string","maxLength":8192}},"additionalProperties":false},"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"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-iZ7IVL0h1AOuwHsfBLBW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all hyperlinks from a raw HTML string, returning structured link data for parsing, crawling, or RAG ingestion.","exampleAgentPrompt":"I have the raw HTML of this product page — can you extract all the hyperlinks from it, including their anchor text? Here's the HTML: <html>...</html>","exampleUseCases":[{"title":"Crawl seed link discovery","prompt":"I've fetched the homepage HTML of docs.example.com — extract every link from it so I can queue them for my site crawler."},{"title":"RAG pipeline link ingestion","prompt":"Pull all the URLs out of this HTML blog post so I can add them to my knowledge graph for retrieval-augmented generation."},{"title":"Outbound link audit","prompt":"I have the raw HTML for our company's about page — list every hyperlink (with anchor text) so I can audit where we're linking externally."}],"resultDescription":"A structured JSON list of all hyperlinks found in the provided HTML, including href values and anchor text. If a base_url is provided, relative URLs are resolved to absolute. The response covers navigation links, inline links, and any other anchor elements present in the document.","failureModes":["Missing 'html' field in body causes validation error","HTML string exceeding 500,000 characters is rejected","Malformed or non-HTML content may result in empty link list","base_url misconfiguration may produce incorrectly resolved URLs","Payment failure via x402 protocol returns 402 status before processing"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic extraction of all hyperlinks from a known HTML string — especially in machine-payable, agent-driven pipelines where you already have the raw HTML and want structured link output without spinning up a headless browser. It is ideal for crawling seed discovery, RAG pipeline enrichment, or auditing outbound links from pre-fetched pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:43:12.098Z","isFirstParty":false,"canonicalSlug":"html-links-extractor-dfe4c2b6"}