Versions in this module Expand all Collapse all v0 v0.2.2 May 2, 2026 Changes in this version type SearchResult + Kgmid string v0.2.1 May 2, 2026 v0.2.0 May 2, 2026 Changes in this version + type Coordinates struct + Lat float64 + Lng float64 type SearchResult + Address string + Coordinates *Coordinates + Hours string + Phone string + PlaceType string + Rating float64 + ReviewCount int type SearchType + const SearchTypePlaces v0.1.2 Apr 2, 2026 v0.1.1 Mar 28, 2026 v0.1.0 Mar 24, 2026 Changes in this version + const Version + type AiOverview struct + Markdown string + PageToken string + References []AiOverviewReference + TextBlocks []AiOverviewTextBlock + type AiOverviewReference struct + Date string + Index int + Snippet string + Source string + Thumbnail string + Title string + URL string + type AiOverviewTable struct + Headers []string + Rows [][]string + type AiOverviewTextBlock struct + Answer string + AnswerHighlight string + Code string + Items []AiOverviewTextBlock + Language string + Link string + ReferenceIndexes []int + RelatedSearches []RelatedSearch + Table *AiOverviewTable + Type string + Video *AiOverviewVideo + type AiOverviewVideo struct + Channel string + Duration string + Link string + Source string + Title string + type AnswerBox struct + Snippet string + Title string + URL string + type AnySerp struct + func New(config *Config) *AnySerp + func (a *AnySerp) GetRegistry() *Registry + func (a *AnySerp) Providers() []string + func (a *AnySerp) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *AnySerp) SearchWithFallback(ctx context.Context, request SearchRequest, providers []string) (*SearchResponse, error) + type AnySerpError struct + Code int + Message string + Metadata map[string]interface{} + func NewAnySerpError(code int, message string, metadata map[string]interface{}) *AnySerpError + func (e *AnySerpError) Error() string + type BingAdapter struct + func NewBingAdapter(apiKey string, client *http.Client) *BingAdapter + func (a *BingAdapter) Name() string + func (a *BingAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *BingAdapter) SupportsType(_ SearchType) bool + type BraveAdapter struct + func NewBraveAdapter(apiKey string, client *http.Client) *BraveAdapter + func (a *BraveAdapter) Name() string + func (a *BraveAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *BraveAdapter) SupportsType(_ SearchType) bool + type BrightDataAdapter struct + func NewBrightDataAdapter(apiKey string, client *http.Client) *BrightDataAdapter + func (a *BrightDataAdapter) Name() string + func (a *BrightDataAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *BrightDataAdapter) SupportsType(_ SearchType) bool + type Config struct + Aliases map[string]string + Bing *ProviderConfig + Brave *ProviderConfig + BrightData *ProviderConfig + DataForSEO *DataForSeoConfig + Defaults *SearchDefaults + Google *ProviderConfig + ScrapingDog *ProviderConfig + SearchAPI *ProviderConfig + SearchCans *ProviderConfig + SerpAPI *ProviderConfig + Serper *ProviderConfig + ValueSERP *ProviderConfig + type DataForSeoAdapter struct + func NewDataForSeoAdapter(login, password string, client *http.Client) *DataForSeoAdapter + func (a *DataForSeoAdapter) Name() string + func (a *DataForSeoAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *DataForSeoAdapter) SupportsType(t SearchType) bool + type DataForSeoConfig struct + Login string + Password string + type DateRange string + const DateRangeDay + const DateRangeMonth + const DateRangeWeek + const DateRangeYear + type GoogleAdapter struct + func NewGoogleAdapter(apiKey, engineID string, client *http.Client) *GoogleAdapter + func (a *GoogleAdapter) Name() string + func (a *GoogleAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *GoogleAdapter) SupportsType(t SearchType) bool + type KnowledgePanel struct + Attributes map[string]string + Description string + ImageURL string + Source string + SourceURL string + Title string + Type string + type PeopleAlsoAsk struct + Question string + Snippet string + Title string + URL string + type ProviderConfig struct + APIKey string + EngineID string + type Registry struct + func NewRegistry() *Registry + func (r *Registry) All() []SearchAdapter + func (r *Registry) Get(name string) SearchAdapter + func (r *Registry) Names() []string + func (r *Registry) Register(name string, adapter SearchAdapter) + type RelatedSearch struct + Link string + Query string + type ScrapingDogAdapter struct + func NewScrapingDogAdapter(apiKey string, client *http.Client) *ScrapingDogAdapter + func (a *ScrapingDogAdapter) Name() string + func (a *ScrapingDogAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *ScrapingDogAdapter) SupportsType(t SearchType) bool + type SearchAPIAdapter struct + func NewSearchAPIAdapter(apiKey string, client *http.Client) *SearchAPIAdapter + func (a *SearchAPIAdapter) Name() string + func (a *SearchAPIAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *SearchAPIAdapter) SupportsType(_ SearchType) bool + type SearchAdapter interface + Name func() string + Search func(ctx context.Context, request SearchRequest) (*SearchResponse, error) + SupportsType func(searchType SearchType) bool + type SearchCansAdapter struct + func NewSearchCansAdapter(apiKey string, client *http.Client) *SearchCansAdapter + func (a *SearchCansAdapter) Name() string + func (a *SearchCansAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *SearchCansAdapter) SupportsType(t SearchType) bool + type SearchDefaults struct + Country string + Language string + Num int + Safe bool + type SearchRequest struct + Country string + DateRange DateRange + IncludeAiOverview bool + Language string + Num int + Page int + Query string + Safe bool + Type SearchType + type SearchResponse struct + AiOverview *AiOverview + AnswerBox *AnswerBox + KnowledgePanel *KnowledgePanel + PeopleAlsoAsk []PeopleAlsoAsk + Provider string + Query string + RelatedSearches []string + Results []SearchResult + SearchTime float64 + TotalResults int + type SearchResult struct + Channel string + DatePublished string + Description string + Domain string + Duration string + ImageHeight int + ImageURL string + ImageWidth int + Position int + Source string + Thumbnail string + Title string + URL string + type SearchType string + const SearchTypeImages + const SearchTypeNews + const SearchTypeVideos + const SearchTypeWeb + type SerpAPIAdapter struct + func NewSerpAPIAdapter(apiKey string, client *http.Client) *SerpAPIAdapter + func (a *SerpAPIAdapter) Name() string + func (a *SerpAPIAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *SerpAPIAdapter) SupportsType(_ SearchType) bool + type SerperAdapter struct + func NewSerperAdapter(apiKey string, client *http.Client) *SerperAdapter + func (a *SerperAdapter) Name() string + func (a *SerperAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *SerperAdapter) SupportsType(_ SearchType) bool + type ValueSerpAdapter struct + func NewValueSerpAdapter(apiKey string, client *http.Client) *ValueSerpAdapter + func (a *ValueSerpAdapter) Name() string + func (a *ValueSerpAdapter) Search(ctx context.Context, request SearchRequest) (*SearchResponse, error) + func (a *ValueSerpAdapter) SupportsType(_ SearchType) bool