Skip to content
View newsdatahub's full-sized avatar

Block or report newsdatahub

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
newsdatahub/README.md
NewsDataHub API

NewsDataHub API

Access news data from trusted sources worldwide through a simple REST API. Start exploring with our free news API tier - no credit card required. Visit our main website to learn more about our service.

Academic Use

If you're affiliated with an educational institution and need access to paid account for research purposes, please email us directly:

  • info [at] newsdatahub [dot] com to discuss academic pricing options.

Quick Start

Python

import requests

headers = {
    'X-Api-Key': 'your_api_key_here'
}

response = requests.get('https://api.newsdatahub.com/v1/news', headers=headers)
news_data = response.json()

JavaScript

const axios = require('axios');

const headers = {
    'X-Api-Key': 'your_api_key_here'
};

async function getNews() {
    try {
        const response = await axios.get('https://api.newsdatahub.com/v1/news', { headers });
        console.log(response.data);
    } catch (error) {
        console.error('Error:', error.message);
    }
}

getNews();

Features

  • Multi-regional coverage across 9 countries (US, UK, Canada, Spain, France, Germany, India, Pakistan, Australia)
  • Rich article metadata
  • Simple REST API with standardized JSON responses
  • Free tier with 100 daily requests

Getting Started

  1. Sign up for your free API key
  2. Add the key to your requests using the X-Api-Key header
  3. Start fetching news data!

Documentation

Visit our API Reference for complete documentation. Our documentation includes detailed information about:

  • Authentication
  • Pagination
  • Result filtering options
  • Code samples in Python, Node.js, Go, and Ruby

Example Response

View a sample API response from our paid plan in data.json. This example demonstrates the full range of available fields including sentiment analysis and keyword extraction capabilities.

Popular repositories Loading

  1. news-data-hub-api news-data-hub-api Public

    1

  2. crypto-news-aggregator crypto-news-aggregator Public

    TypeScript 1

  3. newsdatahub newsdatahub Public