{"openapi":"3.1.0","info":{"title":"spipe","version":"1.0.0","description":"Web search, content extraction, and research APIs for AI agents. x402 on Base.","contact":{"email":"api@spipe.dev"}},"servers":[{"url":"https://spip3.vercel.app"}],"paths":{"/api":{"get":{"summary":"API info","security":[],"responses":{"200":{"description":"API info","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/status":{"get":{"summary":"Service status","security":[],"responses":{"200":{"description":"Status","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/usage":{"get":{"summary":"Usage stats","security":[],"responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/search":{"get":{"operationId":"search","summary":"Web search with snippets","x-402":{"amount":"$0.01"},"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Search query"},{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":10},"description":"Number of results (1-20)"},{"name":"freshness","in":"query","required":false,"schema":{"type":"string","enum":["day","week","month","year"]},"description":"Filter by recency"},{"name":"country","in":"query","required":false,"schema":{"type":"string"},"description":"Country code (US, GB, etc.)"},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"EN"},"description":"Language code"},{"name":"safesearch","in":"query","required":false,"schema":{"type":"string","enum":["off","moderate","strict"],"default":"moderate"},"description":"Safe search level"}],"responses":{"200":{"description":"Search results","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}},"/search/deep":{"get":{"operationId":"searchDeep","summary":"Web search with full page extraction","x-402":{"amount":"$0.03"},"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Search query"},{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":10},"description":"Number of results"},{"name":"freshness","in":"query","required":false,"schema":{"type":"string","enum":["day","week","month","year"]},"description":"Filter by recency"}],"responses":{"200":{"description":"Deep results with full page content","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}},"/contents":{"post":{"operationId":"contents","summary":"Extract clean content from URLs","x-402":{"amount":"$0.01"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","items":{"type":"string"},"maxItems":10,"description":"URLs to extract"},"formats":{"type":"array","items":{"type":"string","enum":["html","markdown","metadata"]},"description":"Output formats"},"crawl_timeout":{"type":"integer","default":10,"description":"Timeout per page (1-60s)"}}}}}},"responses":{"200":{"description":"Extracted content","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}},"/answer":{"post":{"operationId":"answer","summary":"Synthesized answer with citations","x-402":{"amount":"$0.01"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Question to answer"},"freshness":{"type":"string","enum":["day","week","month","year"]},"country":{"type":"string"},"language":{"type":"string"}}}}}},"responses":{"200":{"description":"Answer with citations","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}},"/research":{"post":{"operationId":"research","summary":"Multi-step deep research","x-402":{"amount":"$0.05"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Research question (max 40,000 chars)"},"research_effort":{"type":"string","enum":["lite","standard","deep","exhaustive"],"default":"standard"}}}}}},"responses":{"200":{"description":"Research report with sources","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}},"/research/finance":{"post":{"operationId":"financeResearch","summary":"Finance-grade research","x-402":{"amount":"$0.15"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Financial research question"},"research_effort":{"type":"string","enum":["deep","exhaustive"],"default":"deep"}}}}}},"responses":{"200":{"description":"Finance research report","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}}}}