Brave Web Search
POST /api/v1/brave/search
Run a Brave Search web query and get the organic results with titles, links, snippets and dates, plus related questions and searches.
Overview
Run a Brave Search web query and get the organic results with titles, links, snippets and dates, plus related questions and searches.
POST /api/v1/brave/search
Method: POST Path: /api/v1/brave/search Category: Search Engine
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| limit | integer | Optional | Maximum number of organic results to return (1-50). |
| location | string | Optional | Two-letter country code to localise results (default US). |
| query | string | Required | Search keywords, e.g. "what is dns". |
Request Example
Brave Web Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/brave/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"limit": "20", "location": "US", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "search_parameters": { "query": "string", "location": "string", "limit": 0, "url": "https://example.com/..." }, "returned_results": 0, "organic_results": [ { "position": 0, "title": "string", "link": "https://example.com/...", "displayed_link": "https://example.com/...", "source": "string", "domain": "string", "snippet": "string", "date": "2026-01-01T12:00:00Z", "highlighted_keywords": [ "string" ], "favicon": "string", "thumbnail": "string" } ], "people_also_ask": [ { "question": "string", "answer": "string", "link": "https://example.com/...", "title": "string" } ], "related_searches": [ { "query": "string", "link": "https://example.com/..." } ], "time_taken": 0.0, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Brave Web Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| search_parameters | object | Yes | Parameters the search was run with. |
| search_parameters.query | string | Yes | Search query that was run. |
| search_parameters.location | string | No | Two-letter country code the results were localised to. |
| search_parameters.limit | integer | No | Maximum number of organic results requested. |
| search_parameters.url | string | Yes | Brave Search results page URL for the query. |
| returned_results | integer | Yes | Number of organic results returned in this response. |
| organic_results | array<object> | Yes | Organic web results in ranking order. |
| organic_results[].position | integer | Yes | 1-based rank of the result. |
| organic_results[].title | string | Yes | Result page title. |
| organic_results[].link | string | Yes | Destination URL of the result. |
| organic_results[].displayed_link | string | No | Breadcrumb-style URL shown under the title. |
| organic_results[].source | string | No | Website name shown for the result. |
| organic_results[].domain | string | No | Host name of the destination URL. |
| organic_results[].snippet | string | No | Text snippet describing the result. |
| organic_results[].date | string | No | Publication or update date shown for the result, if any. |
| organic_results[].highlighted_keywords | array<string> | No | Words highlighted in the snippet. |
| organic_results[].favicon | string | No | Website favicon image URL. |
| organic_results[].thumbnail | string | No | Thumbnail image URL, if shown. |
| people_also_ask | array<object> | No | Related questions with short answers and their source page. |
| people_also_ask[].question | string | Yes | Related question. |
| people_also_ask[].answer | string | No | Short answer text. |
| people_also_ask[].link | string | No | URL of the page the answer comes from. |
| people_also_ask[].title | string | No | Title of the page the answer comes from. |
| related_searches | array<object> | No | Related search suggestions. |
| related_searches[].query | string | Yes | Suggested search query. |
| related_searches[].link | string | No | Brave Search URL for the suggested query. |
| time_taken | number | No | Seconds taken to collect the results. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/brave/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,limit,location example,20,US
Pricing & Rate Limits
Endpoint Pricing
$0.0022 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |