{"uid":"cap_-EfSqUx1WjCwESxzjSFAI","slug":"2s-io-web-search-api-dce77022","name":"2s.io Web Search API","description":"Live web search. Returns ranked results with title, URL, snippet description, site name, and page age — fresh information past any model training cutoff. Supports count (1-20), offset for paging, country (2-letter, e.g. US), freshness (pd=past day, pw=past week, pm=past month, py=past year, or a YYYY-MM-DDtoYYYY-MM-DD range), and safesearch (off/moderate/strict). Use for current events, fact verification, finding documentation, and research. Independent search index. For news-specific results with sources and timestamps see /api/news/search.","url":"https://2s.io/api/search/web","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["q"],"properties":{"q":{"type":"string","description":"Search query."},"count":{"type":"integer","default":10,"maximum":20,"minimum":1},"offset":{"type":"integer","default":0,"maximum":9,"minimum":0,"description":"Result page offset."},"country":{"type":"string","description":"2-letter country code, e.g. US."},"freshness":{"type":"string","description":"pd | pw | pm | py | YYYY-MM-DDtoYYYY-MM-DD."},"safesearch":{"enum":["off","moderate","strict"],"type":"string","default":"moderate"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"q":"artificial intelligence","count":10,"offset":0,"country":"US","freshness":"pm","safesearch":"moderate"}}},"response":{"data":{"ok":true,"meta":{"query":"artificial intelligence","moreAvailable":true},"items":[{"age":"1 day ago","url":"https://en.wikipedia.org/wiki/Artificial_intelligence","title":"Artificial intelligence - Wikipedia","language":"en","siteName":"Wikipedia","description":"Artificial intelligence (AI) is the capability of computational systems to perform tasks typically associated with human intelligence, such as learning, reasoning, problem-solving, perception, and decision-making. It is a field of research in engineering, mathematics and computer science that ..."},{"age":"2 weeks ago","url":"https://www.ibm.com/think/topics/artificial-intelligence","title":"What Is Artificial Intelligence (AI)? | IBM","language":"en","siteName":"IBM","description":"Artificial intelligence (AI) is technology that enables computers and machines to simulate human learning, comprehension, problem solving, decision making, creativity and autonomy."},{"age":"1 day ago","url":"https://www.britannica.com/technology/artificial-intelligence","title":"Artificial intelligence (AI) | Definition, Examples, Types, Applications, Companies, & Facts | Britannica","language":"en","siteName":"Britannica","description":"Artificial intelligence (AI) is the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems with the ability ..."},{"age":"20 hours ago","url":"https://cloud.google.com/learn/what-is-artificial-intelligence","title":"What is Artificial Intelligence (AI)? | Google Cloud","language":"en","siteName":"Google Cloud","description":"Artificial intelligence (AI) is a set of technologies that empowers computers to learn, reason, and perform a variety of advanced tasks in ways that used to require human intelligence, such as understanding language, analyzing data, and even ..."},{"age":"2 days ago","url":"https://www.sas.com/en_us/insights/analytics/what-is-artificial-intelligence.html","title":"Artificial Intelligence (AI): What it is and why it matters | SAS","language":"en","siteName":"SAS","description":"Artificial intelligence (AI) makes it possible for machines to learn from experience, adjust to new inputs and perform human-like tasks. Most AI examples that you hear about today – from chess-playing computers to self-driving cars – rely ..."},{"age":"5 days ago","url":"https://www.energy.gov/science/doe-explainsartificial-intelligence","title":"DOE Explains...Artificial Intelligence | Department of Energy","language":"en","siteName":"Department of Energy","description":"Artificial Intelligence (AI) simply means intelligence in machines, in contrast to natural intelligence found in humans and other natural organisms. Artificial intelligence gained its name and became a formal field of research in 1956, and initial ..."},{"age":"1 month ago","url":"https://www.nist.gov/artificial-intelligence","title":"Artificial intelligence | NIST","language":"en","siteName":"National Institute of Standards and Technology","description":"NIST promotes innovation and cultivates trust in the design, development, use and governance of artificial intelligence (AI) technologies and systems in ways that enhance economic security, competitiveness, and quality of life."},{"age":"1 day ago","url":"https://aws.amazon.com/what-is/artificial-intelligence/","title":"What is AI? - Artificial Intelligence Explained - AWS","language":"en","siteName":"AWS","description":"Artificial intelligence (AI) is an umbrella term for different strategies and techniques for making machines more human-like. It includes everything from self-driving cars to robotic vacuum cleaners and smart assistants like Alexa. While machine learning and deep learning fall under the AI ..."},{"age":"1 week ago","url":"https://www.merriam-webster.com/dictionary/artificial%20intelligence","title":"ARTIFICIAL INTELLIGENCE Definition & Meaning - Merriam-Webster","language":"en","siteName":"Merriam-Webster","description":"The meaning of ARTIFICIAL INTELLIGENCE is the capability of computer systems or algorithms to imitate intelligent human behavior; also, pluralartificial intelligences : a computer, computer system, or set of algorithms having this capability."},{"age":"3 weeks ago","url":"https://www.geeksforgeeks.org/artificial-intelligence/what-is-artificial-intelligence-ai/","title":"What is Artificial Intelligence (AI) - GeeksforGeeks","language":"en","siteName":"GeeksforGeeks","description":"Artificial Intelligence (AI) is a technology that enables machines and computers to perform tasks that typically require human intelligence."}],"total":null,"source":{"url":"https://brave.com/search/api/","license":"Brave Search API terms","provider":"Brave Search API"}},"meta":{"cost":{"usd":0.009,"tier":2},"caller":"x402","version":null,"endpoint":"search.web","settlement":{"txHash":"0x8ffc2c2afe895f8893e84d706dd6f1b0e0b260305b899ce250ae0974d3b986e5","network":"eip155:8453","success":true}}}},"exampleRequest":{"q":"artificial intelligence","count":10,"offset":0,"country":"US","freshness":"pm","safesearch":"moderate"},"tags":["x402"],"displayCostAmount":"0.009","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0225","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0225","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GZ-J_-GDZhIliNPr3chig","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0225","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs live web searches returning ranked results with title, URL, snippet, site name, and page age, supporting filtering by count, offset, country, freshness, and safesearch.","exampleAgentPrompt":"Search the web for the latest developments in fusion energy research — show me 10 results from the past month, US region only, with moderate safesearch.","exampleUseCases":null,"resultDescription":"Returns a ranked list of up to 20 web results, each containing: page title, URL, snippet/description, site name, and page age. Results are fresh and sourced from a live independent search index beyond any LLM training cutoff.","failureModes":["Missing required 'q' parameter returns a 400 error","Invalid country code may return empty or unfiltered results","Invalid freshness format (not pd/pw/pm/py or YYYY-MM-DDtoYYYY-MM-DD) may cause error or be ignored","count out of range (below 1 or above 20) rejected by schema","offset out of range (above 9) rejected by schema","Payment failure (x402) returns 402 with payment requirements","Query with no matching results returns empty results array"],"whenToPreferThis":"Use this endpoint when you need live, up-to-date web search results beyond any LLM training cutoff — especially for current events, recent documentation, fact-checking, or time-sensitive research. Prefer this over the sibling /api/news/search when you want general web pages rather than news-specific articles with sources and timestamps. Choose this over cached or static knowledge bases when freshness is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:04.064Z","isFirstParty":false}