Brave Search
Search Brave via API. Supply a search query. Sample fields include creation times and links. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists timeout. Use the results to organize a research workflow and cross-check the relevant source records.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Brave Search
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
litescrape_paginationobjectcurrentintegernextstring
organic_resultsobject[]displayed_linkstringfaviconstringlinkstringpositionintegersnippetstringtitlestring
paginationobjectcurrentintegernextstring
search_informationobjectorganic_results_statestring
search_metadataobjectbrave_urlstringcreated_atstringidstringjson_endpointstringprocessed_atstringstatusstringtotal_time_takennumber
search_parametersobjectcountrystringoffsetintegerqstringsafesearchstringspellcheckbooleantfnullui_langstring
submit_feedback_for_this_response_herestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
litescrape_pagination?: {
current?: number;
next?: string;
};
organic_results?: Array<{
displayed_link?: string;
favicon?: string;
link?: string;
position?: number;
snippet?: string;
title?: string;
}>;
pagination?: {
current?: number;
next?: string;
};
search_information?: {
organic_results_state?: string;
};
search_metadata?: {
brave_url?: string;
created_at?: string;
id?: string;
json_endpoint?: string;
processed_at?: string;
status?: string;
total_time_taken?: number;
};
search_parameters?: {
country?: string;
offset?: number;
q?: string;
safesearch?: string;
spellcheck?: boolean;
tf?: null;
ui_lang?: string;
};
submit_feedback_for_this_response_here?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
litescrapeCurrent Brave Search · POST · View API reference | $0.00015 / call | — | —successP50— |
- Unit price
- $0.00015
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/brave/search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/brave/search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"q": "python programming"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget. maximum: 90 |
country | JSON request bodybody | string | No | Two-letter country preference, or all for all regions. Brave determines regional availability. pattern: ^(?:[a-z]{2}|all)$ |
offset | JSON request bodybody | integer | No | Zero-based page number, not a result offset. Follow litescrape_pagination.next when present.
Results per page depend on Brave. Organic positions start at 1 within each page. minimum: 0 · maximum: 9 |
q | JSON request bodybody | string | Yes | Search text. Brave query operators are supported; Brave may relax them when there are few matches. minLength: 1 · maxLength: 2048 |
safesearch | JSON request bodybody | string | No | Adult-content filtering preference. enum: "off", "moderate", "strict" |
spellcheck | JSON request bodybody | boolean | No | Allow Brave to correct the query spelling. |
tf | JSON request bodybody | string | null | No | Optional date window: pd for past day, pw for past week, pm for past month, py for past year. |
ui_lang | JSON request bodybody | string | No | Interface language preference such as en-us or de-de. This does not restrict result languages. pattern: ^[a-z]{2}(?:-[a-z]{2})?$ |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"litescrape_pagination": {
"current": 0,
"next": "https://api.litescrape.com/api/brave/search?q=python+programming&offset=1"
},
"organic_results": [
{
"displayed_link": "python.org",
"favicon": "https://imgs.search.brave.com/r3e7IWxGr6QAH681qFfPX5tiFAeshAzaNhO5YwXtDm4/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvNTJjMzZjNDBj/MmIzODgwMGUyOTRj/Y2E5MjM3YjRkYTZj/YWI1Yzk1NTlmYTgw/ZDBjNzM0MGMxZjQz/YWFjNTczYy93d3cu/cHl0aG9uLm9yZy8",
"link": "https://www.python.org/",
"position": 1,
"snippet": "Python is a programming language that lets you work quickly and integrate systems more effectively.",
"title": "Welcome to Python.org"
}
],
"pagination": {
"current": 0,
"next": "https://search.brave.com/search?q=python+programming&offset=1"
},
"search_information": {
"organic_results_state": "Results found"
},
"search_metadata": {
"brave_url": "https://search.brave.com/search?q=python+programming",
"created_at": "2026-10-09T00:00:00+00:00",
"id": "brave-example",
"json_endpoint": "https://api.litescrape.com/api/brave/search?q=python+programming",
"processed_at": "2026-10-09T00:00:00+00:00",
"status": "Success",
"total_time_taken": 0.5
},
"search_parameters": {
"country": "us",
"offset": 0,
"q": "python programming",
"safesearch": "moderate",
"spellcheck": true,
"tf": null,
"ui_lang": "en-us"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Brave Search
Search Brave via API. Supply a search query. Sample fields include creation times and links. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists timeout. Use the results to organize a research workflow and cross-check the relevant source records.
## Available implementations
litescrape · Brave Search: https://openany.si/markets/apis/capabilities/brave-search?offering=15de3d87-78c7-4954-94e3-c52dc2e6389e · $0.00015 / call
## Selected API contract
Documentation: https://openany.si/apis/15de3d87-78c7-4954-94e3-c52dc2e6389e
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/brave/search
Price: $0.00015 / call
Provider: litescrape
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/brave/search' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"q": "python programming"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Brave Search",
"endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/brave/search",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
"location": "query",
"maximum": "90",
"name": "timeout",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Get Brave web search results.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"q": "python programming"
}
],
"properties": {
"country": {
"default": "us",
"description": "Two-letter country preference, or all for all regions. Brave determines regional availability.",
"pattern": "^(?:[a-z]{2}|all)$",
"title": "Country",
"type": "string",
"x-litescrape": {
"group": 1,
"summary": "Two-letter country preference, or all for all regions. Brave determines regional availability."
}
},
"offset": {
"default": 0,
"description": "Zero-based page number, not a result offset. Follow litescrape_pagination.next when present.\n\nResults per page depend on Brave. Organic positions start at 1 within each page.",
"maximum": 9,
"minimum": 0,
"title": "Offset",
"type": "integer",
"x-litescrape": {
"group": 0,
"notes": [
"Results per page depend on Brave. Organic positions start at 1 within each page."
],
"summary": "Zero-based page number, not a result offset. Follow litescrape_pagination.next when present."
}
},
"q": {
"description": "Search text. Brave query operators are supported; Brave may relax them when there are few matches.",
"maxLength": 2048,
"minLength": 1,
"title": "Q",
"type": "string",
"x-litescrape": {
"group": 0,
"summary": "Search text. Brave query operators are supported; Brave may relax them when there are few matches."
}
},
"safesearch": {
"default": "moderate",
"description": "Adult-content filtering preference.",
"enum": [
"off",
"moderate",
"strict"
],
"title": "Safesearch",
"type": "string",
"x-litescrape": {
"group": 1,
"summary": "Adult-content filtering preference."
}
},
"spellcheck": {
"default": true,
"description": "Allow Brave to correct the query spelling.",
"title": "Spellcheck",
"type": "boolean",
"x-litescrape": {
"group": 0,
"summary": "Allow Brave to correct the query spelling."
}
},
"tf": {
"anyOf": [
{
"enum": [
"pd",
"pw",
"pm",
"py"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional date window: pd for past day, pw for past week, pm for past month, py for past year.",
"title": "Tf",
"x-litescrape": {
"group": 1,
"summary": "Optional date window: pd for past day, pw for past week, pm for past month, py for past year."
}
},
"ui_lang": {
"default": "en-us",
"description": "Interface language preference such as en-us or de-de. This does not restrict result languages.",
"pattern": "^[a-z]{2}(?:-[a-z]{2})?$",
"title": "Ui Lang",
"type": "string",
"x-litescrape": {
"group": 1,
"summary": "Interface language preference such as en-us or de-de. This does not restrict result languages."
}
}
},
"required": [
"q"
],
"title": "Request",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "150",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"q": "python programming"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"litescrape_pagination": {
"current": 0,
"next": "https://api.litescrape.com/api/brave/search?q=python+programming&offset=1"
},
"organic_results": [
{
"displayed_link": "python.org",
"favicon": "https://imgs.search.brave.com/r3e7IWxGr6QAH681qFfPX5tiFAeshAzaNhO5YwXtDm4/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvNTJjMzZjNDBj/MmIzODgwMGUyOTRj/Y2E5MjM3YjRkYTZj/YWI1Yzk1NTlmYTgw/ZDBjNzM0MGMxZjQz/YWFjNTczYy93d3cu/cHl0aG9uLm9yZy8",
"link": "https://www.python.org/",
"position": 1,
"snippet": "Python is a programming language that lets you work quickly and integrate systems more effectively.",
"title": "Welcome to Python.org"
}
],
"pagination": {
"current": 0,
"next": "https://search.brave.com/search?q=python+programming&offset=1"
},
"search_information": {
"organic_results_state": "Results found"
},
"search_metadata": {
"brave_url": "https://search.brave.com/search?q=python+programming",
"created_at": "2026-10-09T00:00:00+00:00",
"id": "brave-example",
"json_endpoint": "https://api.litescrape.com/api/brave/search?q=python+programming",
"processed_at": "2026-10-09T00:00:00+00:00",
"status": "Success",
"total_time_taken": 0.5
},
"search_parameters": {
"country": "us",
"offset": 0,
"q": "python programming",
"safesearch": "moderate",
"spellcheck": true,
"tf": null,
"ui_lang": "en-us"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
timeout- Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
body- Get Brave web search results.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/brave/search' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "q": "python programming" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "litescrape_pagination": { "current": 0, "next": "https://api.litescrape.com/api/brave/search?q=python+programming&offset=1" }, "organic_results": [ { "displayed_link": "python.org", "favicon": "https://imgs.search.brave.com/r3e7IWxGr6QAH681qFfPX5tiFAeshAzaNhO5YwXtDm4/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvNTJjMzZjNDBj/MmIzODgwMGUyOTRj/Y2E5MjM3YjRkYTZj/YWI1Yzk1NTlmYTgw/ZDBjNzM0MGMxZjQz/YWFjNTczYy93d3cu/cHl0aG9uLm9yZy8", "link": "https://www.python.org/", "position": 1, "snippet": "Python is a programming language that lets you work quickly and integrate systems more effectively.", "title": "Welcome to Python.org" } ], "pagination": { "current": 0, "next": "https://search.brave.com/search?q=python+programming&offset=1" }, "search_information": { "organic_results_state": "Results found" }, "search_metadata": { "brave_url": "https://search.brave.com/search?q=python+programming", "created_at": "2026-10-09T00:00:00+00:00", "id": "brave-example", "json_endpoint": "https://api.litescrape.com/api/brave/search?q=python+programming", "processed_at": "2026-10-09T00:00:00+00:00", "status": "Success", "total_time_taken": 0.5 }, "search_parameters": { "country": "us", "offset": 0, "q": "python programming", "safesearch": "moderate", "spellcheck": true, "tf": null, "ui_lang": "en-us" }, "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token" }