{"uid":"cap_sENAKGEfAP2pavZjIkPHJ","slug":"web-scraper-api-link-extractor-fa58d8cd","name":"Web Scraper API – Link Extractor","description":"HTML scraping (text, links, metadata, structured) with x402 payments and MCP server.","url":"https://scrape.payapi.market/scrape/links?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute http(s) URL of the page to scrape, e.g. 'https://example.com'."}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","external":[{"rel":null,"url":"https://www.iana.org/domains/example","text":"More information..."}],"internal":[],"final_url":"https://example.com/","external_count":1,"internal_count":0}},"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_o4BsE6nDcYhZk9Q2geKaO","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":"Scrapes a webpage and returns all internal and external hyperlinks found on the page, with their anchor text and rel attributes.","exampleAgentPrompt":"Can you pull all the links from https://techcrunch.com/latest/ and tell me which ones point to external sites versus internal pages?","exampleUseCases":[{"title":"SEO outbound link audit","prompt":"Go to https://www.myblog.com/article/best-tools-2024 and give me a list of all the external sites it links to — I want to audit my outbound link profile."},{"title":"Competitor content discovery","prompt":"Scrape all the links from https://www.competitor.com/resources and tell me how many internal pages they link to versus external sources."},{"title":"Broken link pre-check","prompt":"Extract all the links from https://docs.mycompany.com/getting-started so I can check which URLs are external and which are internal before I run a broken-link checker."}],"resultDescription":"Returns a JSON object with the scraped page URL, a list of external links (each with url, text, and rel), a list of internal links (each with url, text, and rel), the final resolved URL after redirects, and counts of external and internal links.","failureModes":["Invalid or non-absolute URL returns a validation error","Page is behind authentication or a paywall — returns empty or incomplete link lists","URL resolves to a non-HTML resource (PDF, image) — may return empty link arrays","Target site blocks scrapers (403/429) — request fails or returns partial data","Payment authorization fails for x402 microtransaction — request not processed","Network timeout on slow or unreachable pages"],"whenToPreferThis":"Choose this endpoint when you specifically need to enumerate hyperlinks (internal and external) from a single webpage, including their anchor text and rel attributes. It is ideal for SEO audits, link graph construction, competitor research, or pre-crawl discovery. If you need full page text, metadata, or structured data instead of links, use the sibling text/metadata/structured scraping endpoints on the same service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T08:05:19.946Z","isFirstParty":false,"canonicalSlug":"web-scraper-api-link-extractor-fa58d8cd"}