{"uid":"cap_yBBIoe8qFbv9CAg_v8YKV","slug":"api-x402node-dev-b0f57826","name":"Markdown Frontmatter Parser","description":"Parse YAML frontmatter from markdown (the --- block at top). Returns parsed dict, raw frontmatter, and body without frontmatter. Use url param or ?text=.... Built for AI agents indexing Jekyll/Hugo/Astro/Eleventy content sites. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/md/frontmatter","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fRzTfLHatp4ZoT1lRrxNd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses YAML frontmatter (the --- block) from markdown files, returning the parsed metadata dict, raw frontmatter string, and body content without frontmatter","exampleAgentPrompt":"Can you pull out the frontmatter metadata from this markdown file — I want the title, date, tags, and any other YAML fields from the --- block at the top, plus the body text separately? Here's the URL: https://myblog.com/posts/my-post.md","exampleUseCases":null,"resultDescription":"Returns a JSON object containing: a parsed dict of all frontmatter key-value pairs (e.g. title, date, tags, author), the raw YAML frontmatter string, and the markdown body content with the frontmatter block removed","failureModes":["No frontmatter found — markdown has no --- delimiters, returns empty dict or error","Invalid YAML in frontmatter — malformed YAML causes parse error","URL not reachable — if ?url= param used and URL returns non-200 or times out","Non-markdown content at URL — returns error if content type is not text/markdown","Empty input — both url and text params missing returns 400 error"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract structured metadata from Jekyll, Hugo, Astro, Eleventy, or any markdown-based static site content. Ideal for AI agents indexing content sites, building search indexes, or extracting post metadata (title, date, tags, author) in bulk. Prefer this over generic YAML parsers because it specifically handles the markdown+frontmatter format and returns both parsed metadata and clean body text in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:58:11.577Z","isFirstParty":false}