Get Free Text Data From The New York Times API

Get Free Text Data For NLP From The New York Times API

The New York Times developer site provides free text data of different types. In this article, we will go through the process of getting the data step by step.

Resources for this post:

  • More video tutorials on NLP
  • More blog posts on NLP
  • If you prefer the video version of the tutorial, please check out the video on YouTube.
Get Text Data from New York Times API –

Step 1: Create an Account And Login

Go to and click Sign In in the upper right corner.

Get Free Text Data From The New York Times API

Click Create an account to sign up with the website.

Fill in the form with the required information, agree to the terms and conditions, and click the Create Account button.

Go to the email address used during the account setup process and confirm the email.

Step 2: Register an App

After creating and confirming the account, go to the sign-in page and enter the credentials.

Click the downward arrow next to the email in the upper right corner and click Apps.

Register a new app by clicking + NEW APP.

Pick an API from the list and enable the API. The status will change to Save to enable. Give the app a name and description and click save.

The App ID and information related to the API Keys are available after saving the new app.

Step 3: Authenticate API

Click APIs in the menu and choose the API for the app created in step 2.

Click AUTHORIZE on the upper right corner.

Select the app name from the dropdown menu and click AUTHORIZE. The API key information will be automatically applied. Click OK and the app is authenticated.

Step 4: Get Text Data from the website user interface

Click the /emailed/{month}.json under PATHS on the left-hand side to get the most emailed articles on Enter the number of months for the New York Times articles on the right-hand side and click EXECUTE. You will get the data for the specified time period.

The execution returns 200 OK on a green bar and all the retrieved data are below the green bar.

For more information about data science and machine learning, please check out my YouTube channel and Medium Page or follow me on LinkedIn.

Recommended For You

Leave a Comment

Your email address will not be published. Required fields are marked *