News API Examples for First Requests
Copy a cURL, Python, or JavaScript example for Latest News or Search, replace YOUR_API_KEY, and inspect the JSON response.
Latest News examples
Use these when your app needs a fresh feed by language, country, category, or source domain.
cURL
curl "https://api.currentsapi.services/v1/latest-news?language=en&page_size=5&apiKey=YOUR_API_KEY"
Python
import requests
response = requests.get(
"https://api.currentsapi.services/v1/latest-news",
params={"language": "en", "page_size": 5, "apiKey": "YOUR_API_KEY"},
)
print(response.json())
JavaScript
fetch("https://api.currentsapi.services/v1/latest-news?language=en&page_size=5&apiKey=YOUR_API_KEY")
.then((response) => response.json())
.then((data) => console.log(data));
Search News examples
Use these when your app needs keyword, topic, source, or date-range discovery.
cURL
curl "https://api.currentsapi.services/v1/search?keywords=technology&language=en&page_size=5&apiKey=YOUR_API_KEY"
Python
import requests
response = requests.get(
"https://api.currentsapi.services/v1/search",
params={"keywords": "technology", "language": "en", "page_size": 5, "apiKey": "YOUR_API_KEY"},
)
print(response.json())
JavaScript
const params = new URLSearchParams({
keywords: "technology",
language: "en",
page_size: "5",
apiKey: "YOUR_API_KEY"
});
fetch(`https://api.currentsapi.services/v1/search?${params}`)
.then((response) => response.json())
.then((data) => console.log(data));
Latest News API
Plan a fresh feed before wiring it into your app.
Search News API
Plan keyword, topic, source, and history workflows.
Pricing and quotas
Compare request limits, history windows, and upgrade paths.
Aggregator tutorial
Turn the first request into a small news feed with filters and publisher links.
Media monitoring tutorial
Search brand, competitor, and campaign coverage with filters and quota planning.