API reference

The article, company and source endpoints, read from the OpenAPI spec of the API. Every request sends your key in the X-API-Key header.

POST /v1/articles/search

News search with the query language. Minimum plan: finnstream Free. Cursor pagination; the period and is echoed back. On a plan with newsData, without sources the search covers the default sources only (isDefault in GET /sources) plus those in optInSources; other plans search every source they may see. The same holds for source: in the query: source:x for a source that is not a default one finds nothing unless optInSources names it. optInSources, sourceTypes, excludeSourceTypes, sectors, companyCountries, exchanges, a list in language and orderBy firstSeenAt or availableAt need a news plan (newsData); roles and minRelevance need finnstream Pro or finnstream Pro Max (companyRoles), and so do the event filters (articleEvents); other plans get 403 forbidden_plan. Without those features the articles lack sourceType, firstSeenAt, availableAt, role, relevance and events; on a news plan the warning plan_feature_omitted names the missing feature.

Request body

FieldTypeDescription
querystringThe query language.
sourcesstring[]Only these sources, default or not; ["*"] is every source. Not together with optInSources. A value is a source id as GET /sources lists it (news:cnbc.com/top) or a bare domain (cnbc.com, also www.cnbc.com), which stands for every news source on that domain. A value that matches no source answers 400 invalid_request with the parameter, and so do more than 50 values.
excludeSourcesstring[]Leaves these sources out. A value is a source id as GET /sources lists it (news:cnbc.com/top) or a bare domain (cnbc.com, also www.cnbc.com), which stands for every news source on that domain. A value that matches no source answers 400 invalid_request with the parameter, and so do more than 50 values.
optInSourcesstring[]Sources that are not default ones, searched in addition to the default sources. Not together with sources (400 invalid_request). News plans only (newsData); other plans get 403 forbidden_plan.A value is a source id as GET /sources lists it (news:cnbc.com/top) or a bare domain (cnbc.com, also www.cnbc.com), which stands for every news source on that domain. A value that matches no source answers 400 invalid_request with the parameter, and so do more than 50 values.
sourceTypesstring[]Only sources of these outlet types. News plans only (newsData); other plans get 403 forbidden_plan. One of: newswire, press_release, financial_media, general_media, aggregator, blog, government.
excludeSourceTypesstring[]Leaves sources of these outlet types out. News plans only (newsData); other plans get 403 forbidden_plan. One of: newswire, press_release, financial_media, general_media, aggregator, blog, government.
tickersstring[]Notations, at most 50 after deduplication.
rolesstring[]finnstream Pro and finnstream Pro Max only (companyRoles). A company's part in the article (acquirer, target, seller, defendant, subject, counterparty, supplier, customer, competitor, mentioned; an open list, an unknown role matches nothing). The company filters (roles, minRelevance, sectors, companyCountries, exchanges and tickers) must all hold for the same company of an article.
minRelevancenumberfinnstream Pro and finnstream Pro Max only (companyRoles). How central the company is to the article.
sectorsstring[]News plans only (newsData); other plans get 403 forbidden_plan.
companyCountriesstring[]ISO 3166-1 alpha-2 codes of the companies, not of the sources. News plans only (newsData); other plans get 403 forbidden_plan.
exchangesstring[]MICs of a current listing of the company (XNAS). News plans only (newsData); other plans get 403 forbidden_plan.
eventTypesstring[]finnstream Pro and finnstream Pro Max only (articleEvents). Articles that report one of these events. One of: earnings, guidance, mna, ipo_listing, capital_action, rating_action, management_change, legal, regulatory, bankruptcy_distress, product_partnership, investment_expansion, operational_incident, labor_restructuring, macro, geopolitics.
eventDirectionsstring[]finnstream Pro and finnstream Pro Max only (articleEvents). One of: positive, negative, neutral, unclear.
minImportancestringfinnstream Pro and finnstream Pro Max only (articleEvents). This importance of an event or higher. One of: low, medium, high, critical.
countriesstring[]
categoriesstring[]
sentimentstringOne of: positive, neutral, negative.
languageobjectISO 639-1, a list of them, or * for every language. A list needs a news plan (newsData).
fromstring
tostring
orderBystringfirstSeenAt and availableAt need a news plan (newsData). One of: publishDate, createdAt, revisedDate, firstSeenAt, availableAt.
orderstringOne of: ASC, DESC.
pageSizeinteger
cursorstringFrom nextCursor of the previous page, with the same orderBy and order; under another order it is 400 invalid_request. A cursor issued before the order was part of it is accepted for publishDate DESC only.
includeEntitiesbooleanfalse leaves companies out of every article.

Response

ArticleSearchResponse

GET /v1/articles/{id}

One article. Minimum plan: finnstream Free. Entities are included; the logo is null on the news plans.

Parameters

NameInTypeDescription
id requiredpathstring

Response

ArticleResponse

GET /v1/companies

Company search and batch lookup. Minimum plan: finnstream Free (the companies feature; news plans only, 403 forbidden_plan on the others). Exactly one of q and ids. q finds up to 10 companies by ticker, notation (XNAS:AAPL, NASDAQ:AAPL, 000660.KS), ISIN, name or alias, best first; ids returns the companies of up to 10 ids in that order and skips unknown ones. Master data only: no sentiment, and no role or relevance (those exist only inside an article).

