Search
Run a web search and get back structured results. Powered by Serper under the hood, with support for general, news, and finance topics.
POST
/v1/searchSearch the web and return structured results.
Request body
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The search query string. |
num | integer | No | Number of results to return (1-100). Default: 10. |
topic | string | No | Search topic: "general", "news", or "finance". Adjusts ranking and source selection. Default: "general". |
Response
Result object
| Field | Type | Description |
|---|---|---|
title | string | Page title from the search result. |
url | string | URL of the search result. |
snippet | string | Text excerpt from the page relevant to the query. |
position | integer | 1-based ranking position in the search results. |
SDK examples
Python
TypeScript
cURL
Note
Each search request costs 1 credit. The news and finance topics may return fewer results depending on current coverage.