{"uid":"cap_q2_7g_d_DLn88EE47BCit","slug":"socialfetch-web-to-markdown-converter-1a149a9d","name":"SocialFetch Web to Markdown Converter","description":"Convert a web page URL into clean markdown.","url":"https://api.socialfetch.dev/v1/web/markdown","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":["url"],"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"description":"Web page URL to fetch."},"query":{"type":"string","maxLength":500,"description":"Optional query string used by the bm25 filter to rank relevant content."},"filter":{"enum":["fit","raw","bm25"],"type":"string","default":"fit","description":"Markdown extraction filter. `fit`: strip boilerplate and extract the main readable content. `raw`: full unfiltered page markdown, no content pruning. `bm25`: rank and return only the content most relevant to `query`, using the BM25 keyword-relevance algorithm — requires `query` to be set."},"waitFor":{"type":"string","maxLength":200,"description":"Wait for a CSS selector before extraction. Must be prefixed with \"css:\" (e.g. css:main). JavaScript wait conditions are not supported."},"cacheMode":{"enum":["enabled","bypass","write_only"],"type":"string","default":"enabled","description":"Cache behavior. `enabled`: read from cache if present, else fetch and write to cache. `bypass`: always fetch fresh, ignoring and not updating the cache. `write_only`: always fetch fresh, but write the result to cache without reading from it first. Default: `enabled`."},"scanFullPage":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}],"description":"When true, scroll the page to load dynamically appended content (infinite scroll). Default false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.014","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.014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7pqIcqezK6Ie3FiA-OKxP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a web page URL and returns its content as clean, filtered markdown text.","exampleAgentPrompt":"Can you fetch this article and convert it to clean markdown so I can read it without all the noise? Use the 'fit' filter on https://example.com/some-article.","exampleUseCases":null,"resultDescription":"Returns the content of the requested web page as clean markdown text. Depending on the filter chosen ('fit', 'raw', or 'bm25'), the markdown may be trimmed and ranked for relevance. The response includes the converted markdown body ready for downstream processing, summarization, or display.","failureModes":["URL is invalid or malformed — returns a 400-level error","Target page is behind a login wall or bot protection — returns incomplete or empty markdown","URL times out or is unreachable — returns a timeout or 5xx error","BM25 filter used without a query string — may return poorly ranked content","Cached version is stale if cache mode is 'enabled' — use 'bypass' to force fresh fetch","Page has no meaningful text content (e.g. purely image-based) — returns sparse or empty markdown"],"whenToPreferThis":"Choose this endpoint when you need to convert any publicly accessible web page into clean, LLM-ready markdown, especially when you want control over content filtering strategies (fit, raw, or BM25 relevance ranking). Ideal for ingesting articles, documentation pages, or any web content into an AI pipeline. Prefer over general-purpose browser automation when a lightweight, cost-effective REST call suffices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:39:52.645Z","isFirstParty":false}