Complete web search programming interface β integrate powerful AI search capabilities into your applications.
OpenClaw Web Search API is a programming interface provided by the OpenClaw platform. It allows developers to call web search functionality through code, encapsulating complex search logic into simple API calls.
π API Capabilities: Send search queries, get structured results, filter and sort, switch engines β all in a few lines of code.
POST /api/search - Execute web searchGET /api/search/results/{id} - Get search result detailsGET /api/engines - List supported search enginesimport requests
url = "http://localhost:3000/api/search"
data = {
"query": "OpenClaw AI Assistant",
"engine": "brave",
"maxResults": 10
}
response = requests.post(url, json=data)
print(response.json())
query: Search keyword (required)engine: Search engine (brave/bing/duckduckgo)maxResults: Number of results (default 10)language: Language filterfreshness: Time filter (day/week/month/year){
"results": [
{
"title": "Result Title",
"url": "https://...",
"snippet": "Result snippet",
"engine": "brave"
}
],
"total": 100,
"query": "search query"
}
Visit openclaw.ai for complete API documentation.