# FastX402 Frontmatter Parse

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

Parses YAML front matter from a Markdown string, returning the metadata fields and body content separately

## Facts

- Endpoint: GET https://fastx402.tools/frontmatter-parse?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-frontmatter-parse-213d793c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B88f6OpILxPh77XMi5MEB

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-frontmatter-parse-213d793c
```

Example prompt: Can you parse the front matter from this markdown text and tell me the title, author, and tags? ---
title: Hello World
author: Jane
tags: [blog, intro]
---

# Welcome

This is content.

## When to prefer this

Use this endpoint when you need a quick, stateless, accountless way to extract YAML front matter from a markdown string without setting up a local parser. Ideal for AI agent pipelines processing blog posts, static site content, or documentation files where you want structured metadata (title, author, tags) separated from the body — especially when you're already operating in a pay-per-call x402 context and don't want to manage dependencies.

## Known failure modes

- Missing `markdown` query parameter returns an error
- Malformed YAML in the front matter block may cause parse errors or return empty data
- Markdown with no front matter returns has_frontmatter: false with an empty data object
- Very large markdown documents may hit query string length limits

## 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 with three fields: `body` (the markdown content after the front matter), `data` (an object containing the parsed YAML key-value pairs such as title, author, tags), and `has_frontmatter` (a boolean indicating whether front matter was detected).

## 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, optionally starting with --- YAML --- front matter"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "body": {
       "type": "string"
      },
      "data": {
       "type": "object",
       "properties": {
        "tags": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "title": {
         "type": "string"
        },
        "author": {
         "type": "string"
        }
       }
      },
      "has_frontmatter": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "body": "# Welcome\n\nThis is content.",
  "data": {
   "tags": [
    "blog",
    "intro"
   ],
   "title": "Hello World",
   "author": "Jane"
  },
  "has_frontmatter": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-frontmatter-parse-213d793c/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)
