{"uid":"cap_VW7fhFaQc0SkfkDBgcyOF","slug":"fastx402-markdown-link-extractor-6b4dfd19","name":"FastX402 Markdown Link Extractor","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/markdown-link-extract?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":["markdown"],"properties":{"markdown":{"type":"string","description":"Markdown text to extract links from"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"line":{"type":"integer"},"text":{"type":"string"},"type":{"type":"string"},"title":{"type":"null"},"column":{"type":"integer"}}}},"references":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"line":{"type":"integer"},"title":{"type":"string"}}}}}}}}}},"responseSchema":{"type":"json","example":{"links":[{"url":"https://example.com","line":1,"text":"Example","type":"inline","title":null,"column":1},{"ref":"ref","url":"https://reference.com","line":1,"text":"Reference","type":"reference","title":"Title","column":36},{"url":"https://auto.link","line":5,"text":"https://auto.link","type":"autolink","title":null,"column":11}],"references":[{"id":"ref","url":"https://reference.com","line":3,"title":"Title"}]}},"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_MWHwVWO4puSHdhTC8modz","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 all hyperlinks (inline, reference, and autolink types) from a Markdown text string, returning their URLs, positions, and anchor text","exampleAgentPrompt":"Can you extract all the links from this markdown text for me? Here it is: '# Hello\\n\\nCheck out [Example](https://example.com) and also [Reference][ref]\\n\\n[ref]: https://reference.com \"Ref Title\"'","exampleUseCases":[{"title":"Audit links in a README","prompt":"I have this markdown README file and I need to pull out every single hyperlink — URLs, their anchor text, and what line they're on. Here's the markdown content: '# My Project\\n\\nSee the [docs](https://docs.example.com) and [changelog](https://changelog.example.com) for more.' Can you extract all the links?"},{"title":"Validate external URLs in docs","prompt":"Here's a markdown document from our wiki — can you extract all the links so I can check which external URLs are still live? The markdown is: 'Visit [our site](https://mysite.com) or see [legacy](https://old.mysite.com) for old content. Also check https://partner.io for updates.'"},{"title":"Build a link index from blog post","prompt":"I've got a markdown blog post and I want to build an index of every URL referenced, including reference-style links. The markdown is: 'Read more at [Wikipedia][wiki] and [example][ex].\\n\\n[wiki]: https://en.wikipedia.org \"Wikipedia\"\\n[ex]: https://example.com \"Example\"' — can you extract them all with their types and positions?"}],"resultDescription":"A JSON object containing two arrays: 'links' (each with url, text, type (inline/reference/autolink), line, column, and title) and 'references' (each with id, url, line, and title). Covers all link varieties in the Markdown spec.","failureModes":["Missing required 'markdown' query parameter returns an error","Non-Markdown plain text returns an empty links array with no error","Malformed or extremely long markdown may cause parsing errors or timeouts","Payment failure (insufficient USDC balance) returns HTTP 402 before processing begins"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable extraction of all links from Markdown — especially when you need position metadata (line/column), link type classification (inline vs reference vs autolink), and reference definitions. Prefer this over regex-based link extraction or generic HTML parsing when the input is raw Markdown syntax.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:36:17.042Z","isFirstParty":false,"canonicalSlug":"fastx402-markdown-link-extractor-6b4dfd19"}