Web
Web Search
Learn how to use JigsawStack’s Web Search API to access high-quality search results with built-in geo search capabilities
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
Search Parameters
Parameter | Type | Description |
---|---|---|
query | string | The search query (1-400 characters) |
spell_check | boolean | Enable or disable spell check (default: true) |
safe_search | string | Safe search level: “strict”, “moderate”, or “off” (default: “moderate”) |
ai_overview | boolean | Include AI-generated overview of results (default: true) |
byo_urls | array | Optional array of up to 3 URLs to include in search results |
country_code | string | ISO-3 country code to localize search results |
auto_scrape | boolean | Automatically scrape and extract content from results (default: true) |
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 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