π Documentation & Examples
Everything you need to integrate with World News API
π Quick Start Examples
// World News API API Example
const response = await fetch('https://worldnewsapi.com/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
World News API
Access worldwide news data programmatically with the World News API. Get breaking news, search articles, and stay updated with global events.
Key Features:
- Global News Coverage - Access news from sources worldwide
- Search & Filter - Find articles by keywords, categories, and sources
- Real-time Updates - Get the latest breaking news as it happens
- Multi-language Support - News in various languages
- Structured Data - Clean, structured JSON responses
Example Usage:
const axios = require('axios');
async function getWorldNews(query) {
try {
const response = await axios.get('https://api.worldnewsapi.com/search-news', {
params: {
text: query,
language: 'en',
number: 10
},
headers: {
'X-API-KEY': 'YOUR_API_KEY'
}
});
return response.data.news;
} catch (error) {
console.error('Failed to fetch news:', error);
}
}
// Usage
getWorldNews('technology');
π Explore the API
Performance & Stats
π 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes