All Projects → mkearney → nytimes

mkearney / nytimes

Licence: other
nytimes: Interacting with New York TImes APIs

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to nytimes

google-photos-api-client-go
Google photos api client in go
Stars: ✭ 35 (+52.17%)
Mutual labels:  api-client
covidviz
Professional visualizations of COVID-19, emulating NYT, The Guardian, Washington Post, The Economist & others, using only Python & Altair.
Stars: ✭ 24 (+4.35%)
Mutual labels:  nytimes
basecampy3
A Python API for Basecamp 3
Stars: ✭ 31 (+34.78%)
Mutual labels:  api-client
InstaLite
Instagram api not official easy-to-use class, minimal number of features
Stars: ✭ 72 (+213.04%)
Mutual labels:  api-client
ksoftapi.py
Official API Wrapper for KSoft.Si API
Stars: ✭ 31 (+34.78%)
Mutual labels:  api-client
buttercms-go
Golang CMS and blog engine https://buttercms.com
Stars: ✭ 37 (+60.87%)
Mutual labels:  api-client
notion-sdk-net
A Notion SDK for .Net
Stars: ✭ 71 (+208.7%)
Mutual labels:  api-client
synadm
Command line admin tool for Synapse (Matrix reference homeserver)
Stars: ✭ 93 (+304.35%)
Mutual labels:  api-client
docker
R Package For Accessing Docker via Docker APIs
Stars: ✭ 23 (+0%)
Mutual labels:  api-client
twinfield
PHP 7.3+ Library for using the Twinfield API.
Stars: ✭ 28 (+21.74%)
Mutual labels:  api-client
SketchwareAPI
Sketchware API Multiplatform Library
Stars: ✭ 26 (+13.04%)
Mutual labels:  api-client
ebics-java-client
Java open source EBICS client - Support for French, German and Swiss banks
Stars: ✭ 30 (+30.43%)
Mutual labels:  api-client
nyxx
Wrapper around Discord API for Dart
Stars: ✭ 217 (+843.48%)
Mutual labels:  api-client
HTTPCalloutFramework
HTTP Callout Framework - A light weight callout framework for apex HTTP callouts in Salesforce
Stars: ✭ 43 (+86.96%)
Mutual labels:  api-client
laravel-tmdb
Interact with TMDB data in your Laravel application.
Stars: ✭ 25 (+8.7%)
Mutual labels:  api-client
pylistenbrainz
A simple ListenBrainz client library for Python
Stars: ✭ 17 (-26.09%)
Mutual labels:  api-client
platformsh-client-php
Platform.sh API client for PHP
Stars: ✭ 24 (+4.35%)
Mutual labels:  api-client
midtrans-python-client
Official Midtrans Payment API Client for Python | https://midtrans.com
Stars: ✭ 24 (+4.35%)
Mutual labels:  api-client
Calendarific
Calendarific holiday sensor for Home Assistant
Stars: ✭ 14 (-39.13%)
Mutual labels:  api-client
apiron
🍳 apiron is a Python package that helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP.
Stars: ✭ 106 (+360.87%)
Mutual labels:  api-client

nytimes

lifecycle

  • R functions for accessing New York Times’ APIs
  • Functionality currently extends to “article search”, “most popular”, and “Times newswire” APIs.

Authorizing API access

## replace x's with nytimes article search API key which
##    you can acquire by visiting the following URL:
##    https://developer.nytimes.com/signup
apikey <- paste0("NYTIMES_KEY=", "xxxxxxxxxxxxxxxxxxxxxxxxxxxx")

## make path to .Renviron
file <- file.path(path.expand("~"), ".Renviron")

## save environment variable
cat(apikey, file = file, append = TRUE, fill = TRUE)

Using nytimes package

Install package

install.packages("devtools")
devtools::install_github("mkearney/nytimes")

Load package

## load nytimes package
library(nytimes)

Examples

Article Search API

## get http response objects for search about sanctions
nytsearch <- nyt_search("sanctions", n = 2000)

## convert response object to data frame
nytsearchdf <- as.data.frame(nytsearch)

## preview data
head(nytsearchdf, 10)

Most Popular API

## get data for most popular stories
nytpop <- nyt_mostpopular(metric = "mostshared",
                          section = "U.S.")

## convert response object to data frame
nytpopdf <- as.data.frame(nytpop)

## preview data
head(nytpopdf)

## get media for each observation
get_media(nytpopdf)

Times Newswire API

## get data from the Times newswire
nytwire <- nyt_timeswire(src = "all",
                         section = "all")

## convert response object to data frame
nytwiredf <- as.data.frame(nytwire)

## preview data
head(nytwiredf)

About

  • These functions were created during the Big Dynamic Data working group sponsored by the Center for Research Methods & Data Analysis at the University of Kansas.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].