Latest News
Retrieve the most recent news articles with optional filtering. Updated every 60 seconds.
GET/v1/latest-news
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| language | string | Optional | ISO 639-1 language code (e.g., “en”, “es”, “fr”). |
| country | string | Optional | ISO 3166-1 alpha-2 country code (e.g., “us”, “gb”). |
| category | string | Optional | Filter by category: technology, business, science, health, sports, entertainment, politics, world. |
| page_size | integer | Optional | Number of results per page (1-200). Default: 10. |
| page | integer | Optional | Page number for pagination. Default: 1. |
Example Request
Get latest technology newsbash
curl -X GET "https://api.newsapi.dev/v1/latest-news?language=en&category=technology&page_size=5" \
-H "X-API-Key: your_api_key_here"Example Response
Responsejson
{
"status": "ok",
"total_hits": 89432,
"page": 1,
"page_size": 5,
"articles": [
{
"title": "Breakthrough in Quantum Computing Achieved at MIT",
"description": "Researchers at MIT have demonstrated a 1000-qubit quantum processor with error rates below the threshold for practical applications.",
"content": "In a landmark achievement for quantum computing...",
"url": "https://www.nature.com/articles/quantum-2025",
"image": "https://www.nature.com/images/quantum-chip.jpg",
"author": "Dr. James Liu",
"source": {
"id": "nature",
"name": "Nature",
"url": "https://www.nature.com"
},
"category": "technology",
"language": "en",
"country": "us",
"published_at": "2025-01-15T16:45:00Z"
}
]
}Notes
- -Articles are sorted by publication date in descending order (newest first).
- -The data is refreshed every 60 seconds from all active sources.
- -If no filters are specified, articles from all categories, languages, and countries are returned.
- -The maximum page_size depends on your plan. Free: 20, Builder: 50, Professional: 100, Enterprise: 200.