Skip to content
View newsdataapi's full-sized avatar

Block or report newsdataapi

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.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

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

Report abuse
newsdataapi/README.md

Newsdata.io logo

Newsdata.io

Real-time, historical, crypto, and market news as a developer API.

Website Documentation Free API key

What we ship

The Newsdata.io News API aggregates articles from thousands of publishers across 200+ countries and 75+ languages, exposing real-time, historical, crypto, and market coverage as a single REST endpoint — with consistent schema, language detection, AI tagging, sentiment scoring, and full-text search.

These repos are the official open-source clients that make calling the API easy from your stack of choice.

Official client libraries

Same retry / pagination / parameter-validation / typed-error story across every language.

Language / Runtime Repo Package
Python python-client newsdataapi on PyPI
Node.js newsdata-nodejs-client newsdata-nodejs-client on npm
React (hooks) newsdata-reactjs-client newsdataapi on npm
PHP php-client newsdataio/newsdataapi on Packagist
Java newsdata-java-sdk io.newsdata:newsdataapi on Maven Central
.NET newsdata-dotnet-sdk Newsdata.Api on NuGet
Go newsdata-go-client pkg.go.dev
Dart / Flutter newsdata-flutter-client newsdataapi on pub.dev

For AI assistants

Tool Repo Distribution
MCP Server — use Newsdata.io from Claude Desktop, Claude Code, Cursor, Zed, Cline, VS Code Copilot, Windsurf, ChatGPT, and any MCP-compatible client newsdata.io-mcp newsdata-mcp on PyPIuvx newsdata-mcp

Free datasets

newsdata.io-free-datasets — curated news datasets in CSV / JSON for ML, NLP, and sentiment analysis. Categories: business, sports, entertainment, health, science & tech, world politics, COVID-19, Ukraine, and more. Released under CC BY 4.0 with rich metadata and AI-extracted annotations (tag, region, org, sentiment) — skip the preprocessing and get straight to your model.

Quickstart

pip install newsdataapi
from newsdataapi import NewsDataApiClient

with NewsDataApiClient("YOUR_API_KEY") as client:
    response = client.latest_api(q="bitcoin", country="us", language="en")
    for article in response["results"]:
        print(article["title"], "-", article["link"])

Pick a different language from the table above for the equivalent quickstart in JS, PHP, Java, .NET, Go, or Dart/Flutter.

Links

Pinned Loading

  1. newsdata.io-mcp newsdata.io-mcp Public

    Official MCP server for the Newsdata.io News API — real-time, historical, crypto, and market news as tools for Claude Desktop, Cursor, Zed, Cline, and any MCP-compatible AI assistant.

    Python

  2. python-client python-client Public

    Official Python client (SDK) for the Newsdata.io News API — fetch real-time, historical, crypto, and stock-market news via REST, with validation, retries, pagination, and typed exceptions.

    Python 15 3

  3. php-client php-client Public

    PHP client library (SDK) for the Newsdata.io News API - fetch real-time, historical, crypto, and stock market news in PHP via simple REST API calls, with built-in parameter validation, retries, and…

    PHP 2

  4. newsdata-nodejs-client newsdata-nodejs-client Public

    Official Node.js client (SDK) for the Newsdata.io News API — fetch real-time, historical, crypto, and stock-market news via REST with validation, retries, pagination, and typed errors

    JavaScript

  5. newsdata-reactjs-client newsdata-reactjs-client Public

    Official React hooks SDK for the Newsdata.io News API — useLatestNews, useCryptoNews, useMarketNews & more with validation, retries, and typed errors.

    JavaScript

  6. newsdata-java-sdk newsdata-java-sdk Public

    Official Java SDK for the Newsdata.io News API — typed methods for real-time, historical, crypto, and market news with validation, retries, and typed errors.

    Java