Overview
Named Entity Recognition (NER) in News API v3 lets you find articles mentioning specific people, organizations, locations, or other named entities. This provides more precise results than keyword searches and works across all languages using English entity names.Before you start
Before you begin, ensure you have:- An active API key for NewsCatcher News API v3
- NLP functionality enabled in your subscription plan
- Basic knowledge of making API requests
Steps
1
Understand entity types
News API v3 recognizes four entity types:
PER_entity_name
: Person names (e.g., “Tim Cook”, “Elon Musk”)ORG_entity_name
: Organization names (e.g., “Apple”, “Tesla”, “European Union”)LOC_entity_name
: Location names (e.g., “California”, “Brussels”)MISC_entity_name
: Other entities (products, events, nationalities, etc.)
AND
, OR
, NOT
), proximity search with NEAR
, and count-based filtering.2
Set up entity search
Create a search request that combines keywords with entity recognition:This searches for AI articles that mention OpenAI or Microsoft as organizations.
3
Analyze results
The response includes entity information in the The
nlp
object. Here’s a focused example:ner_*
fields show entities found in the original content with their mention counts.4
Search across all languages
To search named entities in translations, use the translation options for the This finds articles mentioning the European Central Bank in German (“Europäische Zentralbank”), French (“Banque centrale européenne”), etc., using English entity names.The response includes both original and translation entity fields:
search_in
parameter.5
Advanced combinations
Combine multiple entity types and advanced operators for complex searches:Use COUNT functionality for frequency-based filtering:Combine with proximity search:
For comprehensive global coverage, always include both
title_content
and
title_content_translated
in your search_in
parameter when searching
entities across languages.