{"openapi":"3.1.0","info":{"title":"Agent Research API (MPP): papers, FDA drugs and recalls, clinical trials, LEI","version":"1.0.0","description":"Pay-per-call research data for AI agents: scholarly paper search and DOI metadata (Crossref, 150M+ works), FDA drug labels, FAERS adverse-event signals and food/drug/device recalls (openFDA), clinical trial search and study details (ClinicalTrials.gov), and global legal-entity lookup with parents (GLEIF LEI). Clean, normalized JSON. No account or API key: pay per call with MPP on Tempo (USDC.e or pathUSD). No match, invalid input or upstream failure returns 402 and is not charged. Docs: https://mpp-research.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-research.fmf-x402.workers.dev/llms.txt and https://mpp-research.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://mpp-research.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: Crossref REST API (metadata CC0/facts; abstracts excluded); openFDA (public domain; not for medical decisions); ClinicalTrials.gov API (U.S. NLM); GLEIF LEI data (CC0).","x-guidance":"POST JSON (or GET with query params) to any /mpp/* route and pay the MPP 402 challenge on Tempo (USDC.e or pathUSD). Bad input or an upstream failure returns 402 with an error and you are not charged.","contact":{"url":"https://mpp-research.fmf-x402.workers.dev/docs"},"x-docs":"https://mpp-research.fmf-x402.workers.dev/docs","x-mcp":"https://mpp-research.fmf-x402.workers.dev/mcp","x-llms":"https://mpp-research.fmf-x402.workers.dev/llms.txt","x-fmf-id":"research"},"servers":[{"url":"https://mpp-research.fmf-x402.workers.dev"}],"paths":{"/mpp/papers/search":{"post":{"operationId":"papers_search","summary":"Scholarly paper search (150M+ works)","description":"Search Crossref metadata for journal articles, preprints, books, conference papers and datasets: title, authors, year, venue, DOI, citation count, licence and full-text links. Filters: year range, type; sort by relevance, date or citations. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"rows":{"type":"integer","description":"1-25 (default 10)"},"from_year":{"type":"integer"},"to_year":{"type":"integer"},"type":{"type":"string","description":"e.g. journal-article, posted-content (preprint), book-chapter, proceedings-article, dataset"},"sort":{"type":"string","enum":["relevance","published","cited"]}},"required":["query"]},"example":{"query":"large language model agents tool use","rows":5,"from_year":2024,"sort":"relevance"}}}},"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/papers/doi":{"post":{"operationId":"papers_doi","summary":"Paper metadata by DOI","description":"Full Crossref record for a DOI: title, all authors with ORCID and affiliations, dates, venue, citation and reference counts, funders, licences, full-text links, relations (preprint/version/retraction updates). Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"doi":{"type":"string","description":"DOI, doi.org URL, or \"doi:\" prefixed"}},"required":["doi"]},"example":{"doi":"10.1038/s41586-021-03819-2"}}}},"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/drugs/label":{"post":{"operationId":"drugs_label","summary":"FDA drug label (indications, warnings, dosage)","description":"Official FDA structured product label for a drug by brand or generic name: indications, boxed warning, contraindications, warnings, dosage, adverse reactions, interactions, active ingredients, manufacturer, route, NDCs. Not medical advice. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"brand or generic name, e.g. ibuprofen, Ozempic"},"limit":{"type":"integer","description":"labels to return 1-5 (default 1)"}},"required":["name"]},"example":{"name":"semaglutide"}}}},"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/drugs/adverse-events":{"post":{"operationId":"drugs_adverse_events","summary":"FDA adverse event reports for a drug (FAERS)","description":"Counts from FDA Adverse Event Reporting System for a drug: total reports, serious share, top reported reactions, outcomes, reports by year. Signals only; reports do not prove causation. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"top":{"type":"integer","description":"top reactions 5-50 (default 20)"}},"required":["name"]},"example":{"name":"ibuprofen","top":10}}}},"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/recalls/search":{"post":{"operationId":"recalls_search","summary":"FDA recalls search (food, drugs, devices)","description":"Search FDA enforcement reports (recalls) for food, drugs or medical devices by text, firm, status and class, newest first: product, reason, class, firm, distribution, dates, recall number. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["food","drug","device"]},"query":{"type":"string","description":"text in product or reason, e.g. listeria, peanut, insulin pump"},"firm":{"type":"string"},"status":{"type":"string","enum":["Ongoing","Completed","Terminated"]},"classification":{"type":"string","enum":["Class I","Class II","Class III"]},"since":{"type":"string","description":"YYYY-MM-DD report date lower bound"},"limit":{"type":"integer","description":"1-25 (default 10)"}}},"example":{"category":"food","query":"listeria","limit":5}}}},"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/trials/search":{"post":{"operationId":"trials_search","summary":"Clinical trials search (ClinicalTrials.gov)","description":"Search 500k+ registered clinical studies by condition, intervention, sponsor or free text, filter by status and phase: NCT id, title, status, phases, dates, sponsor, conditions, interventions, enrollment, countries, summary. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"condition":{"type":"string"},"intervention":{"type":"string"},"sponsor":{"type":"string"},"status":{"type":"string","description":"comma list: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED..."},"phase":{"type":"string","description":"comma list: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4"},"limit":{"type":"integer","description":"1-25 (default 10)"}}},"example":{"condition":"type 2 diabetes","intervention":"semaglutide","status":"RECRUITING","limit":5}}}},"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/trials/study":{"post":{"operationId":"trials_study","summary":"Clinical trial details by NCT id","description":"One study in depth: design, arms, eligibility criteria, primary and secondary outcomes, sites, contacts, sponsor and collaborators, status dates, whether results are posted. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nct_id":{"type":"string","description":"NCT12345678"}},"required":["nct_id"]},"example":{"nct_id":"NCT03548935"}}}},"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/company/lei":{"post":{"operationId":"company_lei","summary":"Legal entity lookup (GLEIF LEI)","description":"Find legal entities by name or LEI in the global LEI index (2.9M+ entities): legal name, jurisdiction, legal and HQ addresses, legal form, registry id, status, renewal, BIC, and direct and ultimate parents when looking up one LEI. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"lei":{"type":"string","description":"20-char LEI"},"country":{"type":"string","description":"ISO 3166 alpha-2 filter for name search"},"limit":{"type":"integer","description":"1-20 (default 5)"}}},"example":{"name":"Apple Inc","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"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://mpp-research.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."}]}