Coder Social home page Coder Social logo

nyt-api-reader's Introduction

NYT-API-Reader

Fetch JSON data from the NY Times API, parse, and view on iphones supporting iOS 13 or later. Includes the ability to sort by multiple criteria and bookmark articles that are saved in User Defaults to be loaded upon relaunch.

Preview

Welcome to my NY Times API Reader! This project uses the free NY Times API to read JSON files and display them in a simple format on your iOS device. The user has the ability to view the title, date, and abstract for several articles. Loaded articles can be filtered based on several categories (Most Viewed, Most Shared, Most Emailed) and recent time periods (Last 24 Hours, Last 3 Days, Last 30 Days).

The purpose of building this app was for learning/practicing purposes only. Feel free to fix any bugs, include additional features, or use this as a framework for your project! That being said, make sure to get your own API key for free at the NY Times developer website and follow the instructions below to replace my key with yours. (Each key has a limited amount of calls allowed.)

Disclaimer: This is NOT meant for production, and could possibly provoke legal action from the NY Times if you attempt to make a profit off of the data provided by their free API. Let's not take advantage of companies like the NY Times for giving us wonderful free API's like this.

NY Times API Developer Setup

Visit the NY Times Developer portal to create your free API key: developer.nytimes.com

Get Started link: developer.nytimes.com/get-started

  • Once you get your own API key from the website above, follow the steps below to add it to your project.

Update API Key

  1. Go to DataLoader.swift

  2. Update myKey with your new API key: My-API-Key

Change:

let myKey = ".json?api-key=CjtyVGMUguR6nEVONdDSYVSGNk6rP9uU"

To:

let myKey = ".json?api-key=My-API-Key"

nyt-api-reader's People

Contributors

getyarley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.