- Description
- User Story
- Features of the Application
- Preview of New York Times Article Search
- Links
- Usage
- Built Using
- License
- Questions
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.
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.
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.
The following images demonstrate the application functionality:
The following GIF demonstrates the application functionality, showcasing the application's ability to clear results and specify the number of records to retrieve:
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);
Listed below are the frameworks and guides that made building this article search application possible.:
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.
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.