Markdown Link Extractor API

POST

Find every link, anchor, and image URL across your markdown.

Markdown Link Extractor parses markdown documents and extracts all links including inline, reference, autolinks, and image URLs.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/markdownlinkextractor
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "totalLinks": 6,
    "links": [
      {
        "text": "this link",
        "url": "https://example.com",
        "type": "inline"
      },
      {
        "text": "another one",
        "url": "https://test.com",
        "type": "inline"
      },
      {
        "text": "Image",
        "url": "https://example.com/image.png",
        "type": "inline"
      },
      {
        "text": "Reference link",
        "url": "https://reference.com",
        "type": "reference",
        "reference": "ref1"
      },
      {
        "text": "https://autolink.com",
        "url": "https://autolink.com",
        "type": "autolink"
      },
      {
        "text": "https://bare-url.com",
        "url": "https://bare-url.com",
        "type": "bare"
      }
    ],
    "categories": {
      "internal": {
        "count": 0,
        "links": []
      },
      "external": {
        "count": 6,
        "links": [
          {
            "text": "this link",
            "url": "https://example.com",
            "type": "inline"
          },
          {
            "text": "another one",
            "url": "https://test.com",
            "type": "inline"
          },
          {
            "text": "Image",
            "url": "https://example.com/image.png",
            "type": "inline"
          },
          {
            "text": "Reference link",
            "url": "https://reference.com",
            "type": "reference",
            "reference": "ref1"
          },
          {
            "text": "https://autolink.com",
            "url": "https://autolink.com",
            "type": "autolink"
          },
          {
            "text": "https://bare-url.com",
            "url": "https://bare-url.com",
            "type": "bare"
          }
        ]
      },
      "email": {
        "count": 0,
        "links": []
      },
      "other": {
        "count": 0,
        "links": []
      }
    },
    "markdownLength": 253
  }
}

About the Markdown Link Extractor API

Perfect for markdown documentation analysis, link validation, SEO audits, and extracting references from markdown content.

What people use it for

Documentation Analysis
Extract and validate all links from markdown documentation
SEO Auditing
Identify internal and external links in markdown content for SEO optimization
Content Migration
Extract URLs when migrating markdown content between platforms
Link Validation
Generate comprehensive lists of links for automated link checking

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Markdown Link Extractor

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Markdown Link Extractor API.

Read the docs
How far does the Starter plan go for parsing markdown files?
The Starter plan covers 100,000 document parses every month for $29.99, since each request costs 2 credits. That works out to about $0.30 per 1,000 documents or $0.0003 per call. If you are testing your integration, the Free plan includes 100 requests per month.
Do I get internal and external link counts on the Free plan?
No, category counts for internal and external links are premium fields. On the Free plan, you still receive the arrays of extracted links, but the summary count fields for internal and external categories are omitted. Any paid plan, starting with Starter, unlocks those counts.
Which markdown link formats does the parser recognize?
It extracts standard inline links, reference-style links, autolinks wrapped in angle brackets, bare URLs, and image links. Extracted targets are automatically sorted into internal page anchors or relative paths, external web addresses, email links, and other URL schemes.
Is there a file size or character limit on the markdown input?
Yes, each request accepts markdown strings up to 100,000 characters. If you are auditing entire documentation repositories or very large files, split documents exceeding 100,000 characters into smaller sections before sending them.
How are duplicate links handled if a URL appears multiple times?
The parser deduplicates identical destination URLs across the document. The total link count and the returned links list only include unique destinations, retaining the order in which each URL first appeared.

Ready to build with Markdown Link Extractor? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs