Examples

Ready-made queries for common questions. Copy one, change the ticker or event type, and send it. The last section lists common mistakes with the exact error messages.


How to use the examples

Each example shows the query and the body of POST /v3/articles/search. Add include for the blocks you want to see. The same query string also works in a WebSocket subscription or a webhook, with the differences described on Query Syntax.

The request on the right runs the example "Negative earnings for a ticker" from the Events section in every client.

Request

POST
/v3/articles/search
curl -X POST 'https://api.finlight.me/v3/articles/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY' \
  -d '{
    "query": "{eventType:earnings AND eventDirection:negative AND ticker:AMD}",
    "include": ["companies", "events"]
  }'

Companies

Articles about a company

ticker:NVDA
{ "query": "ticker:NVDA", "include": ["companies"] }

Matches articles where NVIDIA is one of the tagged companies.

The company is the main subject

{ticker:NVDA AND role:subject}
{ "query": "{ticker:NVDA AND role:subject}", "include": ["companies"] }

Matches articles where NVIDIA itself has the role subject. Without the braces, any tagged company could be the subject.

The company is central to the article

{ticker:NVDA AND relevance:>=0.8}
{ "query": "{ticker:NVDA AND relevance:>=0.8}", "include": ["companies"] }

Matches articles that are mostly about NVIDIA, not ones that only mention it.

Only about this one company

ticker:NVDA AND companyCount:1
{ "query": "ticker:NVDA AND companyCount:1" }

Matches articles where NVIDIA is the only tagged company. This filters out market roundups.

Two companies in one article

ticker:AAPL AND ticker:NVDA
{ "query": "ticker:AAPL AND ticker:NVDA", "include": ["companies"] }

Matches articles that tag both Apple and NVIDIA.


Events

Every M&A event

eventType:mna
{ "query": "eventType:mna", "include": ["events"] }

Matches articles with at least one M&A event.

Large deals only

{eventType:mna AND eventImportance:>=high}
{ "query": "{eventType:mna AND eventImportance:>=high}", "include": ["events"] }

Matches articles with one M&A event of importance high or critical.

A company is the target of a deal

{ticker:INSM AND role:target AND eventType:mna}
{ "query": "{ticker:INSM AND role:target AND eventType:mna}", "include": ["companies", "events"] }

Matches articles where Insmed is tagged as target and there is an M&A event about Insmed. For any target, write role:target AND eventType:mna.

Negative earnings for a ticker

{eventType:earnings AND eventDirection:negative AND ticker:AMD}
{ "query": "{eventType:earnings AND eventDirection:negative AND ticker:AMD}", "include": ["events"] }

Matches articles with an earnings event about AMD that is negative.

Important news in a portfolio

{eventType:(earnings guidance) AND eventImportance:>=high AND ticker:(NVDA OR AMD OR INTC)}
{
  "query": "{eventType:(earnings guidance) AND eventImportance:>=high AND ticker:(NVDA OR AMD OR INTC)}",
  "include": ["events"]
}

Matches articles with one earnings or guidance event of high or critical importance about NVIDIA, AMD or Intel.

One question or another

{ticker:NVDA AND role:target} OR {ticker:AMD AND eventType:rating_action AND eventDirection:negative}
{
  "query": "{ticker:NVDA AND role:target} OR {ticker:AMD AND eventType:rating_action AND eventDirection:negative}",
  "include": ["companies", "events"]
}

Matches articles where NVIDIA is a takeover target, or where AMD gets a negative rating action. The flat request filters cannot express this, because they always join with AND.

No legal event about the company

ticker:NVDA AND NOT {ticker:NVDA AND eventType:legal}
{ "query": "ticker:NVDA AND NOT {ticker:NVDA AND eventType:legal}" }

Matches articles about NVIDIA without a legal event about NVIDIA.

Articles without any event

ticker:NVDA AND NOT eventType:*
{ "query": "ticker:NVDA AND NOT eventType:*" }

Matches articles about NVIDIA where no event was found, such as opinion pieces.


Sources and source types

Press releases only

ticker:NVDA AND sourceType:press_release
{ "query": "ticker:NVDA AND sourceType:press_release" }

Matches company announcements about NVIDIA. The flat request field "sourceTypes": ["press_release"] does the same. See Source types.

Leave out aggregators

eventType:mna -sourceType:aggregator
{ "query": "eventType:mna -sourceType:aggregator", "include": ["events"] }

Matches M&A news that does not come from an aggregator. Articles from sources without a type are kept.

Newswire deals since a date

sourceType:newswire AND eventType:mna AND publishedAt:>=2026-11-17
{ "query": "sourceType:newswire AND eventType:mna AND publishedAt:>=2026-11-17", "include": ["events"] }

Matches M&A news from newswires published on or after 17 November 2026.

One source

ticker:TSLA AND source:www.reuters.com
{ "query": "ticker:TSLA AND source:www.reuters.com" }

Matches Reuters articles about Tesla. Do not also send the sources request field in the same request.


