Skip to main content

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:
Name Description
GetEmailedPeriodJsonOkResponse
GetEmailedPeriodJsonPeriod
GetSharedPeriodJsonOkResponse
GetSharedPeriodJsonPeriod
GetSharedByPeriodShareTypeJsonOkResponse
GetSharedByPeriodShareTypeJsonPeriod
ShareType
GetViewedPeriodJsonOkResponse
GetViewedPeriodJsonPeriod
EmailedArticle
Media
MediaMetadata
SharedArticle
ViewedArticle

License

This SDK is licensed under the MIT License.

See the LICENSE file for more details.

Metadata

Release files for nyt-most-popular 1.0.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 nyt-most-popular 1.0.0
File Size Uploaded Provenance Actions
nyt-most-popular-1.0.0.tar.gz 20.3 kB Without provenance Details for nyt-most-popular-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nyt-most-popular 1.0.0
File Interpreter ABI Platform Actions
nyt_most_popular-1.0.0-py3-none-any.whl Python 3 none any Details for nyt_most_popular-1.0.0-py3-none-any.whl

Total release size: 56.6 kB

Security for nyt-most-popular 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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