{"uid":"cap_FuVuQr-nD3xuiRQtQluqy","slug":"machine-shop-html-link-extractor-62124230","name":"Machine Shop – HTML Link Extractor","description":"Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.","url":"https://api.pay-forge.online/v1/html-links?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","title":"Html","maxLength":50000},"base_url":{"type":"string","title":"Base Url","default":"","maxLength":2048}}},"responseSchema":{"type":"json","example":{"links":[{"url":"https://example.com","text":"Example"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YNgJBI2aJsSyerDE7ajwh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and returns all hyperlinks (URL and anchor text) from a supplied HTML document string","exampleAgentPrompt":"Extract all the hyperlinks from this HTML — including each link's URL and display text: <paste HTML here>. Use https://example.com as the base URL for resolving relative links.","exampleUseCases":[{"title":"Audit outbound links on a webpage","prompt":"Here's the raw HTML for our company's homepage — can you pull out every link in it, with the URL and the anchor text, so I can audit where we're sending visitors? The base URL is https://www.mycompany.com."},{"title":"Build a sitemap from scraped HTML","prompt":"I've got the HTML source of a navigation page — extract every link from it so I can build a sitemap. Base URL is https://docs.myproduct.io."},{"title":"Inspect x402 payment links in API response HTML","prompt":"This HTML snippet came back from a pay-gated API endpoint — pull out all the links in it so I can see what x402 payment or resource URLs are being referenced. Base URL is https://api.pay-forge.online."}],"resultDescription":"A JSON object containing a 'links' array, where each element has a 'url' field (the resolved hyperlink destination) and a 'text' field (the visible anchor text). Relative URLs are resolved against the provided base_url if supplied.","failureModes":["HTML exceeds 50,000 character limit — request is rejected","Malformed or non-HTML input returns an empty links array or parsing error","Missing base_url means relative links are returned unresolved","No links found in document returns an empty array"],"whenToPreferThis":"Choose this endpoint when you have raw HTML content and need a structured list of all hyperlinks it contains, especially when you want anchor text alongside URLs. It is well-suited for agents processing fetched page source, inspecting API response documents, or auditing HTML snippets without needing a live browser or full crawl.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:43:03.275Z","isFirstParty":false,"canonicalSlug":"machine-shop-html-link-extractor-62124230"}