Versions in this module Expand all Collapse all v1 v1.0.1 May 5, 2025 v1.0.0 May 3, 2025 Changes in this version + func Bool(b bool) param.Opt[bool] + func BoolPtr(v bool) *bool + func DefaultClientOptions() []option.RequestOption + func File(rdr io.Reader, filename string, contentType string) file + func Float(f float64) param.Opt[float64] + func FloatPtr(v float64) *float64 + func Int(i int64) param.Opt[int64] + func IntPtr(v int64) *int64 + func Opt[T comparable](v T) param.Opt[T] + func Ptr[T any](v T) *T + func String(s string) param.Opt[string] + func StringPtr(v string) *string + func Time(t time.Time) param.Opt[time.Time] + func TimePtr(v time.Time) *time.Time + type AllEndpointSortBy string + const AllEndpointSortByAddDate + const AllEndpointSortByDate + const AllEndpointSortByPubDate + const AllEndpointSortByRefreshDate + const AllEndpointSortByRelevance + const AllEndpointSortByReverseAddDate + const AllEndpointSortByReverseDate + type AllListParams struct + AddDateFrom param.Opt[time.Time] + AddDateTo param.Opt[time.Time] + Area []string + ArticleID []string + Author []string + Byline []string + Category []string + City []string + ClusterID []string + CompanyDomain []string + CompanyID []string + CompanyName param.Opt[string] + CompanySymbol []string + Content param.Opt[string] + Country []string + County []string + Desc param.Opt[string] + ExcludeAuthor []string + ExcludeCategory []string + ExcludeCity []string + ExcludeCompanyDomain []string + ExcludeCompanyID []string + ExcludeCompanySymbol []string + ExcludeCounty []string + ExcludeJournalistID []string + ExcludeLabel []string + ExcludeLanguage []string + ExcludeLocationsCountry []string + ExcludePersonName []string + ExcludePersonWikidataID []string + ExcludeSource []string + ExcludeSourceGroup []string + ExcludeState []string + ExcludeTopic []string + From param.Opt[time.Time] + JournalistID []string + Label []string + Language []string + Lat param.Opt[float64] + LinkTo param.Opt[string] + Location []string + LocationsCountry []string + Lon param.Opt[float64] + MaxDistance param.Opt[float64] + Medium []string + NegativeSentimentFrom param.Opt[float64] + NegativeSentimentTo param.Opt[float64] + NeutralSentimentFrom param.Opt[float64] + NeutralSentimentTo param.Opt[float64] + Page param.Opt[int64] + Paywall param.Opt[bool] + PersonName []string + PersonWikidataID []string + PositiveSentimentFrom param.Opt[float64] + PositiveSentimentTo param.Opt[float64] + PrefixTaxonomy param.Opt[string] + Q param.Opt[string] + RefreshDateFrom param.Opt[time.Time] + RefreshDateTo param.Opt[time.Time] + ReprintGroupID param.Opt[string] + SearchTranslation param.Opt[bool] + ShowNumResults param.Opt[bool] + ShowReprints param.Opt[bool] + Size param.Opt[int64] + SortBy AllEndpointSortBy + Source []string + SourceCity []string + SourceCountry []string + SourceCounty []string + SourceGroup []string + SourceLat param.Opt[float64] + SourceLon param.Opt[float64] + SourceMaxDistance param.Opt[float64] + SourceState []string + State []string + Taxonomy []string + Title param.Opt[string] + To param.Opt[time.Time] + Topic []string + URL param.Opt[string] + func (f AllListParams) IsPresent() bool + func (r AllListParams) URLQuery() (v url.Values, err error) + type AllListResponse struct + Articles []Article + JSON struct{ ... } + NumResults int64 + Status int64 + func (r *AllListResponse) UnmarshalJSON(data []byte) error + func (r AllListResponse) RawJSON() string + type AllService struct + Options []option.RequestOption + func NewAllService(opts ...option.RequestOption) (r AllService) + func (r *AllService) List(ctx context.Context, query AllListParams, opts ...option.RequestOption) (res *AllListResponse, err error) + type Article struct + AddDate string + ArticleID string + AuthorsByline string + Categories []ArticleCategory + Claim string + Cluster NewsCluster + ClusterID string + Companies []ArticleCompany + Content string + Country string + Description string + Entities []ArticleEntity + EventTypes []ArticleEventType + Highlights map[string][]string + ImageURL string + JSON struct{ ... } + Journalists []Journalist + Keywords []ArticleKeyword + Labels []ArticleLabel + Language string + Links []string + Locations []ArticleLocation + MatchedAuthors []ArticleMatchedAuthor + Medium string + People []ArticlePerson + Places []ArticlePlace + PubDate string + RefreshDate string + Reprint bool + ReprintGroupID string + Score float64 + Sentiment ArticleSentiment + ShortSummary string + Source ArticleSource + Summary string + Taxonomies []ArticleTaxonomy + Title string + Topics []ArticleTopic + TranslatedDescription string + TranslatedSummary string + TranslatedTitle string + Translation string + URL string + Verdict string + func (r *Article) UnmarshalJSON(data []byte) error + func (r Article) RawJSON() string + type ArticleCategory struct + JSON struct{ ... } + Name string + func (r *ArticleCategory) UnmarshalJSON(data []byte) error + func (r ArticleCategory) RawJSON() string + type ArticleCompany struct + Domains []string + ID string + JSON struct{ ... } + Name string + Symbols []string + func (r *ArticleCompany) UnmarshalJSON(data []byte) error + func (r ArticleCompany) RawJSON() string + type ArticleEntity struct + Data string + JSON struct{ ... } + Mentions int64 + Type string + func (r *ArticleEntity) UnmarshalJSON(data []byte) error + func (r ArticleEntity) RawJSON() string + type ArticleEventType struct + JSON struct{ ... } + Name string + Type string + func (r *ArticleEventType) UnmarshalJSON(data []byte) error + func (r ArticleEventType) RawJSON() string + type ArticleKeyword struct + JSON struct{ ... } + Name string + Weight float64 + func (r *ArticleKeyword) UnmarshalJSON(data []byte) error + func (r ArticleKeyword) RawJSON() string + type ArticleLabel struct + JSON struct{ ... } + Name string + func (r *ArticleLabel) UnmarshalJSON(data []byte) error + func (r ArticleLabel) RawJSON() string + type ArticleLocation struct + Area string + City string + Country string + County string + JSON struct{ ... } + State string + func (r *ArticleLocation) UnmarshalJSON(data []byte) error + func (r ArticleLocation) RawJSON() string + type ArticleMatchedAuthor struct + ID string + JSON struct{ ... } + Name string + func (r *ArticleMatchedAuthor) UnmarshalJSON(data []byte) error + func (r ArticleMatchedAuthor) RawJSON() string + type ArticlePerson struct + JSON struct{ ... } + Name string + WikidataID string + func (r *ArticlePerson) UnmarshalJSON(data []byte) error + func (r ArticlePerson) RawJSON() string + type ArticlePlace struct + Amenity string + City string + Coordinates ArticlePlaceCoordinates + Country string + CountryCode string + County string + JSON struct{ ... } + Neighbourhood string + OsmID string + Postcode string + Quarter string + Road string + State string + StateDistrict string + Suburb string + Town string + func (r *ArticlePlace) UnmarshalJSON(data []byte) error + func (r ArticlePlace) RawJSON() string + type ArticlePlaceCoordinates struct + JSON struct{ ... } + Lat float64 + Lon float64 + func (r *ArticlePlaceCoordinates) UnmarshalJSON(data []byte) error + func (r ArticlePlaceCoordinates) RawJSON() string + type ArticleSearchFilterCoordinatesParam struct + Lat param.Opt[float64] + Lon param.Opt[float64] + Radius param.Opt[float64] + func (f ArticleSearchFilterCoordinatesParam) IsPresent() bool + func (r ArticleSearchFilterCoordinatesParam) MarshalJSON() (data []byte, err error) + type ArticleSearchFilterParam struct + And []ArticleSearchFilterParam + ArticleID []string + Category []string + City []string + ClusterID []string + CompanyDomain []string + CompanyID []string + CompanyName []string + CompanySymbol []string + Coordinates ArticleSearchFilterCoordinatesParam + Country []string + County []string + ExcludeCity []string + ExcludeCompanyDomain []string + ExcludeCompanyID []string + ExcludeCompanySymbol []string + ExcludeCountry []string + ExcludeCounty []string + ExcludeLabel []string + ExcludeLanguage []string + ExcludeLocationsCountry []string + ExcludePersonName []string + ExcludePersonWikidataID []string + ExcludeSource []string + ExcludeState []string + ExcludeTopic []string + Label []string + Language []string + LocationsCountry []string + Not []ArticleSearchFilterParam + Or []ArticleSearchFilterParam + PersonName []string + PersonWikidataID []string + Source []string + SourceCity []string + SourceCoordinates ArticleSearchFilterSourceCoordinatesParam + SourceCountry []string + SourceCounty []string + SourceGroup []string + SourceState []string + State []string + Taxonomy []string + Topic []string + func (f ArticleSearchFilterParam) IsPresent() bool + func (r ArticleSearchFilterParam) MarshalJSON() (data []byte, err error) + type ArticleSearchFilterSourceCoordinatesParam struct + Lat param.Opt[float64] + Lon param.Opt[float64] + Radius param.Opt[float64] + func (f ArticleSearchFilterSourceCoordinatesParam) IsPresent() bool + func (r ArticleSearchFilterSourceCoordinatesParam) MarshalJSON() (data []byte, err error) + type ArticleSentiment struct + JSON struct{ ... } + Negative float64 + Neutral float64 + Positive float64 + func (r *ArticleSentiment) UnmarshalJSON(data []byte) error + func (r ArticleSentiment) RawJSON() string + type ArticleSource struct + Domain string + JSON struct{ ... } + Location ArticleSourceLocation + Paywall bool + func (r *ArticleSource) UnmarshalJSON(data []byte) error + func (r ArticleSource) RawJSON() string + type ArticleSourceLocation struct + City string + Coordinates ArticleSourceLocationCoordinates + Country string + County string + JSON struct{ ... } + State string + func (r *ArticleSourceLocation) UnmarshalJSON(data []byte) error + func (r ArticleSourceLocation) RawJSON() string + type ArticleSourceLocationCoordinates struct + JSON struct{ ... } + Lat float64 + Lon float64 + func (r *ArticleSourceLocationCoordinates) UnmarshalJSON(data []byte) error + func (r ArticleSourceLocationCoordinates) RawJSON() string + type ArticleTaxonomy struct + JSON struct{ ... } + Name string + Score float64 + func (r *ArticleTaxonomy) UnmarshalJSON(data []byte) error + func (r ArticleTaxonomy) RawJSON() string + type ArticleTopic struct + JSON struct{ ... } + Name string + func (r *ArticleTopic) UnmarshalJSON(data []byte) error + func (r ArticleTopic) RawJSON() string + type Client struct + All AllService + Companies CompanyService + Journalists JournalistService + Options []option.RequestOption + People PersonService + Sources SourceService + Stories StoryService + Summarize SummarizeService + Topics TopicService + Vector VectorService + func NewClient(opts ...option.RequestOption) (r Client) + func (r *Client) Delete(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error + func (r *Client) Get(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Patch(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Post(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Put(ctx context.Context, path string, params any, res any, ...) error + type CompanyListParams struct + Country []string + Domain []string + Exchange []string + ID []string + Industry param.Opt[string] + IpoFrom param.Opt[time.Time] + IpoTo param.Opt[time.Time] + Name param.Opt[string] + NumEmployeesFrom param.Opt[int64] + NumEmployeesTo param.Opt[int64] + Page param.Opt[int64] + Q param.Opt[string] + Sector param.Opt[string] + Size param.Opt[int64] + Symbol []string + func (f CompanyListParams) IsPresent() bool + func (r CompanyListParams) URLQuery() (v url.Values, err error) + type CompanyListResponse struct + JSON struct{ ... } + NumResults int64 + Results []CompanyListResponseResult + Status int64 + func (r *CompanyListResponse) UnmarshalJSON(data []byte) error + func (r CompanyListResponse) RawJSON() string + type CompanyListResponseResult struct + Address string + AltNames []string + Ceo string + City string + Country string + Description string + Domains []string + Favicon string + FullTimeEmployees int64 + GlobalRank int64 + ID string + Industry string + IsActivelyTrading bool + IsAdr bool + IsEtf bool + IsFund bool + JSON struct{ ... } + Logo string + MonthlyVisits int64 + Naics string + Name string + PrimaryRecordID string + Revenue string + Sector string + Sic string + State string + Symbols []CompanyListResponseResultSymbol + UpdatedAt string + WebResources CompanyListResponseResultWebResources + YearFounded int64 + Zip string + func (r *CompanyListResponseResult) UnmarshalJSON(data []byte) error + func (r CompanyListResponseResult) RawJSON() string + type CompanyListResponseResultSymbol struct + Exchange string + ExchangeShortName string + IpoDate string + JSON struct{ ... } + Symbol string + func (r *CompanyListResponseResultSymbol) UnmarshalJSON(data []byte) error + func (r CompanyListResponseResultSymbol) RawJSON() string + type CompanyListResponseResultWebResources struct + About string + Blog string + Careers string + Events string + Facebook string + Instagram string + JSON struct{ ... } + Linkedin string + Medium string + Reddit string + Sitemap string + Threads string + Tiktok string + Updates string + Wellfound string + Wikipedia string + X string + Youtube string + func (r *CompanyListResponseResultWebResources) UnmarshalJSON(data []byte) error + func (r CompanyListResponseResultWebResources) RawJSON() string + type CompanyService struct + Options []option.RequestOption + func NewCompanyService(opts ...option.RequestOption) (r CompanyService) + func (r *CompanyService) List(ctx context.Context, query CompanyListParams, opts ...option.RequestOption) (res *CompanyListResponse, err error) + type Error = apierror.Error + type ImageHolder struct + JSON struct{ ... } + URL string + func (r *ImageHolder) UnmarshalJSON(data []byte) error + func (r ImageHolder) RawJSON() string + type Journalist struct + AvgMonthlyPosts int64 + BlogURL string + Description string + FacebookURL string + FullName string + Headline string + ID string + ImageURL string + InstagramURL string + JSON struct{ ... } + LinkedinConnections int64 + LinkedinFollowers int64 + LinkedinURL string + Locations []JournalistLocation + Name string + Title string + TopCategories []NameCount + TopCountries []NameCount + TopLabels []NameCount + TopSources []NameCount + TopTopics []NameCount + TumblrURL string + TwitterBio string + TwitterHandle string + UpdatedAt string + WebsiteURL string + YoutubeURL string + func (r *Journalist) UnmarshalJSON(data []byte) error + func (r Journalist) RawJSON() string + type JournalistListParams struct + Category []string + Country []string + ID []string + Label []string + MaxMonthlyPosts param.Opt[int64] + MinMonthlyPosts param.Opt[int64] + Name param.Opt[string] + Page param.Opt[int64] + Q param.Opt[string] + ShowNumResults param.Opt[bool] + Size param.Opt[int64] + Source []string + Topic []string + Twitter param.Opt[string] + UpdatedAtFrom param.Opt[time.Time] + UpdatedAtTo param.Opt[time.Time] + func (f JournalistListParams) IsPresent() bool + func (r JournalistListParams) URLQuery() (v url.Values, err error) + type JournalistListResponse struct + JSON struct{ ... } + NumResults int64 + Results []Journalist + Status int64 + func (r *JournalistListResponse) UnmarshalJSON(data []byte) error + func (r JournalistListResponse) RawJSON() string + type JournalistLocation struct + Area string + City string + Country string + County string + JSON struct{ ... } + State string + func (r *JournalistLocation) UnmarshalJSON(data []byte) error + func (r JournalistLocation) RawJSON() string + type JournalistService struct + Options []option.RequestOption + func NewJournalistService(opts ...option.RequestOption) (r JournalistService) + func (r *JournalistService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Journalist, err error) + func (r *JournalistService) List(ctx context.Context, query JournalistListParams, opts ...option.RequestOption) (res *JournalistListResponse, err error) + type NameCount struct + Count int64 + JSON struct{ ... } + Name string + func (r *NameCount) UnmarshalJSON(data []byte) error + func (r NameCount) RawJSON() string + type NewsCluster struct + Categories []NewsClusterCategory + Companies []NewsClusterCompany + Countries []NewsClusterCountry + CreatedAt string + DuplicateOf string + Highlights map[string][]string + ID string + ImageSource NewsClusterImageSource + ImageURL string + InitializedAt string + JSON struct{ ... } + KeyPoints []NewsClusterKeyPoint + Locations []NewsClusterLocation + Name string + People []NewsClusterPerson + Questions []NewsClusterQuestion + ReprintCount int64 + SelectedArticles []Article + Sentiment NewsClusterSentiment + ShortSummary string + Slug string + Summary string + SummaryReferences []string + Taxonomies []NewsClusterTaxonomy + TopCategories []NewsClusterTopCategory + TopCompanies []NewsClusterTopCompany + TopCountries []string + TopLocations []NewsClusterTopLocation + TopPeople []NewsClusterTopPerson + TopTaxonomies []NewsClusterTopTaxonomy + TopTopics []NewsClusterTopTopic + Topics []NewsClusterTopic + TotalCount int64 + UniqueCount int64 + UniqueSources []string + UpdatedAt string + func (r *NewsCluster) UnmarshalJSON(data []byte) error + func (r NewsCluster) RawJSON() string + type NewsClusterCategory struct + Count int64 + JSON struct{ ... } + Name string + func (r *NewsClusterCategory) UnmarshalJSON(data []byte) error + func (r NewsClusterCategory) RawJSON() string + type NewsClusterCompany struct + Count int64 + Domains []string + ID string + JSON struct{ ... } + Name string + Symbols []string + func (r *NewsClusterCompany) UnmarshalJSON(data []byte) error + func (r NewsClusterCompany) RawJSON() string + type NewsClusterCountry struct + Count int64 + JSON struct{ ... } + Name string + func (r *NewsClusterCountry) UnmarshalJSON(data []byte) error + func (r NewsClusterCountry) RawJSON() string + type NewsClusterImageSource struct + Domain string + JSON struct{ ... } + Location NewsClusterImageSourceLocation + Paywall bool + func (r *NewsClusterImageSource) UnmarshalJSON(data []byte) error + func (r NewsClusterImageSource) RawJSON() string + type NewsClusterImageSourceLocation struct + City string + Coordinates NewsClusterImageSourceLocationCoordinates + Country string + County string + JSON struct{ ... } + State string + func (r *NewsClusterImageSourceLocation) UnmarshalJSON(data []byte) error + func (r NewsClusterImageSourceLocation) RawJSON() string + type NewsClusterImageSourceLocationCoordinates struct + JSON struct{ ... } + Lat float64 + Lon float64 + func (r *NewsClusterImageSourceLocationCoordinates) UnmarshalJSON(data []byte) error + func (r NewsClusterImageSourceLocationCoordinates) RawJSON() string + type NewsClusterKeyPoint struct + JSON struct{ ... } + Point string + References []string + func (r *NewsClusterKeyPoint) UnmarshalJSON(data []byte) error + func (r NewsClusterKeyPoint) RawJSON() string + type NewsClusterLocation struct + Area string + City string + Count int64 + County string + JSON struct{ ... } + State string + func (r *NewsClusterLocation) UnmarshalJSON(data []byte) error + func (r NewsClusterLocation) RawJSON() string + type NewsClusterPerson struct + Count int64 + JSON struct{ ... } + Name string + WikidataID string + func (r *NewsClusterPerson) UnmarshalJSON(data []byte) error + func (r NewsClusterPerson) RawJSON() string + type NewsClusterQuestion struct + Answer string + JSON struct{ ... } + Question string + References []string + func (r *NewsClusterQuestion) UnmarshalJSON(data []byte) error + func (r NewsClusterQuestion) RawJSON() string + type NewsClusterSentiment struct + JSON struct{ ... } + Negative float64 + Neutral float64 + Positive float64 + func (r *NewsClusterSentiment) UnmarshalJSON(data []byte) error + func (r NewsClusterSentiment) RawJSON() string + type NewsClusterTaxonomy struct + Count int64 + JSON struct{ ... } + Name string + func (r *NewsClusterTaxonomy) UnmarshalJSON(data []byte) error + func (r NewsClusterTaxonomy) RawJSON() string + type NewsClusterTopCategory struct + JSON struct{ ... } + Name string + func (r *NewsClusterTopCategory) UnmarshalJSON(data []byte) error + func (r NewsClusterTopCategory) RawJSON() string + type NewsClusterTopCompany struct + Domains []string + ID string + JSON struct{ ... } + Name string + Symbols []string + func (r *NewsClusterTopCompany) UnmarshalJSON(data []byte) error + func (r NewsClusterTopCompany) RawJSON() string + type NewsClusterTopLocation struct + Area string + City string + Country string + County string + JSON struct{ ... } + State string + func (r *NewsClusterTopLocation) UnmarshalJSON(data []byte) error + func (r NewsClusterTopLocation) RawJSON() string + type NewsClusterTopPerson struct + JSON struct{ ... } + Name string + WikidataID string + func (r *NewsClusterTopPerson) UnmarshalJSON(data []byte) error + func (r NewsClusterTopPerson) RawJSON() string + type NewsClusterTopTaxonomy struct + JSON struct{ ... } + Name string + func (r *NewsClusterTopTaxonomy) UnmarshalJSON(data []byte) error + func (r NewsClusterTopTaxonomy) RawJSON() string + type NewsClusterTopTopic struct + JSON struct{ ... } + Name string + func (r *NewsClusterTopTopic) UnmarshalJSON(data []byte) error + func (r NewsClusterTopTopic) RawJSON() string + type NewsClusterTopic struct + Count int64 + JSON struct{ ... } + Name string + func (r *NewsClusterTopic) UnmarshalJSON(data []byte) error + func (r NewsClusterTopic) RawJSON() string + type PersonListParams struct + Name param.Opt[string] + OccupationID []string + OccupationLabel param.Opt[string] + Page param.Opt[int64] + Size param.Opt[int64] + WikidataID []string + func (f PersonListParams) IsPresent() bool + func (r PersonListParams) URLQuery() (v url.Values, err error) + type PersonListResponse struct + JSON struct{ ... } + NumResults int64 + Results []PersonListResponseResult + Status int64 + func (r *PersonListResponse) UnmarshalJSON(data []byte) error + func (r PersonListResponse) RawJSON() string + type PersonListResponseResult struct + Abstract string + Aliases []string + CreatedAt string + DateOfBirth WikidataDateHolder + DateOfDeath WikidataDateHolder + Description string + Gender WikidataLabelHolder + Image ImageHolder + JSON struct{ ... } + Name string + Occupation []WikidataLabelHolder + PoliticalParty []PersonListResponseResultPoliticalParty + Position []PersonListResponseResultPosition + UpdatedAt string + WikidataID string + func (r *PersonListResponseResult) UnmarshalJSON(data []byte) error + func (r PersonListResponseResult) RawJSON() string + type PersonListResponseResultPoliticalParty struct + EndTime WikidataDateHolder + JSON struct{ ... } + Label string + StartTime WikidataDateHolder + WikidataID string + func (r *PersonListResponseResultPoliticalParty) UnmarshalJSON(data []byte) error + func (r PersonListResponseResultPoliticalParty) RawJSON() string + type PersonListResponseResultPosition struct + Employer WikidataLabelHolder + EndTime WikidataDateHolder + JSON struct{ ... } + Label string + StartTime WikidataDateHolder + WikidataID string + func (r *PersonListResponseResultPosition) UnmarshalJSON(data []byte) error + func (r PersonListResponseResultPosition) RawJSON() string + type PersonService struct + Options []option.RequestOption + func NewPersonService(opts ...option.RequestOption) (r PersonService) + func (r *PersonService) List(ctx context.Context, query PersonListParams, opts ...option.RequestOption) (res *PersonListResponse, err error) + type SortBy string + const SortByCount + const SortByCreatedAt + const SortByRelevance + const SortByTotalCount + const SortByUpdatedAt + type SourceListParams struct + Category []string + Country []string + Domain []string + Label []string + MaxMonthlyPosts param.Opt[int64] + MaxMonthlyVisits param.Opt[int64] + MinMonthlyPosts param.Opt[int64] + MinMonthlyVisits param.Opt[int64] + Name param.Opt[string] + Page param.Opt[int64] + Paywall param.Opt[bool] + ShowNumResults param.Opt[bool] + ShowSubdomains param.Opt[bool] + Size param.Opt[int64] + SortBy SortBy + SourceCity []string + SourceCountry []string + SourceCounty []string + SourceGroup param.Opt[string] + SourceLat param.Opt[float64] + SourceLon param.Opt[float64] + SourceMaxDistance param.Opt[float64] + SourceState []string + Topic []string + func (f SourceListParams) IsPresent() bool + func (r SourceListParams) URLQuery() (v url.Values, err error) + type SourceListResponse struct + JSON struct{ ... } + NumResults int64 + Results []SourceListResponseResult + Status int64 + func (r *SourceListResponse) UnmarshalJSON(data []byte) error + func (r SourceListResponse) RawJSON() string + type SourceListResponseResult struct + AdFontesBiasRating string + AllSidesBiasRating string + AltNames []string + AvgBiasRating string + AvgMonthlyPosts int64 + Description string + Domain string + GlobalRank int64 + ID string + JSON struct{ ... } + Location SourceListResponseResultLocation + LogoFavIcon ImageHolder + LogoLarge ImageHolder + LogoSquare ImageHolder + MbfcBiasRating string + MonthlyVisits int64 + Name string + Paywall bool + PrimaryRecordID string + TopCategories []SourceTopStatHolder + TopCountries []SourceTopStatHolder + TopLabels []SourceTopStatHolder + TopTopics []SourceTopStatHolder + UpdatedAt string + func (r *SourceListResponseResult) UnmarshalJSON(data []byte) error + func (r SourceListResponseResult) RawJSON() string + type SourceListResponseResultLocation struct + City string + Coordinates SourceListResponseResultLocationCoordinates + Country string + County string + JSON struct{ ... } + State string + func (r *SourceListResponseResultLocation) UnmarshalJSON(data []byte) error + func (r SourceListResponseResultLocation) RawJSON() string + type SourceListResponseResultLocationCoordinates struct + JSON struct{ ... } + Lat float64 + Lon float64 + func (r *SourceListResponseResultLocationCoordinates) UnmarshalJSON(data []byte) error + func (r SourceListResponseResultLocationCoordinates) RawJSON() string + type SourceService struct + Options []option.RequestOption + func NewSourceService(opts ...option.RequestOption) (r SourceService) + func (r *SourceService) List(ctx context.Context, query SourceListParams, opts ...option.RequestOption) (res *SourceListResponse, err error) + type SourceTopStatHolder struct + Count int64 + JSON struct{ ... } + Name string + func (r *SourceTopStatHolder) UnmarshalJSON(data []byte) error + func (r SourceTopStatHolder) RawJSON() string + type StoryListParams struct + Area []string + Category []string + City []string + ClusterID []string + CompanyDomain []string + CompanyID []string + CompanyName param.Opt[string] + CompanySymbol []string + Country []string + ExcludeClusterID []string + From param.Opt[time.Time] + InitializedFrom param.Opt[time.Time] + InitializedTo param.Opt[time.Time] + MaxClusterSize param.Opt[int64] + MinClusterSize param.Opt[int64] + MinUniqueSources param.Opt[int64] + Name param.Opt[string] + NameExists param.Opt[bool] + NegativeSentimentFrom param.Opt[float64] + NegativeSentimentTo param.Opt[float64] + NeutralSentimentFrom param.Opt[float64] + NeutralSentimentTo param.Opt[float64] + Page param.Opt[int64] + PersonName param.Opt[string] + PersonWikidataID []string + PositiveSentimentFrom param.Opt[float64] + PositiveSentimentTo param.Opt[float64] + Q param.Opt[string] + ShowDuplicates param.Opt[bool] + ShowNumResults param.Opt[bool] + ShowStoryPageInfo param.Opt[bool] + Size param.Opt[int64] + SortBy SortBy + Source []string + SourceGroup []string + State []string + Taxonomy []string + To param.Opt[time.Time] + Topic []string + UpdatedFrom param.Opt[time.Time] + UpdatedTo param.Opt[time.Time] + func (f StoryListParams) IsPresent() bool + func (r StoryListParams) URLQuery() (v url.Values, err error) + type StoryListResponse struct + JSON struct{ ... } + NumResults int64 + Results []NewsCluster + Status int64 + func (r *StoryListResponse) UnmarshalJSON(data []byte) error + func (r StoryListResponse) RawJSON() string + type StoryService struct + Options []option.RequestOption + func NewStoryService(opts ...option.RequestOption) (r StoryService) + func (r *StoryService) List(ctx context.Context, query StoryListParams, opts ...option.RequestOption) (res *StoryListResponse, err error) + type SummarizeNewParams struct + AddDateFrom param.Opt[time.Time] + AddDateTo param.Opt[time.Time] + Area []string + ArticleID []string + Author []string + Byline []string + Category []string + City []string + ClusterID []string + CompanyDomain []string + CompanyID []string + CompanyName param.Opt[string] + CompanySymbol []string + Content param.Opt[string] + Country []string + County []string + Desc param.Opt[string] + ExcludeAuthor []string + ExcludeCategory []string + ExcludeCity []string + ExcludeCompanyDomain []string + ExcludeCompanyID []string + ExcludeCompanySymbol []string + ExcludeCounty []string + ExcludeJournalistID []string + ExcludeLabel []string + ExcludeLanguage []string + ExcludeLocationsCountry []string + ExcludePersonName []string + ExcludePersonWikidataID []string + ExcludeSource []string + ExcludeSourceGroup []string + ExcludeState []string + ExcludeTopic []string + From param.Opt[time.Time] + JournalistID []string + Label []string + Language []string + Lat param.Opt[float64] + LinkTo param.Opt[string] + Location []string + LocationsCountry []string + Lon param.Opt[float64] + MaxArticleCount param.Opt[int64] + MaxDistance param.Opt[float64] + MaxTokens param.Opt[int64] + Medium []string + Method SummarizeNewParamsMethod + Model SummarizeNewParamsModel + NegativeSentimentFrom param.Opt[float64] + NegativeSentimentTo param.Opt[float64] + NeutralSentimentFrom param.Opt[float64] + NeutralSentimentTo param.Opt[float64] + Page param.Opt[int64] + Paywall param.Opt[bool] + PersonName []string + PersonWikidataID []string + PositiveSentimentFrom param.Opt[float64] + PositiveSentimentTo param.Opt[float64] + PrefixTaxonomy param.Opt[string] + Prompt param.Opt[string] + Q param.Opt[string] + RefreshDateFrom param.Opt[time.Time] + RefreshDateTo param.Opt[time.Time] + ReprintGroupID param.Opt[string] + ReturnedArticleCount param.Opt[int64] + SearchTranslation param.Opt[bool] + ShowNumResults param.Opt[bool] + ShowReprints param.Opt[bool] + Size param.Opt[int64] + SortBy AllEndpointSortBy + Source []string + SourceCity []string + SourceCountry []string + SourceCounty []string + SourceGroup []string + SourceLat param.Opt[float64] + SourceLon param.Opt[float64] + SourceMaxDistance param.Opt[float64] + SourceState []string + State []string + SummarizeFields SummarizeNewParamsSummarizeFields + Taxonomy []string + Temperature param.Opt[float64] + Title param.Opt[string] + To param.Opt[time.Time] + TopP param.Opt[float64] + Topic []string + URL param.Opt[string] + func (f SummarizeNewParams) IsPresent() bool + func (r SummarizeNewParams) MarshalJSON() (data []byte, err error) + func (r SummarizeNewParams) URLQuery() (v url.Values, err error) + type SummarizeNewParamsMethod string + const SummarizeNewParamsMethodArticles + const SummarizeNewParamsMethodClusters + type SummarizeNewParamsModel string + const SummarizeNewParamsModelDeepseekR1DistillLlama70b + const SummarizeNewParamsModelGpt4_1 + const SummarizeNewParamsModelGpt4_1Mini + const SummarizeNewParamsModelGpt4_1Nano + const SummarizeNewParamsModelGpt4o + const SummarizeNewParamsModelGpt4oMini + const SummarizeNewParamsModelLlama3_3_70bVersatile + type SummarizeNewParamsSummarizeFields string + const SummarizeNewParamsSummarizeFieldsContent + const SummarizeNewParamsSummarizeFieldsSummary + const SummarizeNewParamsSummarizeFieldsTitle + type SummarizeNewResponse struct + JSON struct{ ... } + NumResults int64 + Results []Article + Status int64 + Summary string + func (r *SummarizeNewResponse) UnmarshalJSON(data []byte) error + func (r SummarizeNewResponse) RawJSON() string + type SummarizeService struct + Options []option.RequestOption + func NewSummarizeService(opts ...option.RequestOption) (r SummarizeService) + func (r *SummarizeService) New(ctx context.Context, params SummarizeNewParams, opts ...option.RequestOption) (res *SummarizeNewResponse, err error) + type TopicListParams struct + Category param.Opt[string] + Name param.Opt[string] + Page param.Opt[int64] + Size param.Opt[int64] + Subcategory param.Opt[string] + func (f TopicListParams) IsPresent() bool + func (r TopicListParams) URLQuery() (v url.Values, err error) + type TopicListResponse struct + Data []TopicListResponseData + JSON struct{ ... } + Total int64 + func (r *TopicListResponse) UnmarshalJSON(data []byte) error + func (r TopicListResponse) RawJSON() string + type TopicListResponseData struct + CreatedAt time.Time + ID int64 + JSON struct{ ... } + Labels TopicListResponseDataLabels + Name string + UpdatedAt time.Time + func (r *TopicListResponseData) UnmarshalJSON(data []byte) error + func (r TopicListResponseData) RawJSON() string + type TopicListResponseDataLabels struct + Category string + JSON struct{ ... } + Subcategory string + func (r *TopicListResponseDataLabels) UnmarshalJSON(data []byte) error + func (r TopicListResponseDataLabels) RawJSON() string + type TopicService struct + Options []option.RequestOption + func NewTopicService(opts ...option.RequestOption) (r TopicService) + func (r *TopicService) List(ctx context.Context, query TopicListParams, opts ...option.RequestOption) (res *TopicListResponse, err error) + type VectorNewsSearchParams struct + AddDateFrom param.Opt[time.Time] + AddDateTo param.Opt[time.Time] + Filter ArticleSearchFilterParam + Page param.Opt[int64] + Prompt string + PubDateFrom param.Opt[time.Time] + PubDateTo param.Opt[time.Time] + ScoreThreshold param.Opt[float64] + ShowReprints param.Opt[bool] + Size param.Opt[int64] + func (f VectorNewsSearchParams) IsPresent() bool + func (r VectorNewsSearchParams) MarshalJSON() (data []byte, err error) + type VectorNewsSearchResponse struct + JSON struct{ ... } + Results []VectorNewsSearchResponseResult + Status int64 + func (r *VectorNewsSearchResponse) UnmarshalJSON(data []byte) error + func (r VectorNewsSearchResponse) RawJSON() string + type VectorNewsSearchResponseResult struct + Data Article + JSON struct{ ... } + Score float64 + func (r *VectorNewsSearchResponseResult) UnmarshalJSON(data []byte) error + func (r VectorNewsSearchResponseResult) RawJSON() string + type VectorNewsService struct + Options []option.RequestOption + func NewVectorNewsService(opts ...option.RequestOption) (r VectorNewsService) + func (r *VectorNewsService) Search(ctx context.Context, body VectorNewsSearchParams, opts ...option.RequestOption) (res *VectorNewsSearchResponse, err error) + type VectorService struct + News VectorNewsService + Options []option.RequestOption + func NewVectorService(opts ...option.RequestOption) (r VectorService) + type WikidataDateHolder struct + JSON struct{ ... } + Precision string + Time string + func (r *WikidataDateHolder) UnmarshalJSON(data []byte) error + func (r WikidataDateHolder) RawJSON() string + type WikidataLabelHolder struct + JSON struct{ ... } + Label string + WikidataID string + func (r *WikidataLabelHolder) UnmarshalJSON(data []byte) error + func (r WikidataLabelHolder) RawJSON() string v0 v0.1.0-alpha.3 May 3, 2025 v0.1.0-alpha.2 May 3, 2025 v0.1.0-alpha.1 May 2, 2025 Other modules containing this package github.com/goperigon/perigon-go-sdk/v2