v17

latestOpenAPI 3.0.1raw.githubusercontent.com2026-05-072674388.0 KB
v1

Story Count Statistics

Get statistics on story counts over time intervals. Supports filtering by various story attributes and grouping by different time intervals (hour, day, week, month).

get/v1/stories/stats

Query parameters

qstring

String. Primary search query for filtering stories based on their name, summary, and key points. Supports Boolean operators (AND, OR, NOT), exact phrases with quotes, and wildcards (* and ?) for flexible searching.

namestring

String. Search specifically within story names. Supports Boolean operators, exact phrases with quotes, and wildcards for matching name variations.

clusterIdstring[]

String Array. Filter to specific stories using their unique identifiers. Each clusterId represents a distinct story that groups related articles. Multiple values create an OR filter.

excludeClusterIdstring[]

String Array. Excludes specific stories from the results by their unique identifiers. Use this parameter to filter out unwanted or previously seen stories.

sortBy'createdAt' | 'updatedAt' | 'relevance' | 'count' | 'totalCount'

String. Determines the story sorting order. Options include createdAt (default, when stories first emerged), updatedAt (when stories received new articles, best for tracking developing events), relevance (best match to query), count (by unique article count), and totalCount (by total article count including reprints).

pageinteger

Integer. The specific page of results to retrieve in the paginated response. Starts at 0.

sizeinteger

Integer. The number of articles to return per page in the paginated response.

fromstring date-time

Date. 'from' filter, will search stories created after the specified date, the date could be passed as ISO or 'yyyy-mm-dd'. Add time in ISO format, ie. 2023-03-01T00:00:00

tostring date-time

Date. 'to' filter, will search stories created before the specified date, the date could be passed as ISO or 'yyyy-mm-dd'. Add time in ISO format, ie. 2023-03-01T23:59:59

initializedFromstring date-time

Date. Filter for stories created after this date. Alternative parameter for filtering by story creation date.

initializedTostring date-time

Date. Filter for stories created before this date. Alternative parameter for filtering by story creation date.

updatedFromstring date-time

Date. Filter for stories that received new articles after this date. Useful for tracking developing news events or evolving storylines.

updatedTostring date-time

Date. Filter for stories that received new articles before this date. Useful for tracking developing news events or evolving storylines.

topicstring[]

String Array. Filter stories by specific topics such as Markets, Crime, Cryptocurrency, or College Sports. Topics are more granular than categories, and stories can include multiple topics based on their constituent articles. Use the /topics endpoint for a complete list of available topics. Multiple values create an OR filter.

categorystring[]

String Array. Filter stories by broad content categories such as Politics, Tech, Sports, Business, or Finance. Use 'none' to find uncategorized stories. Categories are derived from the articles within each story. Multiple values create an OR filter.

taxonomystring[]

String Array. Filter stories by Google Content Categories. Must pass the full hierarchical path of the category. Example: taxonomy=/Finance/Banking/Other,/Finance/Investing/Funds. Stories are categorized based on their constituent articles. Multiple values create an OR filter.

sourcestring[]

String Array. Filter stories that contain articles from specific publisher domains or subdomains. Supports wildcards (* and ?) for pattern matching (e.g., *.cnn.com). A story will match if it contains at least one article from any of the specified sources. Multiple values create an OR filter.

sourceGroupstring[]

String Array. Filter stories that contain articles from publishers in Perigon's curated bundles (e.g., top100, top25crypto). A story will match if it contains at least one article from any publisher in the specified bundles. Multiple values create an OR filter.

minUniqueSourcesinteger

Integer. Specifies the minimum number of unique sources required for a story to appear in results. Higher values return more significant stories covered by multiple publications. Default is 3.

minSourceDiversitynumber

Float. Minimum ratio of unique sources to unique articles (uniqueSources / uniqueCount). Filters out stories dominated by a single publisher. For example, a value of 0.05 requires at least 1 unique source per 20 articles. Not applied by default.

personWikidataIdstring[]

String Array. Filter stories by Wikidata IDs of top mentioned people. Returns stories where these individuals appear prominently. Refer to the /people endpoint for a complete list of tracked individuals.

personNamestring

String. Filter stories by exact name matches of top mentioned people. Does not support Boolean or complex logic. For available person entities, consult the /people endpoint.

companyIdstring[]

