{"uid":"cap_C70IcoFYRW_eprXVAszN5","slug":"agent402-tools-news-search-c9a3c992","name":"agent402.tools News Search","description":"Live news search as clean JSON: recent articles ranked with title, URL, snippet, age, source and a breaking flag, with a freshness filter. Use it for current events and headlines where a general web index lags.","url":"https://agent402.tools/api/search-news","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"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Search query (max 400 chars)"},"count":{"type":"number","description":"Results to return, 1-50 (default 10)"},"country":{"type":"string","description":"Optional 2-letter country code (default US)"},"freshness":{"type":"string","description":"Optional: pd, pw, pm, or py (past day/week/month/year)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["query","count","results"],"properties":{"count":{"type":"integer"},"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"age":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"source":{"type":"string"},"breaking":{"type":"boolean"},"description":{"type":"string"}}}}}}}}}},"responseSchema":{"type":"json","example":{"count":3,"query":"Federal Reserve interest rate decision","results":[{"age":"2 hours ago","url":"https://example.com/article","title":"Fed holds rates steady","source":"example.com","breaking":false,"description":"Policymakers voted…"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lNgmt5lbdRCUtwYU209r_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches a live, independent news index and returns ranked recent articles with title, URL, snippet, age, source, and breaking flag as clean JSON","exampleAgentPrompt":"Search the news for articles about the Federal Reserve interest rate decision from the past week and give me the top 5 results with titles, sources, and how recent they are.","exampleUseCases":null,"resultDescription":"A JSON array of ranked news articles, each containing: article title, URL, text snippet, age/recency indicator, source name, and a boolean breaking news flag. Results are ordered by relevance and freshness, filtered according to the specified freshness window (past day/week/month/year).","failureModes":["Empty result set if query matches no recent indexed articles","Rate limiting or payment failure returning 402 if x402 payment header is missing or invalid","Query exceeding 400 characters returns a validation error","Invalid freshness value (not pd/pw/pm/py) returns an error","Invalid country code may return unexpected results or an error","count outside 1-50 range returns a validation error"],"whenToPreferThis":"Prefer this endpoint when you need fresh, ranked news articles from an independent index rather than a general web search — especially for current-events queries where a web index may lag. Choose this over a general web search endpoint when the user specifically wants news coverage, headline-style results, breaking news flags, and source attribution rather than general web pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:06:31.801Z","isFirstParty":false}