Skip to main content

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. The geo_results array contains location information with the following structure:
  • type: Type of location (place, street, etc.)
  • name: Name of the location
  • place_formatted: Formatted place name
  • country: Country information
  • geoloc: GeoJSON object with coordinates
  • Additional fields depending on the location type

Examples

Custom URL Inclusion

Tips for Effective Searches

  1. Be specific: More detailed queries yield more precise results
  2. Use location context: For geo-aware searches, include location names in your query
  3. Leverage AI overviews: Enable ai_overview to get concise summaries of search results
  4. Filter appropriately: Use safe_search levels based on your application needs
  5. Consider rate limits: Be mindful of your API usage limits, especially for high-volume applications
Find more information on Web Search API here