Stream of events

The stream of events that were added or updated in the last few minutes.

The API endpoint allows the user to obtain the full list of events that were added or updated in Event Registry in the last few minutes.

The endpoint can be used without any additional filters, which will return all added or updated events. Alternatively, you can specify filters to return only events in a certain language, from specific locations, mentioning specific keywords, concepts, etc.

This is the only API call that also allows returning more than 50 events per call. If more than 50 events are returned, then correspondingly higher number of tokens are used per call.

Endpointhttps://eventregistry.org/api/v1/minuteStreamEvents
HeadersContent-Type: application/json

Get the stream of events that were added/updated in the last minute.

Request body

Parameters 
apiKey  string (required)

Your API key

recentActivityEventsMaxEventCount  integer

The maximum number of events to return. Maximum value specified can be 2.000. The number of used tokens will correspond to the number of returned events. For 200 returned events, for example, 4*5 tokens will be used - 5 tokens for each 50 events.

Default value:  50
recentActivityEventsUpdatesAfterMinsAgo  integer

The parameter can be used to retrieve not only the last minute of events, but more minutes. When using some filtering parameters below you use can use this parameter to call minuteStreamEvents endpoint only every few minutes and still retrieve all added content matching your filters. The value should be at most 240 (4 hours).

recentActivityEventsUpdatesAfterTm  string

The parameter can be used to retrieve events that were updated after the specified time. The value should be in format YYYY-MM-DDTHH:MM:SS and should represent datetime in UTC timezone. The value should be at most 4 hours in the past.

Additional Parameters 

Click to see additional parameters.

keyword  string | string[]

Find events in which news articles mention the specified keyword or a phrase. If you specify multiple keyword parameters, then only events with articles that mention all of them will be returned, unless you specify keywordOper parameter and set it to or. Use the keywordSearchMode parameter to control how the keyword is matched; see the keyword search modes section.

Default value:  Barack Obama
conceptUri  string | string[]

Find events for which the concept with concept uri is important. You can specify up to 50 concepts in a single search. If multiple conceptUri parameters are provided, then only events that are about all specified concepts will be returned, unless you specify conceptOper parameter and set it to or. Check autosuggest methods to get concept URI value for a specified concept label.

Default value:  http://en.wikipedia.org/wiki/World_Health_Organization
categoryUri  string | string[]

Find events that are about a particular category. You can specify up to 20 categories in a single search. If multiple categoryUri parameters are provided, then events that are about any of the specified categories will be returned, unless you specify categoryOper parameter and set it to and. Check autosuggest methods to get value for a specified category name.

Default value:  dmoz/Business/Accounting
sourceUri  string | string[]

Find events that contain one or more articles that have been written by a specific news source. Check autosuggest methods to get value for a source name.

Default value:  bbc.co.uk
sourceLocationUri  string | string[]

Find events that contain one or more articles by news sources located at the given geographic location (city or a country). Check autosuggest methods to get value for a location name.

Default value:  http://en.wikipedia.org/wiki/Germany
sourceGroupUri  string | string[]

Find events that contain one or more articles by news sources that are assigned to the predefined group of news sources.

Default value:  general/ERtop10
authorUri  string | string[]

Find events that contain articles that were written by a particular author. Check autosuggest methods to get value for author uri based on the author name (and potentially source url).

Default value:  mark_mazzetti@nytimes.com
locationUri  string | string[]

Find events that occurred at a particular geographic location. Check autosuggest methods to get URI value for a given location name.

Example value:  http://en.wikipedia.org/wiki/United_States
keywordLoc  string

What data should be used when searching using the keywords provided by keywords parameter.

Available values:  body, title, title,body
Default value:  body
keywordOper  string

If more keywords are provided with the keyword parameter, what should be the Boolean operator used. If and (default) then all of the specified keywords have to be present in the article about an event; if or then an event will be returned if it's articles mentions any of the provided keywords.

Available values:  and, or
Default value:  and
keywordSearchMode  string

Determines how the keywords provided with the keyword parameter are matched against the content. Use phrase (default) to match the keyword as an exact phrase, exact to use the Boolean query language (with AND, OR, NOT, NEAR and NEXT operators), or simple for a relevance-based search that does not require all terms to be present. See the keyword search modes section for details and examples.

Available values:  phrase, exact, simple
Default value:  phrase
conceptOper  string

If more concepts are provided with the conceptUri parameter, what should be the Boolean operator used. If and (default) then all of the specified concepts have to be present in the event; if or then an event will be returned if it mentions any of the provided concepts.

Available values:  and, or
Default value:  and
categoryOper  string

If more categories are provided with the categoryUri parameter, what should be the Boolean operator used. If and then all of the specified categories have to be present in the event; if or then an event will be returned if it mentions any of the provided categories.

Available values:  and, or
Default value:  or
lang  string | string[]

Find events that contain articles in the specified language(s). You can specify at most 5 languages in a single search. Specify languages using their ISO3 language codes. The full list of languages and their ISO3 codes can be found on this page.

Example value:  eng
minArticlesInEvent  integer

Find events that have been reported in at least minArticlesInEvent articles (regardless of language).

maxArticlesInEvent  integer

Find events that have not been reported in more than maxArticlesInEvent articles (regardless of language).

