# FastX402 Markdown Link Extractor

> FastX402 Markdown Link Extractor is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Extracts all hyperlinks (inline, reference, and autolink types) from a Markdown text string, returning their URLs, positions, and anchor text

## Facts

- Endpoint: GET https://fastx402.tools/markdown-link-extract?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-markdown-link-extractor-6b4dfd19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VW7fhFaQc0SkfkDBgcyOF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastx402-markdown-link-extractor-6b4dfd19
```

Example prompt: 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"'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-markdown-link-extractor-6b4dfd19/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
