Understand how Local News API uses different methods to detect and validate location mentions in news articles, helping you filter and interpret location-specific content.
Location detection pipeline
dedicated_source
(US only)
The most precise method for identifying location-relevant content. This method
tags articles from news sources that exclusively cover a specific location, such
as city newspapers or local news websites.
For example, articles from the Fresno Bee are likely relevant to Fresno because
that’s their primary coverage area. These sources may reference local landmarks
or community events without explicitly naming the city, but the content is still
reliably location-specific.
When to use: Choose this method when you need high-precision results and
work with content from well-known local publications.
Example sources:
local_section
This method identifies locations through dedicated local sections within larger
news publications. Many regional and national outlets have local sections that
cover specific geographic areas.
For example, an article from the “Huntington Beach” section of the Orange County
Register is likely relevant to Huntington Beach, even if the city isn’t
repeatedly mentioned in the text.
When to use: Ideal for finding location-specific content from established
regional publications with dedicated local coverage sections.
regional_source
(US only)
This method uses the geographic context of news sources to properly interpret
and disambiguate location mentions. It’s particularly useful for handling cases
where location names might be ambiguous or where regional context provides
important meaning.
For example, an article from a Texas publication mentioning “Austin” would be
correctly identified as referring to Austin, Texas, rather than Austin in other
states.
When to use: Helpful when working with content from sources that cover
multiple locations within a region, or when you need to disambiguate common
location names.
standard_format
This method identifies locations written in standard formats such as “City,
State” or “City, Region”. It’s effective for formal news articles that use
conventional location naming.
For example, mentions like “San Francisco, California” or “Toronto, Ontario” are
captured through this method.
When to use: Effective for formal news content and when you want to capture
explicitly formatted location references.
proximity_mention
This method identifies cases where a city and its state appear within 15 words
of each other, capturing more natural writing patterns.
For example, in the sentence “New development in San Francisco draws attention
across California,” the proximity of “San Francisco” to “California” helps
confirm the location reference.
When to use: Helpful for finding location mentions in naturally written
content where formal city-state formats aren’t used.
dedicated_source
and regional_source
detection methods are only
available for US locations.ai_extracted
This method serves as a secondary extraction layer for articles where
traditional pattern-based detection methods don’t yield validated locations. It
uses state-of-the-art large language models to analyze article content and
extract location mentions, even when they’re implicit or contextual.
The AI-based detection process works differently from other methods:
ai_extracted
method is only available with the AI Extraction plan and
provides additional coverage beyond what pattern-based methods can identify.