Skip to main content

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:
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nyt-most-popular-1.0.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nyt_most_popular-1.0.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page