Skip to main content
This guide helps you make your first API call to access local news articles with location detection and filtering capabilities.

Before you start

Before you begin, make sure you meet these prerequisites:
  • An API key (obtain one through Book a demo page)
  • Basic understanding of REST APIs
  • Your preferred programming language and HTTP client
  • Basic knowledge of JSON data format

Steps

1

Set up your environment

Make sure you have the necessary HTTP client library installed for your programming language:
2

Make your first request

Search for local news articles using standard location filtering:
Replace YOUR_API_KEY_HERE with your actual API key.
3

Review the response

The API returns a JSON response containing articles with location data:
JSON
4

Try advanced GeoNames filtering

Use the advanced endpoint for structured geographic filtering with additional metadata:
5

Review the advanced response

The advanced endpoint returns structured GeoNames data:
JSON
The advanced response includes coordinates, administrative hierarchy, confidence scores, and detailed detection information.

What’s next

Now that you’ve made your first calls to the Local News API:
  1. Explore Location detection methods for better location matching.
  2. Read about GeoNames filtering for advanced geographic targeting.
  3. Learn about Search in translations to find articles across languages using English keywords.
  4. Read about NLP Enrichments to extract insights from articles.
Need help? Contact our support team at support@newscatcherapi.com