{"uid":"cap_lH_qG6gUnwZvF7Y8qJLvz","slug":"layercity-html-extractor-247ff5f7","name":"LayerCity HTML Extractor","description":"HTML to clean text and markdown for LLMs: returns title, meta description, plain text, markdown, headings, links, word count and reading time. Caller supplies the HTML; no fetching.","url":"https://api.layercity.com/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"Raw HTML document or fragment (max 2 MB)"}}},"responseSchema":null,"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_hGEvQNh3dRa9vCqmODGAp","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":"Converts raw HTML into clean plain text and Markdown with metadata (title, description, headings, links, word count, reading time) for LLM consumption","exampleAgentPrompt":"I have this raw HTML from a webpage — can you strip it down to clean plain text and markdown, and also pull out the title, meta description, headings, links, word count, and reading time so I can feed it to an LLM?","exampleUseCases":[{"title":"Preparing scraped articles for LLM summarization","prompt":"I scraped this news article HTML — can you convert it to clean markdown and plain text, and also pull the title, meta description, and reading time so I can pass it directly to my summarization model?"},{"title":"Extracting structured content from product pages","prompt":"Here's the raw HTML from a product page — extract the headings, links, title, and clean text from it so I can analyze the page structure and content without all the markup noise."},{"title":"Building a readable digest from newsletter HTML","prompt":"I have the HTML of an email newsletter — convert it to clean plain text and markdown, and tell me the word count and reading time so I can format it into a digest for my readers."}],"resultDescription":"Returns a structured object containing: the page title, meta description, plain text version, markdown version, list of headings, list of links, total word count, and estimated reading time — all derived from the submitted HTML without any external fetching.","failureModes":["HTML exceeds 2 MB limit — request rejected","Malformed or empty HTML body — may return empty fields or error","Missing 'html' field in request body — validation error","Extremely sparse or non-semantic HTML (e.g. pure JavaScript apps) — plain text and markdown may be nearly empty"],"whenToPreferThis":"Choose this endpoint when you already have raw HTML in hand and need it converted to clean, LLM-ready text and markdown — especially when you need structured metadata like headings, links, word count, and reading time alongside the content. It does not fetch URLs itself, so pair it with a separate fetcher. Prefer it over general-purpose HTML parsers when the output needs to be immediately usable by an LLM without further cleaning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:37:25.928Z","isFirstParty":false,"canonicalSlug":"layercity-html-extractor-247ff5f7"}