Overview
The Web Search API provides access to high-quality search results with built-in AI overviews, comprehensive metadata, and geo-spatial search capabilities. This API makes it easy to integrate powerful search functionality into your applications while also providing location-based context for search queries.- Get comprehensive search results with rich metadata
- AI-generated overviews for quick content digestion
- Built-in geo search capabilities for location-aware applications
- Safe search filtering options
- Customizable search parameters
API Endpoint
Quick Start
Javascript
Response
Working with Geo Results
The API automatically includes geolocation data when relevant to your search query. Thegeo_results
array contains location information with the following structure:
type
: Type of location (place, street, etc.)name
: Name of the locationplace_formatted
: Formatted place namecountry
: Country informationgeoloc
: GeoJSON object with coordinates- Additional fields depending on the location type
Examples
Basic Search
Location-Based Search
Custom URL Inclusion
Tips for Effective Searches
- Be specific: More detailed queries yield more precise results
- Use location context: For geo-aware searches, include location names in your query
- Leverage AI overviews: Enable
ai_overview
to get concise summaries of search results - Filter appropriately: Use
safe_search
levels based on your application needs - Consider rate limits: Be mindful of your API usage limits, especially for high-volume applications
Find more information on Web Search API here