{"uid":"cap_SAPnIhWMtzCJ68SObmoho","slug":"linksweep-broken-link-scan-api-051a3669","name":"LinkSweep Broken-Link Scan API","description":"URL-to-clean-markdown extraction API, on-demand broken-link scan API, pre-deploy link audit API, DNS health audit API, llms.txt / AI-crawler audit API, spec-linted llms.txt audit API, email-deliverability (SPF/DKIM/DMARC) audit API, PDF-to-markdown conversion API, technology-stack fingerprinting API, security-headers audit API, and PDF metadata-intel API for coding agents. Paid per call in USDC via x402 on Base.","url":"https://x402-extract-service.onrender.com/linksweep","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public http(s) page URL to scan for broken links."},"format":{"enum":["json","csv"],"type":"string","description":"csv adds a broken-links CSV alongside the JSON report."},"maxLinks":{"type":"number","description":"Maximum links to check (default 200, hard cap 500)."},"includeImages":{"type":"boolean","description":"Also check image/script sources (default true)."}}},"responseSchema":{"type":"json","example":{"ok":true,"url":"https://example.com","broken":[{"url":"https://example.com/old-page","kind":"a","error":"HTTP 404","status":404,"linkText":"Old page"}],"counts":{"ok":40,"broken":1,"redirected":1},"redirects":[],"scannedAt":"2026-09-10T00:00:00.000Z","durationMs":2314,"linksChecked":42,"pageLinksFound":42,"pricePaidAtomic":"20000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MGMsk1w-smfeFTJmZ94nv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans a public webpage for broken links (and optionally image/script sources), returning a structured report of all dead URLs with HTTP status codes and anchor text.","exampleAgentPrompt":"Can you scan https://mycompany.com/resources for broken links — check up to 300 links including images and scripts, and give me the results as a CSV so I can share it with the team?","exampleUseCases":[{"title":"Pre-launch landing page audit","prompt":"Before we go live tomorrow, can you scan https://acmecorp.com/launch for broken links — check all images and scripts too, up to 200 links — and tell me which ones are returning 404s?"},{"title":"Blog post link health check","prompt":"Can you check https://myblog.dev/posts/ultimate-guide for dead links? I want to know every broken URL with its anchor text so I can fix them before I promote the article."},{"title":"Redirect cleanup for SEO team","prompt":"Run a full link sweep on https://shop.example.com/catalog and export a CSV of broken links and redirects — scan up to 500 links so we get complete coverage for the SEO audit."}],"resultDescription":"Returns a JSON object containing: a list of broken links (each with URL, link kind, error description, HTTP status, and anchor text), a list of redirected links, summary counts (ok/broken/redirected), total links checked, page links found, scan timestamp, and duration in milliseconds. If format=csv is requested, a broken-links CSV is included alongside the JSON.","failureModes":["URL is not publicly accessible or requires authentication — scan returns error or empty results","Page has more than 500 links — hard cap enforced, excess links silently skipped","Target page returns non-HTML content — links cannot be extracted","External links time out during checking — may be reported as errors rather than 404s","Payment in USDC via x402 fails — request is rejected before scan begins"],"whenToPreferThis":"Choose this endpoint when you need a fast, on-demand broken-link report for a specific public webpage, especially when you want HTTP status details, anchor text, and optional image/script source checking in a single call. Prefer it over full-site crawlers when you only need to audit one URL at a time without setting up a persistent monitoring job.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T12:50:51.438Z","isFirstParty":false}