{"uid":"cap_EugEjyooxmCscjaT7UO-P","slug":"api-x402node-dev-963633b5","name":"Markdown Link Extractor","description":"Extract all links from markdown: inline, reference, autolinks, images. Returns array of {type, text, url, title}. Use url param or ?text=.... Built for AI agents link auditing, broken-link detection, sitemap crawling. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/md/links","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{"text":"# Sample Document\n\nCheck out [OpenAI](https://openai.com) and visit ![example image](https://example.com/image.png \"Example\"). Also see <https://github.com> for more info."},"response":{"_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","count":3,"links":[{"url":"https://openai.com","text":"OpenAI","type":"inline","title":null},{"url":"https://example.com/image.png","text":"example image","type":"image","title":"Example"},{"url":"https://github.com","text":"https://github.com","type":"autolink"}],"source":"text","by_type":{"image":1,"inline":1,"autolink":1}}},"exampleRequest":{"text":"# Sample Document\n\nCheck out [OpenAI](https://openai.com) and visit ![example image](https://example.com/image.png \"Example\"). Also see <https://github.com> for more info."},"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4rzoHThAjrlVAtwHJY50m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all links from markdown content — inline, reference, autolinks, and images — returning structured metadata for each link found.","exampleAgentPrompt":"Can you extract every link from this markdown text for me — I need the type, anchor text, URL, and title for each one so I can audit them for broken links: '# My Doc\\n\\nSee [GitHub](https://github.com) and ![logo](https://example.com/logo.png \"Logo\")'?","exampleUseCases":null,"resultDescription":"Returns a JSON array of link objects, each containing: type (inline, reference, autolink, or image), text (anchor or alt text), url (the href or src), and title (optional title attribute). All link types present in the markdown are captured.","failureModes":["No markdown provided — returns empty array or error if neither ?url nor ?text param supplied","URL fetch failure — if ?url= points to an unreachable resource, returns fetch error","Malformed markdown URL — returns error if ?url= is not a valid URL","Empty markdown — returns empty array if content has no links","Payment failure — x402 payment not accepted, returns 402"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract all link types (inline, reference, autolinks, images) from markdown with structured metadata (type, text, url, title). Ideal for link auditing, broken-link detection pipelines, sitemap crawling from markdown sources, or documentation indexing. Prefer this over generic HTML scrapers when your source is specifically markdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:03:20.141Z","isFirstParty":false}