Brave Search
Search Brave Search via API and retrieve structured organic results with pagination, SafeSearch, and locale.
Credit cost: 1 credit per call
Authorization
ApiKeyAuth x-api-key<token>
Your API key. Include it in the x-api-key header for every request.
In: header
Query Parameters
query*string
The search query you want to run on Brave Search.
page?number
Page number for pagination.
Default
"1"gl?string
Country code (e.g. fr, us). Mapped to Brave country.
hl?string
Language code (e.g. fr, en). Mapped to Brave lang.
safe?string
SafeSearch: active | off | moderate | strict. Google-style active maps to Brave strict.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/brave/search?query=string"{ "organic_results": [ { "link": "https://www.crunchbase.com/organization/growhack", "title": "GrowHack - Crunchbase Company Profile & Funding", "domain": "www.crunchbase.com", "snippet": "GrowHack is the leading lean marketing resource for startups.", "position": 1 } ], "search_parameters": { "q": "growth hacking", "gl": "us", "hl": "en", "page": 1, "safe": "active", "engine": "brave", "safesearch": "strict" }}{ "error": "Bad Request"}{ "error": "Invalid API Key"}{ "error": "Payment required"}{ "error": "Rate limit exceeded for the API key: quota monthly"}{ "error": "Internal Error"}