{"openapi":"3.1.0","info":{"title":"PostToSource x402 API","version":"1.0.0","description":"Convert social posts and articles into clean, LLM-ready markdown, payable per call via x402 (USDC on Base).","x-guidance":"Use POST /api/x402/extract to convert a URL to markdown. Send a JSON body {\"url\": \"<link>\"} where the link is a Twitter/X post or thread, LinkedIn post, Medium/Substack/Beehiiv article, or public Notion page. Pay $0.01 USDC on Base per call via the x402 protocol — no API key needed. Returns {markdown, title, author, wordCount, sourceUrl, platform}. Intended use: converting individual, publicly accessible pages the requester is authorized to view, for personal reference or interoperability — not for bulk archiving, mirroring, systematic reproduction of websites, or building ML-training datasets. Full terms: https://www.posttosource.com/terms.","contact":{"email":"robin@overxceed.com"}},"servers":[{"url":"https://api.posttosource.com"}],"paths":{"/api/x402/extract":{"post":{"operationId":"extractToMarkdown","summary":"Convert a social post or article URL to markdown","tags":["Extraction"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"URL of the Twitter/X, LinkedIn, Medium, Substack, Beehiiv, or public Notion page to convert."}},"required":["url"]}}}},"responses":{"200":{"description":"Successful conversion","content":{"application/json":{"schema":{"type":"object","properties":{"markdown":{"type":"string","description":"The converted content as markdown."},"title":{"type":"string"},"author":{"type":"string"},"wordCount":{"type":"integer"},"sourceUrl":{"type":"string","format":"uri"},"platform":{"type":"string","enum":["twitter","linkedin","medium","substack","beehiiv","notion"]}},"required":["markdown","title","author","wordCount","sourceUrl","platform"]}}}},"400":{"description":"Unsupported or malformed URL"},"402":{"description":"Payment Required"}}},"get":{"operationId":"extractMenu","summary":"Free menu describing this resource (no payment required)","tags":["Extraction"],"security":[],"responses":{"200":{"description":"Resource description"}}}}}}