APITube Help Center

How to Get Local and Geo-Targeted News

Find news near coordinates or a place, with optional local summaries

Kent Hudson

Written by Kent Hudson

June 26, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to get local and geo-targeted news

Call /v1/news/local with lat and lng, or a place name, plus a radius in kilometers. Results include distance_km and nearest_location and are nearest first by default.

This requests news within 50 km of central Berlin:

curl "https://api.apitube.io/v1/news/local?lat=52.52&lng=13.40&radius=50&api_key=YOUR_API_KEY"

Send your key in api_key or X-API-Key. Radius defaults to 50 km and must be positive and no greater than 20,000 km; invalid values return 400 ER0409.

Local news uses lat, lng, and radius. A regular search uses location.lat, location.lng, and location.radius.

The local endpoint also accepts place names, sorts by proximity, adds distance and nearest-place fields, and offers local insights. Use the regular geo filter when you only need to limit a search by location. See how to find news near a coordinate or bounding box.

You can combine local news with language, date, sentiment, publisher, and other search filters.

How to search local news by place name

Use place instead of coordinates:

curl "https://api.apitube.io/v1/news/local?place=Berlin&radius=30&api_key=YOUR_API_KEY"

Add a two-letter country code, such as de or fr, if the place name is ambiguous. Explicit lat and lng take priority over place.

The response’s query identifies the selected place and entity ID. An unrecognized place returns ER0421.

How to sort local news by distance, date or relevance

Use sort:

  • distance: nearest first; the default.
  • published_at: newest first.
  • relevance: combines distance, publisher authority, recency, and importance, adding relevance_score to results.

With relevance sorting, choose a ranking preset: balanced by default, proximity, authority, or fresh. This example favors publisher authority:

curl "https://api.apitube.io/v1/news/local?lat=52.52&lng=13.40&radius=50&sort=relevance&ranking=authority&api_key=YOUR_API_KEY"

The response shows ranking_weights. You can adjust individual weights with w.distance, w.opr, w.recency, and w.important.

What does each local result include?

Alongside the usual article fields, you get:

  • distance_km: distance to the nearest matched place in the article.
  • nearest_location: that place’s entity_id, name, lat, lng, and country.
  • relevance_score: included with sort=relevance.

query shows the selected lat, lng, radius_km, and sort. total is the matching article count within the radius.

Use page and per_page for more results. Limits are 10 per page on Free, 50 on Starter, 200 on Basic, and 250 on Professional or Corporate. The default is 100 or the plan limit, whichever is lower. Exceeding it returns ER0171.

How to add a local insights dashboard

Set insights to one or more comma-separated blocks:

mood, hotspots, events, entities, bias, sources, timeline, top_categories, top_topics, breaking, velocity, or movers.

curl "https://api.apitube.io/v1/news/local?lat=52.52&lng=13.40&radius=50&insights=mood,hotspots,breaking&api_key=YOUR_API_KEY"

The response adds local_insights beside the articles. An unknown block returns ER0420. movers highlights entities and topics gaining coverage compared with their 14-day baseline. See the trends endpoint for similar analysis across a wider search.

Common Questions

How much does a /v1/news/local request cost?

One credit for the article list, plus one per insight block. No insights costs one credit; insights=mood,hotspots,breaking costs four. Omit insights when you only need articles.

What is the maximum search radius?

20,000 km, with a default of 50 km. Zero, negative, or larger values return 400 ER0409. Supply both coordinates or a place, otherwise you get ER0406. Invalid latitude or longitude returns ER0407 or ER0408.

Why do I get error ER0421?

The place name could not be resolved. Try a more specific name, add country, or use coordinates.

Can I combine local news with other filters?

Yes. For example, choose English articles near Berlin and sort newest first:

curl "https://api.apitube.io/v1/news/local?lat=52.52&lng=13.40&radius=50&language.code=en&sort=published_at&api_key=YOUR_API_KEY"

See the full parameters reference.


Related Articles