How to Find News Near a Coordinate or Bounding Box
Find article locations inside a circle, ring or rectangle
Written by Tasha Tatum
June 26, 2026
Updated October 16, 2026
How to find news near a coordinate or bounding box
Send location.lat, location.lng and location.radius to find articles with locations inside a circle. Radius is in kilometres. This example uses a 50 km area around central Berlin:
curl "https://api.apitube.io/v1/news/everything?location.lat=52.52&location.lng=13.40&location.radius=50&api_key=YOUR_API_KEY"
Send the key through api_key or X-API-Key. These filters work on regular news search as well as the Local endpoint.
How does radius search work?
Latitude must be -90 to 90 and longitude -180 to 180. The radius must be positive and at most 20,000 km. The maximum-distance boundary is included.
Missing coordinates return 400 ER0406. Invalid latitude returns ER0407, longitude ER0408, or radius ER0409. A geographic match refers to an associated article location; read the report to understand its role in the story.
How to run a ring search with a minimum radius
Add location.radius.min to exclude an inner circle:
curl "https://api.apitube.io/v1/news/everything?location.lat=52.52&location.lng=13.40&location.radius.min=20&location.radius=100&api_key=YOUR_API_KEY"
Distance must be greater than the minimum and at most the maximum. The minimum accepts 0–20,000 km (ER0410 if invalid) and must be below the maximum (ER0411).
A minimum alone selects distances beyond it. Coordinates without either distance bound return ER0412.
How to search inside a bounding box
Use exactly this order: minLat,maxLat,minLng,maxLng:
curl "https://api.apitube.io/v1/news/everything?location.bbox=40.0,45.0,-74.0,-73.0&api_key=YOUR_API_KEY"
Four numbers are required (ER0400). Latitude and longitude ranges return ER0401 or ER0402 when invalid. A minimum greater than its maximum returns ER0403 for latitude or ER0404 for longitude.
A box is a rectangle, rather than a precise city or country boundary.
How to keep only articles that have coordinates
Use coordinate presence without a geographic area:
curl "https://api.apitube.io/v1/news/everything?has_location_geo=1&api_key=YOUR_API_KEY"
has_location_geo=1 selects articles with coordinates; 0 selects those without them. Other values return ER0405.
What do geo coordinates look like in the response?
Inspect locations_mentioned:
{
"locations_mentioned": [
{ "name": "Berlin", "country": "de", "lat": 52.52, "lng": 13.40, "type": "..." }
]
}
Entries describe places associated with the article. Check that lat and lng are populated before mapping them. An article can mention several places.
Which endpoints support geo filtering?
Use geographic conditions on Everything and other news endpoints that support these filters. Local also provides distance-ranked queries. Add language, dates or source conditions as needed:
curl "https://api.apitube.io/v1/news/everything?location.lat=52.52&location.lng=13.40&location.radius=50&language.code=en&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"
See language filters, dates and the parameter reference.
Common Questions
- What units is location.radius in?
- What is the maximum radius I can search?
- Why do I get error ER0406?
- Can I combine geo search with other filters?
What units is location.radius in?
Kilometres, for both minimum and maximum distance.
What is the maximum radius I can search?
20,000 km. The maximum must be positive; a supplied minimum must be non-negative and below the maximum.
Why do I get error ER0406?
A radius search needs both latitude and longitude. Send both with valid values.
Can I combine geo search with other filters?
Yes. Conditions combine with AND. See source filtering to select publishers too.