{"uid":"cap_6MP7ZlE-0Ck-tTJgE0Dsy","slug":"minifetch-com-cd6fe471","name":"Minifetch URL Link Extractor","description":"For link audits: Extracts and categorizes all links on a page (internal, external, anchor) for SEO audits and site-structure analysis. Returns nofollow/rel attributes, anchor text, image links missing alt text, and external domain distribution. Obeys robots.txt. Supports GET & POST","url":"https://minifetch.com/api/v1/x402/extract/url-links?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The target URL from which to extract the links."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Final URL after redirects"},"links":{"type":"object","properties":{"anchors":{"type":"array","description":"In-page #fragment links, each { href, text }"},"summary":{"type":"object","properties":{"totalLinks":{"type":"integer"},"anchorCount":{"type":"integer"},"externalCount":{"type":"integer"},"internalCount":{"type":"integer"},"nofollowCount":{"type":"integer"},"emptyTextCount":{"type":"integer"},"topExternalDomains":{"type":"array","description":"Busiest external domains, each { domain, count }"},"topInternalTargets":{"type":"array","description":"Most-linked internal pages, each { url, count, anchorTexts[] }"},"uniqueExternalDomains":{"type":"integer"},"imageLinksMissingAltCount":{"type":"integer"}},"description":"Aggregate link stats for SEO / site-structure analysis"},"external":{"type":"array","description":"Cross-host links, each { href, text, rel[] }"},"internal":{"type":"array","description":"Same-host links, each { href, text, rel[] }"}}},"proxy":{"type":"object","properties":{"proxyUrl":{"type":["string","null"]},"proxyType":{"type":"string"},"robotsTxt":{"type":"object","properties":{"allowed":{"type":"boolean"}}},"userAgent":{"type":"string"}},"description":"Fetch provenance"},"requestUrl":{"type":"string","description":"URL as requested, before redirects"},"minifetchCache":{"type":"object","properties":{"hit":{"type":"boolean"},"cachedAt":{"type":"string"},"expiresAt":{"type":"string"}},"description":"Minifetch cache state (~2-min TTL)"}}}}}},"success":{"type":"boolean"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"url":"https://example.com"}}},"response":{"results":[{"data":{"url":"https://example.com/","links":{"anchors":[],"summary":{"totalLinks":1,"anchorCount":0,"externalCount":1,"internalCount":0,"nofollowCount":0,"emptyTextCount":0,"topExternalDomains":[{"count":1,"domain":"iana.org"}],"topInternalTargets":[],"uniqueExternalDomains":1,"imageLinksMissingAltCount":0},"external":[{"rel":[],"href":"https://iana.org/domains/example","text":"Learn more"}],"internal":[]},"requestUrl":"https://example.com","minifetchCache":{"hit":"true","cachedAt":"2026-06-12T01:55:29.892Z","expiresAt":"2026-06-12T01:57:29.892Z"}}}],"success":true}},"exampleRequest":{"url":"https://example.com"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_o5ssAs_8CzS-uMZV8Efym","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":"Extracts and categorizes all links from a URL (internal, external, anchor) with SEO metadata including nofollow attributes and external domain distribution","exampleAgentPrompt":"Can you pull all the links from https://example.com and tell me which ones are internal vs external, which domains they point to, and flag any that have nofollow?","exampleUseCases":null,"resultDescription":"Returns an array of link analysis objects containing: categorized links (internal, external, anchor) with href, link text, and rel attributes; summary statistics (total link count, internal count, external count, nofollow count, unique external domains, top external domains with counts); plus cache metadata (hit status, cached and expiry timestamps).","failureModes":["Invalid or unreachable URL returns an error response","Timeout if the target page is slow to load","Pages behind authentication or paywalls may not return full link data","Malformed URL input causes validation error","Pages with JavaScript-rendered links may not capture dynamically injected hrefs"],"whenToPreferThis":"Use this endpoint when you need a structured breakdown of all links on a page categorized by type (internal/external/anchor) with SEO-relevant metadata like nofollow and rel attributes. Prefer this over full content scrapers when your goal is link analysis, SEO auditing, or mapping site structure rather than reading page content. It is more focused and cost-efficient than general-purpose scrapers for link-specific tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:38:22.192Z","isFirstParty":false,"canonicalSlug":"minifetch-com-cd6fe471"}