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

TypeCovers
newswireNews agencies that sell original reporting to other media, in the style of Reuters or AFP
press_releasePaid press release distribution and company investor relations, such as PR Newswire or Business Wire
financial_mediaFinancial and business media, such as Bloomberg, the Financial Times or CNBC
general_mediaGeneral newspapers and broadcasters
aggregatorSites that republish content from other sources, such as Yahoo Finance
blogBlogs, newsletters and niche commentary
governmentMinistries, 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 type on each entry of GET /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.

WhereHow
REST searchsourceTypes and excludeSourceTypes in the body of POST /v3/articles/search
Query languagesourceType:newswire, -sourceType:press_release, sourceType:* for "any classified source"
WebSocket v3sourceTypes and excludeSourceTypes in the subscribe message, enriched and raw. See Subscribe.
Webhooks v3sourceTypes and excludeSourceTypes in the webhook criteria, enriched and raw. See Criteria.

How unclassified articles behave:

  • sourceTypes keeps only articles whose source has one of the listed types. Articles with source.type: null never match.
  • excludeSourceTypes drops articles whose source has one of the listed types. Articles with source.type: null are kept.
  • Source types filter inside your source selection. sourceTypes: ["press_release"] does not add non-default press release sources; use optInSources for that.

An unknown value gives:

  • REST: 400 Validation failed. For sourceTypes and excludeSourceTypes the error lists allowedValues. For sourceType: in a query the field is badQuery with the issue Unknown value "wire" for field "sourceType". Allowed values: newswire, press_release, financial_media, general_media, aggregator, blog, government.
  • WebSocket: for sourceTypes and excludeSourceTypes, a connection.error with code VALIDATION_FAILED, then the connection is closed. For sourceType: in the query, the enriched and the raw stream both send SEARCH_FAILED and close the connection.
  • Webhook setup: the criteria are rejected.

Request

POST
/v3/articles/search
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