Versions in this module Expand all Collapse all v1 v1.0.0 Mar 5, 2026 Changes in this version + const DefaultBaseURL + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + func (e *APIError) IsBadRequest() bool + func (e *APIError) IsPayGoLimitExceeded() bool + func (e *APIError) IsPlanLimitExceeded() bool + func (e *APIError) IsRateLimit() bool + func (e *APIError) IsUnauthorized() bool + type Client struct + func New(apiKey string, opts ...Option) *Client + func (c *Client) Extract(ctx context.Context, params *ExtractParams) (*ExtractResponse, error) + func (c *Client) Search(ctx context.Context, params *SearchParams) (*SearchResponse, error) + type ExtractDepth string + const ExtractDepthAdvanced + const ExtractDepthBasic + type ExtractFailedResult struct + Error string + URL string + type ExtractParams struct + ChunksPerSource uint64 + ExtractDepth ExtractDepth + Format Format + IncludeFavicon *bool + IncludeImages *bool + IncludeUsage *bool + Query string + Timeout float64 + URLs []string + type ExtractResponse struct + FailedResults []ExtractFailedResult + RequestID string + ResponseTime float64 + Results []ExtractResult + Usage *Usage + type ExtractResult struct + Favicon string + Images []string + RawContent string + URL string + type Format string + const FormatMarkdown + const FormatText + type IncludeAnswer string + const IncludeAnswerAdvanced + const IncludeAnswerBasic + type IncludeRawContent string + const IncludeRawContentMarkdown + const IncludeRawContentText + type Option func(*Client) + func WithBaseURL(url string) Option + func WithHTTPClient(client *http.Client) Option + type SearchDepth string + const SearchDepthAdvanced + const SearchDepthBasic + const SearchDepthFast + const SearchDepthUltraFast + type SearchParams struct + AutoParameters *bool + ChunksPerSource uint64 + Country string + EndDate string + ExactMatch *bool + ExcludeDomains []string + IncludeAnswer *IncludeAnswer + IncludeDomains []string + IncludeFavicon *bool + IncludeRawContent *IncludeRawContent + IncludeUsage *bool + MaxResults uint64 + Query string + SearchDepth SearchDepth + StartDate string + TimeRange TimeRange + Topic Topic + type SearchResponse struct + Answer string + Query string + RequestID string + ResponseTime float64 + Results []SearchResult + Usage *Usage + type SearchResult struct + Content string + Favicon string + PublishedDate string + RawContent string + Score float64 + Title string + URL string + type TimeRange string + const TimeRangeDay + const TimeRangeMonth + const TimeRangeWeek + const TimeRangeYear + type Topic string + const TopicFinance + const TopicGeneral + const TopicNews + type Usage struct + Credits uint64