{"uid":"cap_iR_ynYuJoZ2EYNhhSRE0z","slug":"web-scraper-api-link-extractor-073e323d","name":"Web Scraper API – Link Extractor","description":"Extract all links from a page split into internal and external, each with anchor text and rel attribute, plus per-group counts.","url":"https://web-scraper-api-production-bf20.up.railway.app/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":null,"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_Hp0w9RaFSY2LOusNVVnXv","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 hyperlinks split into internal and external groups, each with anchor text and rel attribute, plus per-group counts.","exampleAgentPrompt":"Pull all the internal and external links from https://www.example.com/blog — I want anchor text and rel attributes for each, plus a count of how many there are in each group.","exampleUseCases":[{"title":"SEO outbound link audit","prompt":"Scrape https://www.myblog.com/post/seo-tips and give me every external link with anchor text and rel attributes — I need to see if any are missing nofollow tags."},{"title":"Internal navigation mapping","prompt":"Extract all the internal links from https://www.acmecorp.com so I can see how the homepage connects to the rest of the site, with anchor text for each link."},{"title":"Competitor backlink discovery","prompt":"Get me all the external links from https://www.competitor.com/resources — I want anchor text and rel values so I can understand who they're linking out to."}],"resultDescription":"Returns a JSON object with two groups — internal links and external links — each containing an array of link objects (URL, anchor text, rel attribute) and a count for that group.","failureModes":["Invalid or malformed URL returns a 400 error","Page not publicly accessible (401/403) returns an access error","Page takes too long to load causing a timeout","URL resolves to a non-HTML resource (PDF, binary) may return empty or error","Redirects to login walls return links from the login page, not the target content"],"whenToPreferThis":"Use this endpoint when you specifically need structured link data — internal vs. external classification, anchor text, and rel attributes — from a single page. Prefer it over full-page scrapers when your goal is link auditing, SEO analysis, or internal link mapping rather than body text or metadata extraction. It is more precise than a general scraper for link-focused tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:30:58.438Z","isFirstParty":false,"canonicalSlug":"web-scraper-api-link-extractor-073e323d"}