{"openapi":"3.1.0","info":{"title":"Agent Web & Data API (MPP): scrape, extract, filings, weather, FX","version":"1.0.0","description":"Pay-per-call web fetch/extract and public reference data for AI agents: URL to clean Markdown, article extraction, structured JSON extraction with your schema, page links and sitemaps, Wikipedia search, word of the day and on-this-day facts, SEC EDGAR filings/financials/full-text search, global weather forecast, US weather alerts, ECB FX reference rates and the US Treasury yield curve. No account, no API key: pay per call with MPP on Tempo (USDC.e or pathUSD). Invalid input or upstream failure returns 402 and is not charged. Docs: https://mpp-agent-data.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://mpp-agent-data.fmf-x402.workers.dev/llms.txt and https://mpp-agent-data.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://mpp-agent-data.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-browser.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev. Sources and licences: MET Norway (CC BY 4.0), NWS (public domain), SEC EDGAR (public information), ECB (free reuse with source; this information is available free at ecb.europa.eu), U.S. Treasury (public domain), Wikipedia/Wiktionary (CC BY-SA 4.0). Web pages are fetched as given by you; you are responsible for your use of third-party content.","x-guidance":"POST JSON to any /mpp/* route (GET with query params also works). Pay the MPP 402 challenge on Tempo. Bad input or a failed fetch returns 402 with an error and you are not charged. Each response names its data source and licence.","contact":{"name":"FMF Tools","url":"https://mpp-agent-data.fmf-x402.workers.dev/docs"},"x-docs":"https://mpp-agent-data.fmf-x402.workers.dev/docs","x-mcp":"https://mpp-agent-data.fmf-x402.workers.dev/mcp","x-llms":"https://mpp-agent-data.fmf-x402.workers.dev/llms.txt","x-fmf-id":"agent-data"},"servers":[{"url":"https://mpp-agent-data.fmf-x402.workers.dev"}],"paths":{"/mpp/web/scrape":{"post":{"operationId":"web_scrape","summary":"URL to clean Markdown","description":"Fetch a URL and return clean LLM-ready Markdown plus title, description, canonical, language, published date and (optionally) the page links. Optional selector (CSS) to keep part of the page. Works for HTML pages and linked PDF/DOCX/XLSX files. Static fetch (no JavaScript rendering). Max 5 MB page. Price $0.0015 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Page URL","format":"uri"},"html":{"type":"string","description":"Raw HTML instead of url"},"selector":{"type":"string","description":"CSS selector to keep (e.g. \"article\")"},"links":{"type":"boolean","description":"also return page links"},"max_chars":{"type":"integer","description":"truncate markdown"}},"required":["url"]},"example":{"url":"https://example.com"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.0015"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/web/links":{"post":{"operationId":"web_links","summary":"Page links (map)","description":"Fetch a URL and list every link on the page (absolute URL, anchor text, internal/external), de-duplicated, up to 2,000. Optional same_site=true to keep internal links only. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Page URL","format":"uri"},"same_site":{"type":"boolean","description":"internal links only"}},"required":["url"]},"example":{"url":"https://example.com"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/web/sitemap":{"post":{"operationId":"web_sitemap","summary":"Site URL map from sitemaps","description":"Discover a site's pages from robots.txt and sitemap.xml (follows sitemap indexes, gzip not supported). Input: url or domain. Returns up to 5,000 URLs with lastmod. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Site URL or domain"}},"required":["url"]},"example":{"url":"https://www.cloudflare.com"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/web/extract":{"post":{"operationId":"web_extract","summary":"Structured extraction from a URL","description":"Fetch a URL (or take html/markdown) and extract structured JSON: pass a JSON Schema (schema) and/or an instruction (prompt). Output is validated against your schema; if it does not validate you are not charged. Static fetch, page truncated to ~12k tokens. Price $0.004 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Page URL","format":"uri"},"html":{"type":"string","description":"Raw HTML instead of url"},"markdown":{"type":"string","description":"Markdown/text instead of url"},"schema":{"type":"object","description":"JSON Schema for the output"},"prompt":{"type":"string","description":"What to extract"},"selector":{"type":"string","description":"CSS selector to keep"}}},"example":{"url":"https://example.com","schema":{"type":"object","properties":{"title":{"type":"string"},"link_text":{"type":"string"}},"required":["title"]}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.004"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/wiki/search":{"post":{"operationId":"wiki_search","summary":"Wikipedia search with extracts","description":"Search Wikipedia (any language edition) and return the top results with clean plain-text extracts (intro or full article), URL, and last-edited time. Params: q, lang (default en), limit (1-10, default 5), full (true for whole article text, top 3). Content CC BY-SA 4.0 (attribution in response). Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","description":"Search query"},"lang":{"type":"string","description":"Wikipedia language code, default en"},"limit":{"type":"integer","description":"1-10"},"full":{"type":"boolean","description":"full article text"}},"required":["q"]},"example":{"q":"Machine Payments Protocol","limit":3}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/weather/forecast":{"post":{"operationId":"weather_forecast","summary":"Weather forecast (global)","description":"Global weather forecast for a lat/lon from MET Norway: current conditions, next 48 hours hourly and 9-day daily summary (temperature, precipitation, wind, humidity, cloud, symbol). Params: lat, lon, hours (1-90, default 48). Data CC BY 4.0, MET Norway. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude"},"lon":{"type":"number","description":"Longitude"},"hours":{"type":"integer","description":"hourly rows, 1-90"}},"required":["lat","lon"]},"example":{"lat":43.65,"lon":-79.38}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/weather/alerts-us":{"post":{"operationId":"weather_alerts_us","summary":"US weather alerts (NWS)","description":"Active U.S. National Weather Service alerts for a lat/lon point or a state/territory code (area=CA). Returns event, severity, urgency, certainty, headline, description, instructions, onset/expiry and affected areas. Public domain NWS data. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude"},"lon":{"type":"number","description":"Longitude"},"area":{"type":"string","description":"2-letter US state code instead of lat/lon"}}},"example":{"area":"CA"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/sec/filings":{"post":{"operationId":"sec_filings","summary":"SEC filings for a company","description":"Recent SEC EDGAR filings for a U.S.-listed company by ticker or CIK: form type, filing and report dates, accession number, primary document URL and description. Optional form filter (e.g. 10-K, 10-Q, 8-K, 4) and limit (1-100, default 20). Also returns company profile (name, SIC, exchange, fiscal year end). Price $0.004 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticker":{"type":"string","description":"Ticker, e.g. AAPL"},"cik":{"type":"string","description":"CIK instead of ticker"},"form":{"type":"string","description":"form filter, e.g. \"10-K,8-K\""},"limit":{"type":"integer","description":"1-100"}}},"example":{"ticker":"AAPL","form":"10-K","limit":5}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.004"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/sec/financials":{"post":{"operationId":"sec_financials","summary":"Company financials (SEC XBRL)","description":"Key reported financials from SEC XBRL company facts by ticker or CIK: revenue, net income, operating income, EPS, assets, liabilities, equity, cash, operating cash flow, debt, shares outstanding. Returns the latest annual (10-K) and quarterly (10-Q) values with period, form and filing date, plus up to 5 years of annual history. Price $0.004 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticker":{"type":"string","description":"Ticker"},"cik":{"type":"string","description":"CIK instead of ticker"}}},"example":{"ticker":"MSFT"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.004"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/sec/search":{"post":{"operationId":"sec_search","summary":"SEC full-text filing search","description":"Full-text search across SEC EDGAR filings since 2001 (phrase search with quotes). Params: q, forms (e.g. \"10-K,8-K\"), start/end (YYYY-MM-DD), ticker/cik filter, page. Returns company, form, filing date, period, and document URL for each hit (100 per page). Price $0.004 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","description":"Full-text query; quote phrases"},"forms":{"type":"string","description":"e.g. \"10-K\""},"start":{"type":"string","description":"YYYY-MM-DD"},"end":{"type":"string","description":"YYYY-MM-DD"},"ticker":{"type":"string","description":"limit to company"},"page":{"type":"integer","description":"page (100 hits each)"}},"required":["q"]},"example":{"q":"\"stablecoin\"","forms":"10-K"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.004"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/fx/rates":{"post":{"operationId":"fx_rates","summary":"FX reference rates (ECB)","description":"Official ECB euro foreign-exchange reference rates for ~30 currencies (latest business day, or date=YYYY-MM-DD back to 1999), with cross rates from any base and optional amount conversion (base, symbols, amount). Notice: this ECB information may be obtained free of charge at https://www.ecb.europa.eu. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"base":{"type":"string","description":"base currency, default EUR"},"symbols":{"type":"string","description":"comma list, e.g. \"USD,CAD\""},"amount":{"type":"number","description":"amount to convert"},"date":{"type":"string","description":"YYYY-MM-DD (default latest)"}}},"example":{"base":"USD","symbols":"CAD,EUR,GBP","amount":100}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/rates/treasury":{"post":{"operationId":"rates_treasury","summary":"U.S. Treasury yield curve","description":"Daily U.S. Treasury par yield curve rates (1-month to 30-year) for the latest business day or a given date=YYYY-MM-DD (2000 onward), plus the 10y-2y and 10y-3m spreads. Public domain U.S. Treasury data. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD (default latest)"}}},"example":{}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/daily/word":{"post":{"operationId":"daily_word","summary":"Word of the day","description":"Wiktionary's English Word of the Day (today or date=YYYY-MM-DD) with part of speech, definitions, examples, pronunciation audio link and URL. Text CC BY-SA 4.0 (attribution in response). Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD (default today)"}}},"example":{}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/daily/onthisday":{"post":{"operationId":"daily_onthisday","summary":"On this day + random fact","description":"Historical events, births and deaths on a date (today or date=YYYY-MM-DD / MM-DD) from Wikipedia, each with year, text and article link; random=true returns one random dated fact. type: all|events|births|deaths|selected. Text CC BY-SA 4.0. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD or MM-DD"},"type":{"type":"string","description":"all|events|births|deaths|selected"},"random":{"type":"boolean","description":"one random fact"},"limit":{"type":"integer","description":"1-200"}}},"example":{"type":"selected","limit":5}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/web/article":{"post":{"operationId":"web_article","summary":"Article extraction","description":"Extract the main article from a news/blog URL: headline, author(s), publish and modified dates, site, language, lead image, description, clean Markdown body (boilerplate, nav and ads removed), word count and reading time, from page markup and schema.org JSON-LD. Static fetch. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Article URL","format":"uri"},"html":{"type":"string","description":"Raw HTML instead of url"},"max_chars":{"type":"integer","description":"truncate markdown"}},"required":["url"]},"example":{"url":"https://blog.cloudflare.com/how-we-built-pingora-the-proxy-that-connects-cloudflare-to-the-internet/"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://mpp-agent-data.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health."}]}