{"openapi":"3.1.0","info":{"title":"Majmu Web Extractor","version":"1.0.0","description":"Clean, structured data from any public web page, for AI agents. One page extract is $0.05. A batch report of up to 50 URLs is $5.00. Without an API key, each IP address gets 20 calls per UTC day. The next call returns HTTP 402 with an x402-shaped price preview. Payment is not verified in v1. Pages are fetched server-side with a 10 second timeout, 5 redirects at most and 5 MB of body. Private, loopback, link-local and metadata addresses are refused."},"servers":[{"url":"https://web.majmu.xyz"}],"x-web-extractor-pricing":{"currency":"USD","extractUsd":0.05,"batchReportUsd":5,"batchMaxUrls":50,"freeDailyLimit":20},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"bearer":[]},{"apiKey":[]},{}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Service health, pricing and limits.","responses":{"200":{"description":"The service is up."}}}},"/api/extract":{"get":{"operationId":"extractPage","summary":"Extract one page ($0.05).","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"},"description":"Absolute http or https URL."},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","markdown"],"default":"json"},"description":"json (default) returns every field. markdown returns the page as text/markdown with a front-matter block."}],"responses":{"200":{"description":"url, finalUrl, status, title, description, canonical, author, publishedAt, language, text, markdown, wordCount, headings, links (absolute, internal flag), images, tables, openGraph, jsonLd, usage."},"400":{"description":"The URL is invalid or points at a blocked (private, loopback, link-local, metadata) address."},"401":{"description":"The API key was not recognized."},"402":{"description":"Free tier exhausted. Body is an x402 payment preview."},"413":{"description":"The page is larger than 5 MB."},"415":{"description":"The page is not text/html, application/xhtml+xml, or text/plain."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"The page could not be fetched."},"504":{"description":"The page did not answer within 10 seconds."}}},"post":{"operationId":"extractPagePost","summary":"Extract one page, JSON body ($0.05).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"format":{"type":"string","enum":["json","markdown"]}}}}}},"responses":{"200":{"description":"Same as GET."},"400":{"description":"The URL is invalid or points at a blocked (private, loopback, link-local, metadata) address."},"401":{"description":"The API key was not recognized."},"402":{"description":"Free tier exhausted. Body is an x402 payment preview."},"413":{"description":"The page is larger than 5 MB."},"415":{"description":"The page is not text/html, application/xhtml+xml, or text/plain."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"The page could not be fetched."},"504":{"description":"The page did not answer within 10 seconds."}}}},"/api/batch":{"post":{"operationId":"batchReport","summary":"Batch report, up to 50 URLs ($5.00).","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"]},"description":"json (default) or csv summary."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","format":"uri"}}}}}}},"responses":{"200":{"description":"A compact record per URL (markdown capped per page), a CSV summary, any URLs not started before the deadline, and a self-check."},"400":{"description":"The URL is invalid or points at a blocked (private, loopback, link-local, metadata) address."},"401":{"description":"The API key was not recognized."},"402":{"description":"Free tier exhausted. Body is an x402 payment preview."},"413":{"description":"The page is larger than 5 MB."},"415":{"description":"The page is not text/html, application/xhtml+xml, or text/plain."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"The page could not be fetched."},"504":{"description":"The page did not answer within 10 seconds."}}}},"/openapi.json":{"get":{"operationId":"openapi","summary":"This document.","responses":{"200":{"description":"OpenAPI 3.1 JSON."}}}},"/.well-known/agent.json":{"get":{"operationId":"agentManifest","summary":"Agent manifest (EIP-8004 style). Served by a rewrite to /api/agent.","responses":{"200":{"description":"Agent manifest."}}}}}}