cURL
curl --request POST \ --url https://api.browserbase.com/v1/search \ --header 'Content-Type: application/json' \ --header 'X-BB-API-Key: <api-key>' \ --data ' { "query": "<string>", "numResults": 10 } '
{ "requestId": "<string>", "query": "<string>", "results": [ { "id": "<string>", "url": "<string>", "title": "<string>", "author": "<string>", "publishedDate": "2023-11-07T05:31:56Z", "image": "<string>", "favicon": "<string>" } ] }
Perform a web search and return structured results.
Your Browserbase API Key.
Request body for web search
The search query string
1 - 200
Number of results to return (1-25)
1 <= x <= 25
The request has succeeded.
Response body for web search
Unique identifier for the request
The search query that was executed
List of search results
Show child attributes
Was this page helpful?