Source Types
A source in finlight has one source type, such as newswire or press_release, or none while it is not classified. Use it to keep only wire reports, to drop press releases, or to leave out aggregators.
The seven types
| Type | Covers |
|---|---|
newswire | News agencies that sell original reporting to other media, in the style of Reuters or AFP |
press_release | Paid press release distribution and company investor relations, such as PR Newswire or Business Wire |
financial_media | Financial and business media, such as Bloomberg, the Financial Times or CNBC |
general_media | General newspapers and broadcasters |
aggregator | Sites that republish content from other sources, such as Yahoo Finance |
blog | Blogs, newsletters and niche commentary |
government | Ministries, central banks, regulators, and disclosure feeds of exchanges |
A source never has more than one type. newswire and press_release are kept apart on purpose: one is independent reporting, the other is paid distribution.
The list of values in responses is open. A new type can appear later. Keep unknown values as strings.
Where the type appears
- On every article as
source.type, in REST, WebSocket and webhooks, enriched and raw. See The Article Object. - In the catalog as
typeon each entry ofGET /v3/sources.
source on an article
{ "source": { "domain": "www.reuters.com", "type": "newswire" } }
null means not classified. You see null in two cases:
- The source has no type yet.
- The article was stored before source types were introduced. Older articles get the type later.
source.type on an article is the type the source had when the article was stored. /v3/sources always shows the current type. After a source is reclassified, older articles keep the old value for a while.
Filtering by source type
The filters accept the seven values above. Request values are checked strictly: an unknown value is an error, not an empty result.
| Where | How |
|---|---|
| REST search | sourceTypes and excludeSourceTypes in the body of POST /v3/articles/search |
| Query language | sourceType:newswire, -sourceType:press_release, sourceType:* for "any classified source" |
| WebSocket v3 | sourceTypes and excludeSourceTypes in the subscribe message, enriched and raw. See Subscribe. |
| Webhooks v3 | sourceTypes and excludeSourceTypes in the webhook criteria, enriched and raw. See Criteria. |
How unclassified articles behave:
sourceTypeskeeps only articles whose source has one of the listed types. Articles withsource.type: nullnever match.excludeSourceTypesdrops articles whose source has one of the listed types. Articles withsource.type: nullare kept.- Source types filter inside your source selection.
sourceTypes: ["press_release"]does not add non-default press release sources; useoptInSourcesfor that.
An unknown value gives:
- REST:
400Validation failed. ForsourceTypesandexcludeSourceTypesthe error listsallowedValues. ForsourceType:in a query the field isbadQuerywith the issueUnknown value "wire" for field "sourceType". Allowed values: newswire, press_release, financial_media, general_media, aggregator, blog, government. - WebSocket: for
sourceTypesandexcludeSourceTypes, aconnection.errorwith codeVALIDATION_FAILED, then the connection is closed. ForsourceType:in the query, the enriched and the raw stream both sendSEARCH_FAILEDand close the connection. - Webhook setup: the criteria are rejected.
Request
curl -X POST 'https://api.finlight.me/v3/articles/search' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"query":"ticker:NVDA","excludeSourceTypes":["press_release","aggregator"]}'
WebSocket subscribe
{
"payloadVersion": 3,
"query": "ticker:NVDA",
"sourceTypes": ["newswire", "financial_media"]
}
Query language
ticker:NVDA AND -sourceType:press_release
To see which source has which type, call GET /v3/sources.
Related: Sources · Search Articles · Query Fields