/nyt_api

Search for relevant New York Times articles with a query term and year parameters

Primary LanguageJavaScript

New York Times Archive Search

https://stephorpilla.github.io/nyt_api/

This Javascript / jQuery web application allows users to quickly and easily find New York Times articles based on a search term and optional start and end year parameters. Then the application uses the New York Times Article Search API to return the top 10 most relevant article results.

imageedit_2_5416036631

  • All searches require a search term. The NYT API looks for the search term in the headlines, bylines and article bodies of archived articles to return results containing the specific search term.

  • Start year is an optional parameter that restricts responses to results with publication dates of the year specified or later.

  • End year, also an optional parameter, restricts responses to results with publication dates of the year specified or earlier.

Built With

HTML, CSS, JavaScript, jQuery, AJAX requests to the New York Times Article Search API, Bootstrap