String Array. Filter stories by identifiers of top mentioned companies. Returns stories where these companies appear prominently. For a complete list of tracked companies, refer to the /companies endpoint.

companyNamestring

String. Filter stories by names of top mentioned companies. Performs an exact match on company names in the topCompanies field.

companyDomainstring[]

String Array. Filter stories by domains of top mentioned companies (e.g., apple.com). Returns stories where companies with these domains appear prominently. For available company entities, consult the /companies endpoint.

companySymbolstring[]

String Array. Filter stories by stock symbols of top mentioned companies. Returns stories where companies with these symbols appear prominently. For available company entities and their symbols, consult the /companies endpoint.

countrystring[]

String Array. Country code to filter by country. If multiple parameters are passed, they will be applied as OR operations.

statestring[]

String Array. Filter local news by state. Applies only to local news, when this param is passed non-local news will not be returned. If multiple parameters are passed, they will be applied as OR operations.

citystring[]

String Array. Filter local news by city. Applies only to local news, when this param is passed non-local news will not be returned. If multiple parameters are passed, they will be applied as OR operations.

areastring[]

String Array. Filter local news by area. Applies only to local news, when this param is passed non-local news will not be returned. If multiple parameters are passed, they will be applied as OR operations.

minClusterSizeinteger

Integer. Filter by minimum cluster size. Minimum cluster size filter applies to number of unique articles.

maxClusterSizeinteger

Integer. Filter by maximum cluster size. Maximum cluster size filter applies to number of unique articles in the cluster.

nameExistsboolean

Boolean. Filter to only include stories that have been assigned names. Defaults to true. Note that stories only receive names after they contain at least 5 unique articles.

positiveSentimentFromnumber float

Float. Filter articles with an aggregate positive sentiment score greater than or equal to the specified value. Scores range from 0 to 1, with higher values indicating stronger positive tone.

positiveSentimentTonumber float

Float. Filter articles with an aggregate positive sentiment score less than or equal to the specified value. Scores range from 0 to 1, with higher values indicating stronger positive tone.

neutralSentimentFromnumber float

Float. Filter articles with an aggregate neutral sentiment score greater than or equal to the specified value. Scores range from 0 to 1, with higher values indicating stronger neutral tone.

neutralSentimentTonumber float

Float. Filter articles with an aggregate neutral sentiment score less than or equal to the specified value. Scores range from 0 to 1, with higher values indicating stronger neutral tone.

negativeSentimentFromnumber float

Float. Filter stories with an aggregate negative sentiment score greater than or equal to the specified value. Scores range from 0 to 1, with higher values indicating stronger negative tone.

negativeSentimentTonumber float

Float. Filter articles with an aggregate negative sentiment score less than or equal to the specified value. Scores range from 0 to 1, with higher values indicating stronger negative tone.

showStoryPageInfoboolean

Boolean.

showNumResultsboolean

Boolean. Show total number of results. By default set to false, will cap result count at 10000.

showDuplicatesboolean

Boolean. Stories are deduplicated by default. If a story is deduplicated, all future articles are merged into the original story. duplicateOf field contains the original cluster Id. When showDuplicates=true, all stories are shown.

showHighlightingboolean

Boolean. When set to true, enables text highlighting in search results.

highlightFragmentSizeinteger

Integer. Specifies the size in characters of each highlighted text fragment. Defaults to 100 if not specified.

highlightNumFragmentsinteger

Integer. Controls the maximum number of highlighted fragments to return per field.

highlightPreTagstring

String. Defines the HTML tag that appears before highlighted text. Defaults to '<em>' if not specified.

highlightPostTagstring

String. Defines the HTML tag that appears after highlighted text. Defaults to '</em>' if not specified.

highlightQstring

String. Specifies a separate query for highlighting, allowing highlights based on terms different from the main search query. Example: main query 'q=climate change' with 'highlightQ=renewable OR solar' will highlight terms 'renewable' and 'solar' in results about climate change.

expandArticlesboolean

Boolean. Preview 5 articles from the cluster.

splitBy'HOUR' | 'DAY' | 'WEEK' | 'MONTH' | 'NONE' required

String. The value for 'splitBy' must be one of the following: HOUR, DAY, WEEK, MONTH, or NONE.

Response

200 - Success

statusinteger nullable
resultsobject[] nullable