Before you begin
Make sure you have the following:- An active News API key
- NLP functionality enabled in your subscription plan
- The Newscatcher SDK installed for your language, or cURL for quick testing
Steps
1
Understand entity types
News API recognizes four entity types, each available as a separate request
parameter:
All entity parameters support boolean operators (
AND, OR, NOT),
proximity search with NEAR, and count-based filtering.2
Search by entity
Combine keywords with entity recognition in a single request. This example
finds AI articles that mention OpenAI or Microsoft as organizations:
3
Review the NLP fields in the response
The response includes entity information in the The
nlp object for each
article:ner_* fields show entities found in the original content with their
mention counts.4
Search entities across languages
To find entities in non-English articles, include translated content in your
search. This example finds European Central Bank coverage in four languages
using English entity names:The response includes
translation_ner_* fields with entities extracted
from the translated content:5
Combine multiple entity types
Combine multiple entity parameters and advanced operators for complex
searches:Use Combine entity search with proximity operators:
COUNT for frequency-based filtering:
