Introduction to Local News API
Access U.S. location-specific news with advanced geographic relevance detection.
What is Local News API?
Local News API is a specialized service focused on U.S. location-specific content. Building on our core News API v3 infrastructure, it adds dedicated location detection capabilities optimized for city, county, and state-level news coverage. The system processes content from thousands of local news sources, including small city publishers, regional outlets, university newspapers, and local government news portals.
Features
- Six distinct location detection methods
- Content from thousands of local U.S. news sources, including city publishers, university newspapers, and government portals
- Specialized validation of location relevance, not just location mentions
- Six distinct location detection methods
- Content from thousands of local U.S. news sources, including city publishers, university newspapers, and government portals
- Specialized validation of location relevance, not just location mentions
- NLP analysis including sentiment scoring, theme categorization, and entity recognition
- Article clustering for related content grouping
- Boolean query support with proximity search capabilities
- High-volume retrieval with up to 1000 articles per request
- Comprehensive API with search, headlines, and direct article lookup
Key differences from News API v3
For users familiar with our core News API v3, Local News API offers these key enhancements:
Feature | Local News API | News API v3 |
---|---|---|
Geographic focus | U.S. local coverage with specialized location detection | Global news coverage |
Location handling | Basic NER plus six specialized detection methods | Basic geographic filtering using NER |
Historical data | 30 days of history | Up to 5 years of history |
Source types | Local newspapers, government sites, university outlets | Major publications, international sources |
Location detection methods
The system uses six distinct methods to detect and validate locations in news articles:
Dedicated Source
Identifies articles from news sources exclusively covering a specific location (highest confidence)
Local Section
Identifies locations through dedicated sections in larger publications
Regional Source
Uses regional context to properly interpret and disambiguate location mentions
Standard Format
Identifies locations written in standard formats like “City, State”
Proximity Mention
Detects cities and states mentioned within 15 words of each other
AI Extraction
Uses AI-based content analysis to identify locations (requires AI Extraction plan)
For detailed information on each method, see Location detection methods.
Base URL
For API requests use the following base URL:
Endpoints
Endpoint | Method | Description | Use Case |
---|---|---|---|
/api/search | POST | Full-text search with location filtering | Find articles matching specific criteria for given locations |
/api/latest_headlines | POST | Recent articles by location | Monitor latest news for specific towns or regions |
/api/search_by | POST | Direct article lookup | Retrieve specific articles using URLs, IDs, or RSS GUIDs |
/api/sources | POST | Available news sources | Discover local news providers by region |
Request format
Include your API key in the x-api-token
header for each request. All requests
must use HTTPS.
Response format
All API responses are JSON objects containing articles and metadata. The key response fields include:
The status of the request. Always returns "ok"
for successful requests.
The total number of articles matching the query.
The current page number of the results.
The total number of pages available for the given search criteria.
The number of articles per page.
An array of article objects, each containing location-specific metadata and content.
The parameters used in your request for verification and debugging.
For detailed descriptions of all available response fields, refer to the specific endpoint documentation in the Endpoints section.
Example response
Use cases
Local News API is designed for applications requiring location-specific news intelligence:
- Local news applications: Deliver geographically relevant content to users.
- Regional business monitoring: Track company activities in specific markets.
- Real estate intelligence: Monitor development news, policy changes, and market trends.
- Media analysis: Examine coverage patterns across geographic regions.
- Government affairs: Track policy issues at local and regional levels.
- Crisis monitoring: Follow emergencies and public health issues by location.
- University research: Analyze local media coverage of regional issues.
Getting started
- Visit our pricing page to get your API key.
- Follow the Quickstart guide to make your first request and comprehend the basic workflow.
- Review the Location detection methods documentation to understand how the system identifies and validates location mentions.
- Dive into the API reference for detailed endpoint documentation and advanced query options.