Parameters

NameInTypeDescription
qquerystring1 to 200 characters.
idsquerystringComma-separated company ids, 1 to 10.
micquerystringWith q only: an exchange MIC or prefix (XNAS, NASDAQ). Keeps the companies with a current listing there. It narrows the 50 best hits of a name search, so a company further down that list is not found.

Response

CompaniesResponse

GET /v1/companies/{id}

One company. Minimum plan: finnstream Free (the companies feature; news plans only, 403 forbidden_plan on the others).

Parameters

NameInTypeDescription
id requiredpathstring

Response

CompanyResponse

GET /v1/sources

Every source with its provenance. Minimum plan: finnstream Free. type is the outlet type (newswire, financial_media, ...). A news source we read from its sitemap or listing pages has provider: news.page and acquisition: self_scraped. isDefault says whether POST /articles/search covers the source without sources; the others need optInSources. type and the news-only sources are listed to plans with newsData only.

Response

SourcesResponse

Schemas

The objects the endpoints above return.

ArticleSearchResponse

FieldTypeDescription
articles requiredArticle[]
period requiredPeriod
nextCursorstring
warningsWarning[]

Article

FieldTypeDescription
id requiredstring
eventId requiredstring
link requiredstring
source requiredstring
sourceTier requiredstringOne of: regulatory, pressrelease, centralbank, headline, social, market.
sourceTypestring | nullThe outlet type of the source: newswire, press_release, financial_media, general_media, aggregator, blog, government. Null where it is not set. News plans only (newsData); absent on the other plans.
title requiredstring
summary requiredstring | null
publishDate requiredstring
createdAt requiredstring
firstSeenAtstringWhen a collector first fetched the article; equal to createdAt for articles collected before this was kept. Not the firstSeenAt of GET /clusters/{id}, which is the earliest publishDate of the story. News plans only (newsData); absent on the other plans.
availableAtstringWhen the article became available through the API, after enrichment. News plans only (newsData); absent on the other plans.
revisedDate requiredstring | null
isUpdate requiredboolean
language requiredstring
categories requiredstring[]
countries requiredstring[]
sentiment requiredstring | nullOne of: positive, neutral, negative.
sentimentScore requirednumber | null
confidence requirednumber | null
images requiredstring[]
clusterId requiredstring | null
filingItems requiredstring[] | null
filingEvent requiredstring | null
eventsobject[]finnstream Pro and finnstream Pro Max only (articleEvents). What the article reports, at most two events, the main one first. An empty list means none was found. Absent on the other plans (on finnstream Free the warning plan_feature_omitted names articleEvents) and for an article that was never checked.
companiesCompany[]

Company

FieldTypeDescription
companyId requiredstring
groupId requiredstring
name requiredstring
ticker requiredstring
exchange requiredstring
isin requiredstring | null
isins requiredstring[]
openfigi requiredstring | null
country requiredstring | null
sector requiredstring | null
industry requiredstring | null
confidence requirednumber
primaryListing requiredobject
otherListings requiredobject[]
logo requiredLogo | null
brandColors requiredobject
sentimentstring | nullOne of: positive, neutral, negative.
sentimentScorenumber | null
sentimentConfidencenumber | null
rolestring | nullOnly on a company inside an article, on finnstream Pro and finnstream Pro Max (companyRoles): the company's part in the article (acquirer, target, seller, defendant, subject, counterparty, supplier, customer, competitor, mentioned; the list may grow). Null where none was given. Absent everywhere else and on the other plans (on finnstream Free the warning plan_feature_omitted names companyRoles).
relevancenumber | nullOnly on a company inside an article, on finnstream Pro and finnstream Pro Max (companyRoles): how central the company is to the article, 0 to 1. Null where none was given. Absent everywhere else and on the other plans.

Period

FieldTypeDescription
from requiredstring
to requiredstring
days requiredinteger
window requiredstring | nullOne of: 1h, 4h, 24h.
isLive requiredboolean
visibleUntilstring

Warning

FieldTypeDescription
code requiredstringOne of: unknown_ticker, plan_feature_omitted, ambiguous_ticker, former_ticker, unknown_isin, unknown_openfigi, unknown_exchange, period_adjusted, period_clamped, superseded_isin, grouped.
value requiredstring

ArticleResponse

FieldTypeDescription
article requiredArticle
warningsWarning[]

CompaniesResponse

FieldTypeDescription
companies requiredobject[]

CompanyResponse

FieldTypeDescription
company requiredobject

SourcesResponse

FieldTypeDescription
sources requiredSource[]

Source

FieldTypeDescription
id requiredstring
platform requiredstring
domain requiredstring | null
displayName requiredstring
originCountry requiredstring | null
languages requiredstring[]
tier requiredstringOne of: regulatory, pressrelease, centralbank, headline, social, market.
isDefault requiredboolean
typestring | nullThe outlet type: newswire, press_release, financial_media, general_media, aggregator, blog, government. Null where it is not set. Absent on a plan without newsData.
provider requiredstring | null
acquisition requiredstring | nullOne of: official, open_protocol, public_feed, third_party, self_scraped.