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 -H "Authorization: Bearer YOUR_API_KEY" "https://api.currentsapi.services/v1/latest-news?language=en&page_size=5"
Python
import requests
response = requests.get(
"https://api.currentsapi.services/v1/latest-news",
params={"language": "en", "page_size": 5},
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
print(response.json())
JavaScript
fetch("https://api.currentsapi.services/v1/latest-news?language=en&page_size=5", {
headers: { Authorization: "Bearer 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 -H "Authorization: Bearer YOUR_API_KEY" "https://api.currentsapi.services/v1/search?keywords=technology&language=en&page_size=5"
Python
import requests
response = requests.get(
"https://api.currentsapi.services/v1/search",
params={"keywords": "technology", "language": "en", "page_size": 5},
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
print(response.json())
JavaScript
const params = new URLSearchParams({
keywords: "technology",
language: "en",
page_size: "5"
});
fetch(`https://api.currentsapi.services/v1/search?${params}`, {
headers: { Authorization: "Bearer YOUR_API_KEY" }
})
.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.
RAG and LLM tutorial
Choose Search or Latest News for model context, source links, and freshness windows.