Skip to main content

newsdata-client

Python client for Newsdata API

Installation

Install using pip:

pip install newsdata-client

Usage

Import the client class into your project, and initialize using the api_key.

from newsdata_client import NewsDataClient

news_client = NewsDataClient(api_key="pub_XXXXXXXXXXX")

Endpoints

There are four endpoint functions you can use. You can add keyword arguments for parameters you like. You can read this for more detail on the parameters available for all the endpoints

# Latest news endpoint
response = news_client.latest() 

# Crypto related news endpoint
response = news_client.crypto()

# News archive endpoint, for this endpoint you will have to
# give atleast one parameter, otherwise it will raise NewsDataException
response = news_client.archive(category=["technology"])

# News sources endpoint
response = news_client.sources()

License

This project in under MIT License

Metadata

Release files for newsdata-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for newsdata-client 0.1.0
File Size Uploaded
newsdata_client-0.1.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for newsdata-client 0.1.0
File Interpreter ABI Platform
newsdata_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / newsdata_client-0.1.0.tar.gz

Download URL newsdata_client-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b8e841de2c3e03712327d4dfae198d11bd334e508c934f60bfcf9e68d1d4d7bd
BLAKE2b-256 checksum
How to use checksums
8a03fdc55a68df58998a10f204a4626e69200d298d6df93c03070ddb24ae49f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / newsdata_client-0.1.0-py3-none-any.whl

Download URL newsdata_client-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f27b9f6630f48bb6ef5d800e59254c6e844ed5bff182010854a06a83593edb1c
BLAKE2b-256 checksum
How to use checksums
01fd428747f3f7823ae1c656f8c6e7220f1fe8ae45280d998f108d6656280d93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page