Skip to content

An application that utilizes the New York Times Article API to pull historic articles based on search parameters.

Notifications You must be signed in to change notification settings

rh9891/NewYorkTimesArticleSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New York Times Article Search

License: MIT

Table of Contents

Description

Server-side APIs are an interface often used by companies to allow users a way to interact and gain access to their information. For this article search application, I used the New York Times Article Search API in order to retrieve data to access articles based on the user's search parameters.

The retrieved data from the New York Times Article Search API call - based on a user search term - provided the headline, byline, author, publication date and year, among other details. Using this information, I was able to sift through the JSON object, extract the relevant information to render onto the bottom of the page, and build an application - that is both dynamic and functional - that retrieves a sought number of records for the user.

User Story

AS A user  
I WANT to search the New York Times database for articles using specific parameters  
SO THAT I can retrieve a list of articles to read.

Features of the Application

GIVEN a New York Times article search application with form inputs  
WHEN I search for a term  
THEN I am presented with relevant articles that include the search term.  

WHEN I use the search parameters, such as its start year and its end year,  
THEN I am presented with relevant articles that adhere to the search parameters.

Preview of New York Times Article Search

The following images demonstrate the application functionality:

New York Times Search Preview

Search Parameters Preview

Search Results Preview

The following GIF demonstrates the application functionality, showcasing the application's ability to clear results and specify the number of records to retrieve:

Links

  1. Deployed Application

  2. Github Repository

Usage

The following example of usage displays the use of the ajax call to the New York Times Article Search API to retrieve the JSON object:

var queryURL = buildQueryURL();

$.ajax({
url: queryURL,
method: "GET"
}).then(updatePage);

Built Using

Listed below are the frameworks and guides that made building this article search application possible.:

License

The MIT License (MIT)

Copyright (c) 2020 Romie Hecdivert

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Questions

If you have any questions, comments, or issues regarding this New York Times article search application, please don't hesitate to contact me via Github.

About

An application that utilizes the New York Times Article API to pull historic articles based on search parameters.

Topics

Resources

Stars

Watchers

Forks