Returned Details 

The API call can return more or less meta-data information about the events, articles, concepts, categories, sources and locations. Click to see the available properties that can be specified to determine the amount of returned information.

includeEventTitle  boolean

Set this parameter to true to include the event title in the response.

Default value:  true
includeEventSummary  boolean

Set this parameter to true to include the event title in the response.

Default value:  false
includeEventSocialScore  boolean

Set this parameter to true to include the event social score in the response.

Default value:  false
includeEventSentiment  boolean

Set this parameter to true to include the event sentiment in the response.

Default value:  true
includeEventLocation  boolean

Set this parameter to true to include the event location in the response.

Default value:  true
includeEventDate  boolean

Set this parameter to true to include the event date in the response.

Default value:  true
includeEventArticleCounts  boolean

Set this parameter to true to include the article counts for events in the response.

Default value:  true
includeEventConcepts  boolean

Set this parameter to true to include the event concepts in the response.

Default value:  true
includeEventCategories  boolean

Set this parameter to true to include the event categories in the response.

Default value:  true
includeEventCommonDates  boolean

Set this parameter to true to include the event commmon dates in the response.

Default value:  false
includeEventStories  boolean

Set this parameter to true to include the event stories in the response.

Default value:  false
eventImageCount  integer

Define how many images you would like to have in the response.

Default value:  0
includeConceptLabel  boolean

Set this parameter to true to include the concept label in the response.

Default value:  true
includeConceptImage  boolean

Set this parameter to true to include the concept image in the response.

Default value:  false
includeConceptSynonyms  boolean

Set this parameter to true to include the concept synonyms in the response.

Default value:  false
conceptLang  string

Define the language of the concept label.

Default value:  eng
includeStoryBasicStats  boolean

Set this parameter to true to include story basic stats in the response.

Default value:  false
includeStoryTitle  boolean

Set this parameter to true to include the story title in the response.

Default value:  false
includeStoryLocation  boolean

Set this parameter to true to include the story location in the response.

Default value:  false
includeStoryDate  boolean

Set this parameter to true to include the story date in the response.

Default value:  false
includeStoryConcepts  boolean

Set this parameter to true to include the story concepts in the response.

Default value:  false
includeStoryCategories  boolean

Set this parameter to true to include the story categories in the response.

Default value:  false
includeStoryMedoidArticle  boolean

Set this parameter to true to include story medoid article in the response.

Default value:  false
includeStoryCommonDates  boolean

Set this parameter to true to include story common dates in the response.

Default value:  false
storyImageCount  integer

Define how many images you would like to have in the response.

Default value:  0
includeArticleTitle  boolean

Set this parameter to true to include the article title in the response.

Default value:  true
includeArticleBasicInfo  boolean

Set this parameter to true to include the core article information in the response.

Default value:  true
includeArticleBody  boolean

Set this parameter to true to include the article body in the response.

Default value:  true
includeArticleEventUri  boolean

Set this parameter to true to include the uri of the event (to which the article belongs) in the response.

Default value:  true
includeArticleSocialScore  boolean

Set this parameter to true to include the information about how many times the article was shared on different social media.

Default value:  false
includeArticleSentiment  boolean

Set this parameter to true to include the article sentiment in the response (value will be non-null only for English articles).

Default value:  true
includeArticleConcepts  boolean

Set this parameter to true to include the article concepts in the response.

Default value:  false
includeArticleCategories  boolean

Set this parameter to true to include the article categories in the response.

Default value:  false
includeArticleLocation  boolean

Set this parameter to true to include the article location in the response.

Default value:  false
includeArticleImage  boolean

Set this parameter to true to include the article image in the response.

Default value:  true
includeArticleAuthors  boolean

Set this parameter to true to include the article authors in the response.

Default value:  true
includeArticleVideos  boolean

Set this parameter to true to include the article videos in the response.

Default value:  false
includeArticleLinks  boolean

Set this parameter to true to include the article links in the response.

Default value:  false
includeArticleExtractedDates  boolean

Set this parameter to true to include article extracted dates in the response.

Default value:  false
includeArticleDuplicateList  boolean

Set this parameter to true to include the list of duplicate articles in the response.

Default value:  false
includeArticleOriginalArticle  boolean

Set this parameter to true to include the original article in the response.

Default value:  false
articleBodyLen  integer

Set the size of the article body that'll be returned in the response. Use -1 for full article body.

Default value:  -1
includeSourceTitle  boolean

Set this parameter to true to include the source title in the response.

Default value:  true
includeSourceDescription  boolean

Set this parameter to true to include the source description in the response.

Default value:  false
includeSourceLocation  boolean

Set this parameter to true to include the source location in the response.

Default value:  false
includeSourceRanking  boolean

Set this parameter to true to include the source ranking in the response.

Default value:  false
includeLocationPopulation  boolean

Set to true to include the population size of the location.

Default value:  false
includeLocationGeoNamesId  boolean

Set to true to include the GeoNames id of the location.

Default value:  false
includeLocationCountryArea  boolean

Set to true to include the are of the location in squared km.

Default value:  false
includeLocationCountryContinent  boolean

Set to true to get the continent of the country for location objects.

Default value:  false