{"name":"x402-search-api","service_name":"x402 Web Search","description":"Search the live web and get up to 20 ranked results as JSON: title, link, snippet, source and date, for web, news or images. Use it when your agent needs current facts, links or docs; filters: published_within=7, include_domains=github.com. Not for full page text: use \/search-contents, or \/search-batch for several queries. $0.00435 a search in USDC on Base; a query with no results is not charged. Results come from the live web, no API key needed. Example: q=base l2 gas fees","base_url":"https:\/\/search.cyberwarex.com","openapi_url":"\/openapi.json","payment":{"scheme":"x402","network":"eip155:8453","asset":"USDC","pay_to":"0x058D0Cc5CC97e61e8A9f38D6d6365bce525921B2"},"mcp":{"url":"\/mcp","transport":"streamable-http","auth":"none","tools":["web_search","read_page","search_and_read","web_search_batch","news","answer"],"registry":"io.github.CyberPunk11147\/cyberwarex-search","note":"3 free calls a day per IP, then each tool error carries the x402 invoice; pay and retry with x_payment."},"endpoints":[{"path":"\/search","method":"GET","price_usdc":0.00435,"input":{"q":"base l2 gas fees","category":"general","max_results":5},"description":"Search the live web and get up to 20 ranked results as JSON: title, link, snippet, source and date, for web, news or images. Use it when your agent needs current facts, links or docs; filters: published_within=7, include_domains=github.com. Not for full page text: use \/search-contents, or \/search-batch for several queries. $0.00435 a search in USDC on Base; a query with no results is not charged. Results come from the live web, no API key needed. Example: q=base l2 gas fees"},{"path":"\/contents","method":"GET","price_usdc":0.002,"input":{"url":"https:\/\/docs.x402.org","format":"markdown","max_chars":8000},"description":"Read one public web page, JavaScript included, or a PDF link, and get clean markdown or text with the final URL and status, cut to max_chars. Use it when your agent has a URL and must quote or check the page itself. Not for finding pages: use \/search first, or \/search-contents to search and read in one call. $0.002 a page in USDC on Base; a page that cannot be read is not charged. The page is read live from the site. Example: url=https:\/\/docs.x402.org"},{"path":"\/search-contents","method":"GET","price_usdc":0.006,"input":{"q":"x402 payment protocol","max_results":3,"format":"markdown","max_chars":4000},"description":"Search the web and read the top pages in one call: you get up to 5 results, each with the readable text of its page as markdown or text. Use it when your agent must answer with sources it can quote, without a second round of fetches. Not for a quick link list: use \/search at $0.00435. $0.006 a call in USDC on Base; no results is not charged; 10-call pack at \/bundle?pack=contents10. Results and pages are read live from the web. Example: q=x402 payment protocol"},{"path":"\/news","method":"GET","price_usdc":0.001,"input":{"topic":"crypto","max_results":10},"description":"Get a dated news brief on any topic. Returns the most reported recent headlines, each with source, link, published time, age in minutes and an importance score from how many news engines carried it. Refreshed every 15 minutes, no AI in the loop. Use it when your agent needs what happened today or this week. Not for docs or general pages: use \/search. $0.001 a brief in USDC on Base; no recent news is not charged. Example: topic=crypto"},{"path":"\/papers","method":"GET","price_usdc":0.003,"input":{"q":"graph neural networks drug discovery","max_results":10},"description":"Find academic papers on any topic with one query across arXiv, PubMed, Semantic Scholar, OpenAlex and Google Scholar. Returns title, URL, authors, year, venue, DOI, citation count, full abstract and a PDF link where available. Use it when your agent needs primary research or a citation. Not for news or general pages: use \/search. $0.003 a query in USDC on Base; no papers found is not charged. Sources are the public science indexes, read live. Example: q=graph neural networks drug discovery"},{"path":"\/search-batch","method":"GET","price_usdc":0.01,"input":{"queries":"base l2 fees|ethereum gas today|solana tps","max_results":5},"description":"Run up to 5 web searches in one call and get a results block per query, up to 10 results each. Use it when a task needs a few lookups at once (compare, fan-out). Not for 6 to 10 queries: use \/search\/batch, 10 for $0.03. $0.01 a batch in USDC on Base; a batch where no query finds anything is not charged. Same live web source as \/search. Example: queries=base l2 fees|solana tps"},{"path":"\/search\/batch","method":"GET","price_usdc":0.03,"input":{"queries":"base l2 fees|ethereum gas today|solana tps","max_results":5},"description":"Run up to 10 web searches for one payment: send a list of queries, get a results block per query, up to 10 results each. Use it when a fan-out task (compare 10 tools, check 10 companies) needs many lookups. Not for 5 or fewer queries: use \/search-batch at $0.01. $0.03 a batch in USDC on Base; a batch where no query finds anything is not charged. Prepaid \/bundle credits work here. Same live web source as \/search. Example: queries=base l2 fees|solana tps","note":"POST a JSON body {\"queries\": [...]} works too; up to 10 queries"},{"path":"\/answer","method":"GET","price_usdc":0.01,"input":{"q":"what is the x402 payment protocol"},"description":"Answer a question in plain words from the live web: returns 2 to 4 sentences with numbered source links, written only from the top pages it read; claims the sources do not support are left out. Use it when your agent needs a cited answer, not links. Not for raw results: use \/search at $0.00435. $0.01 an answer in USDC on Base; if the sources do not answer it you are not charged. Example: q=what is the x402 payment protocol"},{"path":"\/search-extract","method":"GET","price_usdc":0.01,"input":{"q":"x402 payment protocol","selector":"h1, h2","max_results":3},"description":"Extract just the parts your agent needs from search results: you get the top pages (up to 5) with their text plus every element matching a CSS selector, such as headings, table rows or links. Use it when you need structured data from several sites without writing a scraper. Not for one known URL: use \/contents. $0.01 a call in USDC on Base; not charged unless at least one page was read. Pages are read live from the web. Example: q=x402 payment protocol, selector=h1"},{"path":"\/narratives","method":"GET","price_usdc":0.001,"input":{"top":5},"description":"Score which crypto narratives are gaining attention now. Returns 12 narratives (Bitcoin, Ethereum, Solana, stablecoins, memecoins, DeFi, AI agents, regulation and 4 more) scored 0-100 for momentum, last 24 h vs earlier days, with raw counts and up to 3 dated headlines each. Sources: GDELT news counts and Wikipedia pageviews, rebuilt hourly. Use it when your agent picks what to cover. Not for prices: use a price API. $0.001 in USDC on Base; a stale feed is not charged. Example: top=5"},{"path":"\/bundle","method":"POST","price_usdc":5,"input":{"usd":5},"description":"Buy prepaid credit for every Search call on this host: pay once in USDC on Base, get a cwx_ key with 10 percent extra credit and stop signing a payment per call. Use it when your agent makes many calls a day. Not for a one-off lookup: pay per call on \/search instead. $1 to $50; top up an existing key the same way. Calls that find nothing are refunded to the key. Results are sourced from the live web, as on \/search. Example: usd=5","note":"prepaid credits; usd 1-50, credited at 110 percent; free balance at GET \/credits?key="}],"bundle":{"what":"prepay $5 once with any x402 client and get a key worth $5.50 (10 percent extra)","buy":"POST https:\/\/search.cyberwarex.com\/bundle?usd=5  -> {key: cwx_...}  (any usd from 1 to 50)","use":"send header X-Subscription-Key: cwx_... on any endpoint of any cyberwarex host; the call price is deducted from the key, no per-call signing, no wallet round trip","calls_for_5_usd":{"\/search":1264,"\/search-contents":916,"\/search-extract":550},"balance":"GET https:\/\/search.cyberwarex.com\/credits?key=cwx_...  (free)","not_charged":"empty results and failed calls are refunded to the key automatically"},"free_trial":{"calls_per_ip_per_day":3,"how":"send header 'X-Free-Trial: 1' or query '?free_trial=1'","note":"bare unpaid requests still return HTTP 402"}}