{"uid":"cap_9qQpHPuK6H93ODay_bk7T","slug":"agentdiet-serp-search-with-context-distillation-01451ddd","name":"AgentDiet SERP Search with Context Distillation","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/serp?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"query":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_spmt69jD9tFw7tuCQ2kcW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs a web search (SERP) query and returns results compressed/distilled for AI agent context windows, achieving up to 91%+ token reduction.","exampleAgentPrompt":"Search the web for 'best open-source LLM frameworks 2025' and give me the results compressed so they fit in my context window without burning tokens.","exampleUseCases":[{"title":"Token-efficient competitive research","prompt":"Search the web for 'top AI coding assistants 2025' and bring back the results in a compressed format — I need to fit the findings into my agent's context window without using too many tokens."},{"title":"Real-time fact lookup for agent pipeline","prompt":"I need you to look up 'current Bitcoin price and market cap' on the web and return a distilled summary — my pipeline has tight context limits so keep it lean."},{"title":"Background research for automated report","prompt":"Run a web search for 'climate change policy updates 2025' and return the compressed SERP results so my agent can include the key findings in a report without exceeding token limits."}],"resultDescription":"A JSON object containing a 'data' field with distilled search results, a 'status' field ('ok' on success), and a 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), indicating how much the context was reduced relative to raw SERP content.","failureModes":["Missing or empty 'query' parameter returns empty or error data","Invalid 'type' or 'method' fields cause schema validation failure","Payment not settled in USDC on Base results in 402 payment required","Network or upstream SERP provider unavailability causes timeout or error status","Query returning no results yields empty data object with ok status"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to perform live web searches but must minimize token consumption — particularly useful in long-running pipelines, multi-step agents, or cost-sensitive workflows where raw SERP HTML or verbose results would exceed context window limits. Prefer it over raw search APIs when the compression ratio (up to 91%+) meaningfully reduces downstream LLM costs. Best suited for agents already using x402/USDC micropayment infrastructure on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:18.828Z","isFirstParty":false,"canonicalSlug":"agentdiet-serp-search-with-context-distillation-01451ddd"}