{"uid":"cap_B88f6OpILxPh77XMi5MEB","slug":"fastx402-frontmatter-parse-213d793c","name":"FastX402 Frontmatter Parse","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/frontmatter-parse?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, 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"}}}}}}},"responseSchema":{"type":"json","example":{"body":"# Welcome\n\nThis is content.","data":{"tags":["blog","intro"],"title":"Hello World","author":"Jane"},"has_frontmatter":true}},"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_LSWYBCMzmfaraSmRVg6Er","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":"Parses YAML front matter from a Markdown string, returning the metadata fields and body content separately","exampleAgentPrompt":"Can you parse the front matter from this markdown text and tell me the title, author, and tags? ---\ntitle: Hello World\nauthor: Jane\ntags: [blog, intro]\n---\n\n# Welcome\n\nThis is content.","exampleUseCases":[{"title":"Blog post metadata extraction","prompt":"Here's my blog post markdown — can you pull out the title, author, and tags from the front matter so I can index them separately from the body content? ---\ntitle: My First Post\nauthor: Alice\ntags: [tutorial, beginner]\n---\n\nThis is my first post."},{"title":"Static site content pipeline","prompt":"I'm processing Hugo/Jekyll pages and need you to separate the YAML front matter from the body for each file. Start with this one: ---\ntitle: About Us\ndate: 2024-01-01\n---\n\nWe are a team of engineers."},{"title":"Check if markdown has front matter","prompt":"Can you tell me whether this markdown document has any front matter at all, and if so what fields it contains? Here's the text: # Just a heading\n\nNo metadata here."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T18:48:09.463Z","isFirstParty":false,"canonicalSlug":"fastx402-frontmatter-parse-213d793c"}