Brave Web Search API
Search Brave Web via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by LiteScrape, pass parameters such as q, and retrieve structured data including organic result title, search snippet, source URL, displayed source label, and position for source discovery, and filtered research, ready for production pipelines and AI agent automation.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 1Selected implementation · last 30 days
- Success rate · 30d
- 0.00%Selected implementation · last 30 days
Brave Web Search API
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- API
- Pricing
On this page
Overview
Brave Web Search API
The JSON body requires q and accepts offset from 0 to 9. organic_results supplies source records, while ui_lang controls interface language and tf selects a documented recency window.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | JSON body requires q; optional body fields: country, offset, safesearch, spellcheck, tf, ui_lang. Optional query parameter: timeout (greater than 0, at most 90 seconds). |
| Selected implementation | litescrape · Brave Search |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Source discovery: Build web result lists with original source links.
- Filtered research: Keep date windows, country preferences and page context together.
Returned Data
| Field | Meaning |
|---|---|
organic_results[].title |
Organic result title. |
organic_results[].snippet |
Search snippet. |
organic_results[].link |
Source URL. |
organic_results[].displayed_link |
Displayed source label. |
organic_results[].position |
One-based position within the returned page. |
pagination.current |
Current zero-based page. |
litescrape_pagination.next |
Provider continuation reference when available. |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request POST \
https://api.openany.si/v1/agent-apis/litescrape/api/brave/search \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"q":"python programming"}'
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published Brave Web Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
litescrapeCurrent Brave Search · POST · View API reference | $0.00015 / call | 1 | 0.00%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: 4. 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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
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 |
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 |
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.
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
Agent integration
Copy the resource contract without sharing an API key.
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" }