Provides services for getting the most popular articles on NYTimes.com based on emails, shares, or views.
Project description
NytMostPopular Python SDK 1.0.0
Welcome to the NytMostPopular SDK documentation. This guide will help you get started with integrating and using the NytMostPopular SDK in your project.
Versions
- API version:
2.0.0
- SDK version:
1.0.0
About the API
Provides services for getting the most popular articles on NYTimes.com based on emails, shares, or views. Get most emailed articles for the last day: /emailed/1.json
Get most shared articles on Facebook for the last day: /shared/1/facebook.json
Get most viewed articles for the last seven days: /viewed/7.json
## Example Calls https://api.nytimes.com/svc/mostpopular/v2/emailed/7.json?api-key=yourkey
https://api.nytimes.com/svc/mostpopular/v2/shared/1/facebook.json?api-key=yourkey
https://api.nytimes.com/svc/mostpopular/v2/viewed/1.json?api-key=yourkey
Table of Contents
Setup & Configuration
Supported Language Versions
This SDK is compatible with the following versions: Python >= 3.7
Installation
To get started with the SDK, we recommend installing using pip
:
pip install nyt-most-popular
Services
The SDK provides various services to interact with the API.
Below is a list of all available services with links to their detailed documentation:
Name |
---|
MostPopularService |
Models
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
Below is a list of all available models with links to their detailed documentation:
License
This SDK is licensed under the MIT License.
See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nyt-most-popular-1.0.0.tar.gz
.
File metadata
- Download URL: nyt-most-popular-1.0.0.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a206dd60b28418be81398107b1961a0cc0ea74fc275e185a421b9a3322fb322 |
|
MD5 | bf0342f00d1bc056672a45dbd8acf30c |
|
BLAKE2b-256 | 4c1c65b1c917e3b309bba8ef662c2ad9d267f2100e0bc272f75b92fa7a09f70b |
File details
Details for the file nyt_most_popular-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: nyt_most_popular-1.0.0-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8abc18e52093baa6d465ad4043e409c4a381b5c8c1192bf1b5c8c08313d74f5d |
|
MD5 | 19bcf3aa6d5b2aa16e034a21242d998a |
|
BLAKE2b-256 | 6d651f015bea85c7eb9590b219aeea7ce62fbbd4caba7eb0584d5e0e2ad37265 |