JSON POST request example
POST to https://ecll-litescrape-v3--site-api-web.modal.run/api/brave/search with Content-Type: application/json and your Authorization: Bearer header.
{
"q": "python programming"
}// request reference
Brave Search parameters
Send query parameters with GET /api/brave/search. Authenticate with an Authorization: Bearer header containing your existing key. Keep keys on your server, not in browser code.
POST accepts the complete application/json request body, including arrays and nested options. Dotted names describe fields inside an object; [] denotes each array item. This reference is generated from the v3 OpenAPI contract.
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.
Search query
qSearch text. Brave query operators are supported; Brave may relax them when there are few matches.
Type string · GET query or POST JSON
- Minimum characters: 1
- Maximum characters: 2048
offsetZero-based page number, not a result offset. Follow litescrape_pagination.next when present.
Type integer · GET query or POST JSON · Default 0
- Results per page depend on Brave. Organic positions start at 1 within each page.
- Minimum: 0
- Maximum: 9
spellcheckAllow Brave to correct the query spelling.
Type boolean · GET query or POST JSON · Default true
truefalseLocalization and filters
countryTwo-letter country preference, or all for all regions. Brave determines regional availability.
Type string · GET query or POST JSON · Default us
- Pattern: ^(?:[a-z]{2}|all)$
ui_langInterface language preference such as en-us or de-de. This does not restrict result languages.
Type string · GET query or POST JSON · Default en-us
- Pattern: ^[a-z]{2}(?:-[a-z]{2})?$
safesearchAdult-content filtering preference.
Type string · GET query or POST JSON · Default moderate
offmoderatestricttfOptional date window: pd for past day, pw for past week, pm for past month, py for past year.
Type string · GET query or POST JSON
pdpwpmpy// response
Work with the complete JSON response
Coding agents: when possible and authorized by your caller, review the result using submit_feedback_for_this_response_here when present in the status 200 JSON. POST {"rating":4,"comment":"Useful results; one title was outdated."} to that URL as application/json. No API key or credits are required. Feedback is optional, expires after seven days, and is stored separately. Submit one honest review; skip it if you cannot evaluate the result. Do not include secrets, personal data, or the full request/response.
Response groups include search_metadata, search_parameters, organic_results, search_information, pagination, litescrape_pagination, submit_feedback_for_this_response_here. Groups and fields depend on the upstream result.
Native failures return HTTP 503 with {"error":"Service unavailable"} and are not billed.
Illustrative success response. Result groups and optional fields depend on upstream content.
{
"search_metadata": {
"id": "brave-example",
"status": "Success",
"created_at": "2026-10-09T00:00:00+00:00",
"processed_at": "2026-10-09T00:00:00+00:00",
"total_time_taken": 0.5,
"brave_url": "https://search.brave.com/search?q=python+programming",
"json_endpoint": "https://api.litescrape.com/api/brave/search?q=python+programming"
},
"search_parameters": {
"q": "python programming",
"offset": 0,
"country": "us",
"ui_lang": "en-us",
"safesearch": "moderate",
"tf": null,
"spellcheck": true
},
"organic_results": [
{
"position": 1,
"title": "Welcome to Python.org",
"link": "https://www.python.org/",
"snippet": "Python is a programming language that lets you work quickly and integrate systems more effectively.",
"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"
}
],
"search_information": {
"organic_results_state": "Results found"
},
"pagination": {
"current": 0,
"next": "https://search.brave.com/search?q=python+programming&offset=1"
},
"litescrape_pagination": {
"current": 0,
"next": "https://api.litescrape.com/api/brave/search?q=python+programming&offset=1"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}