{"uid":"cap_AA2SyPF3WjA5jQCG7fikg","slug":"x402-web-search-search-fetch-extract-css-selector-f660cd71","name":"x402 Web Search – Search, Fetch & Extract (CSS Selector)","description":"Search, fetch and extract in one call: top results with page text and the elements matching a CSS selector.","url":"https://search.cyberwarex.com/search-extract?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["q","selector"],"properties":{"q":{"type":"string","minLength":1,"description":"Search query text."},"lang":{"type":"string","default":"en"},"category":{"enum":["general","news"],"type":"string","default":"general"},"selector":{"type":"string","description":"CSS selector to extract from each page, e.g. h1, table tr, a[href]."},"max_chars":{"type":"integer","default":4000,"maximum":20000,"minimum":500,"description":"Per-page text truncation."},"max_results":{"type":"integer","default":3,"maximum":5,"minimum":1,"description":"How many result pages to read (max 5)."}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"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_8Mfx_bp45NPdwWMoKYOfm","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 and simultaneously fetches page text plus CSS-selector-matched elements from top results in a single call.","exampleAgentPrompt":"Search for 'best electric SUVs 2025' in the general category, fetch up to 3 result pages, and extract all 'table tr' elements from each page so I can compare specs side by side.","exampleUseCases":[{"title":"Extract competitor pricing tables","prompt":"Search for 'SaaS project management pricing 2025', grab the top 3 results, and extract all 'table tr' elements from each page so I can compare competitor pricing tiers in one shot."},{"title":"Scrape news headlines with links","prompt":"Search the web for 'AI regulation EU 2025' in the news category and extract all 'a[href]' elements from up to 5 result pages so I can see which sources are linking to what."},{"title":"Pull structured specs from product pages","prompt":"Search for 'MacBook Pro M4 specs' and extract all 'h2, ul li' elements from the top 3 result pages — I want the key spec lists without having to visit each page separately."}],"resultDescription":"Returns a combined response containing: the ranked search result URLs and metadata, the extracted readable text of each fetched page (truncated to max_chars), and the list of DOM elements matching the provided CSS selector found on each page.","failureModes":["CSS selector returns no matches on some pages (empty array for that result)","Page behind JavaScript wall returns incomplete or empty text","Query returns fewer than requested results if index coverage is low","max_chars truncation may cut off content needed from long pages","Rate limit or payment failure if x402 micropayment is not properly signed","Pages with bot-blocking return 403 or empty body"],"whenToPreferThis":"Choose this endpoint when you need both search result discovery AND structured data extraction from those pages in a single API call, eliminating the need for a separate fetch/scrape step. It is ideal when the target data is addressable by a CSS selector (tables, headings, links, list items). Prefer it over a plain search endpoint when you need page content, and over a raw fetch endpoint when you don't know the URLs in advance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T20:13:31.691Z","isFirstParty":false,"canonicalSlug":"x402-web-search-search-fetch-extract-css-selector-f660cd71"}