Overview
Brave Search Suggest API provides intelligent query autocompletion and search suggestions as users type, helping them formulate better queries and discover relevant content faster. The API returns contextually relevant suggestions based on the partial query input, with optional enrichment data for enhanced user experiences.Key Features
Real-time Suggestions
Get instant query completions as users type their search queries
Contextual Results
Suggestions adapt based on country and language preferences
Rich Enrichments
Enhanced suggestions with titles, descriptions, and images (Paid Plan)
Entity Detection
Identify when suggestions represent specific entities
Rich suggestions with enhanced metadata require a paid subscription. View
pricing to unlock these advanced features.
API Reference
Suggest API Documentation
View the complete API reference, including endpoints, parameters, and example
requests
Use Cases
Suggest API is perfect for:- Search Boxes: Power autocomplete in search interfaces
- User Experience: Help users formulate better queries faster
- Query Refinement: Guide users toward popular or relevant searches
- Content Discovery: Surface trending or related topics as users type
- Mobile Applications: Provide touch-friendly query suggestions
Endpoint
Brave Suggest API is available at the following endpoint:Getting Started
Get started immediately with a simple cURL request:Example Response
Rich Suggestions
With a paid subscription and therich=true parameter, suggestions are enhanced with additional metadata:
Enhanced Response Example
Integration Examples
JavaScript/TypeScript
Python
Best Practices
Performance Optimization
- Debounce Requests: Implement debouncing (e.g., 150-300ms) to avoid excessive API calls as users type
- Progressive Enhancement: Load suggestions asynchronously without blocking the UI
Rate Limiting
- Only make requests after users pause typing (debouncing)
- Implement client-side caching for repeated queries
- Consider your subscription plan’s rate limits when designing your integration
Changelog
This changelog outlines all significant changes to the Brave Search Suggest API in chronological order.2023-05-01
- Initial launch of Brave Search Suggest API
- Add search suggestions endpoint