Screening

Deals in a sector

{eventType:mna AND sector:Technology}
{ "query": "{eventType:mna AND sector:Technology}", "include": ["events"] }

Matches M&A events that involve a technology company.

Deals at NASDAQ-listed companies

{eventType:mna AND exchange:XNAS}
{ "query": "{eventType:mna AND exchange:XNAS}", "include": ["events"] }

Matches M&A events that involve a company with its primary listing on NASDAQ.

Deals involving German companies

{eventType:mna AND companyCountry:DE}
{ "query": "{eventType:mna AND companyCountry:DE}", "include": ["events"] }

Matches M&A events that involve a company based in Germany. Use country:DE instead for stories about Germany.

Korean listings in vendor notation

ticker:000660.KS OR ticker:KRX:005930
{ "query": "ticker:000660.KS OR ticker:KRX:005930", "include": ["companies"] }

Matches articles about SK hynix or Samsung Electronics on the Korea Exchange. See Tickers & Exchanges.

Earnings on an exchange

{eventType:earnings AND exchange:KOSDAQ}
{ "query": "{eventType:earnings AND exchange:KOSDAQ}", "include": ["events"] }

Matches earnings events that involve a company listed on the Korea Exchange. KOSDAQ is an alias and is translated.


Text and sentiment

A phrase in US stories

"interest rate cut" AND country:US -sourceType:blog
{ "query": "\"interest rate cut\" AND country:US -sourceType:blog" }

Matches articles about the United States that contain the exact phrase, without blogs. In JSON, escape the quotes of the phrase.

Negative news about a company

ticker:TSLA AND sentiment:negative
{ "query": "ticker:TSLA AND sentiment:negative" }

Matches articles about Tesla with a negative overall sentiment.


Common errors

These are the messages REST v3 returns in errors[].issue. The errors[].field is badQuery unless stated otherwise. On the enriched and the raw WebSocket the same message arrives in a connection.error frame with code SEARCH_FAILED. Messages can change; branch on code and field, not on the text.

Unknown field or a colon in free text

Breaking:Apple
Unknown field "Breaking". Allowed fields: category, companyCount, companyCountry, ... To search for the literal text, quote it: "Breaking:Apple".

Fix: quote the text, "Breaking: Apple", or correct the field name. WebSocket and webhooks do not report this error; they search the text.

Unknown value

sourceType:wire
Unknown value "wire" for field "sourceType". Allowed values: newswire, press_release, financial_media, general_media, aggregator, blog, government

Values are case sensitive, so role:Target fails the same way:

Unknown value "Target" for field "role". Allowed values: acquirer, target, seller, defendant, subject, counterparty, supplier, customer, competitor, mentioned

Unknown importance in a comparison

{eventType:mna AND eventImportance:>=huge}
Unknown value "huge" for field "eventImportance". Allowed values: low, medium, high, critical

Comparison on a field without order

source:>reuters.com
Field "source" cannot be compared with ">" — comparisons are only defined for publishedAt, companyCount, eventCount, relevance, eventImportance, eventConfidence

A number field with text

relevance:>=high
Field "relevance" expects a number, got "high"

A date field with text

publishedAt:>=yesterday
Field "publishedAt" expects a date such as 2026-11-01 or 2026-11-01T10:00:00Z, got "yesterday"

publishedAt:* fails the same way.

Query that ends in an operator

Tesla AND
Unexpected end of input

A query that holds only spaces answers Query is empty. Leave query out to search without a query.

Group without a shared company

{role:subject AND eventType:mna}
The correlation group {role, eventType} has no common path: its fields live on different objects (company vs. event) and it carries no identity field to correlate them. Either add an identity (ticker, isin or companyId) to the group, or write the conditions as separate groups if the correlation does not matter.

Fix: {ticker:NVDA AND role:subject AND eventType:mna}, or {role:subject} AND {eventType:mna}.

OR between company and event in one group

{ticker:NVDA AND (role:subject OR eventType:mna)}
The condition on role, eventType inside a correlation group spans company and event — split it into separate groups

Fix: {ticker:NVDA AND role:subject} OR {ticker:NVDA AND eventType:mna}.

Article field inside a group

{country:US AND ticker:NVDA}
Field "country" is an article-level field and cannot take part in a correlation group {…} — a group describes one company or one event. Write it outside the group instead.

Fix: country:US AND {ticker:NVDA}, or simply country:US AND ticker:NVDA.

Free text inside a group

{ticker:NVDA AND merger}
A correlation group {…} may only contain field conditions — free text belongs outside the group

Fix: merger AND {ticker:NVDA}.

Missing closing brace

{ticker:NVDA AND role:subject
Unclosed correlation group — a "{" needs a matching "}"

Only negated conditions

-ticker:TSLA

The errors[].field is positiveTermRequired:

Query must include at least one non-negative keyword or phrase

Fix: add a positive condition, for example electric vehicles -ticker:TSLA.