New York Times APIs in R

Loading Packages

I only needed a handful of packages for this assignment. I initially loaded httr, but wound up not needing it. From the last assignment I picked up jsonlite to read and parse and lemon for printing initial results.

library(jsonlite)
library(tidyverse)
## -- Attaching packages --------------------------------------------------------------------------------------------------------------------------------------- tidyverse 1.3.0 --
## v ggplot2 3.3.2     v purrr   0.3.4
## v tibble  3.0.3     v dplyr   1.0.2
## v tidyr   1.1.2     v stringr 1.4.0
## v readr   1.3.1     v forcats 0.5.0
## -- Conflicts ------------------------------------------------------------------------------------------------------------------------------------------ tidyverse_conflicts() --
## x dplyr::filter()  masks stats::filter()
## x purrr::flatten() masks jsonlite::flatten()
## x dplyr::lag()     masks stats::lag()
library(lemon)
## 
## Attaching package: 'lemon'
## The following object is masked from 'package:purrr':
## 
##     %||%
## The following objects are masked from 'package:ggplot2':
## 
##     CoordCartesian, element_render
knit_print.data.frame <- lemon_print

Reading R

It took a minute to understand how the API call should be structured. NYT has good documentation, I discovered, on how API calls are to be formatted. I was really uncomfortable with the notion I would need to publish an API call with the key the Times gave me. So after I got this API working and into a dataframe, I hunted for a solution to hide my key while still using it in the code.

I found a solution to add a line in the R environment naming a variable with my API key. Then I can reference that key, have it all function, but not show it to the entire Internet. Pasting the “root” URL and my key variable together into a the “url” variable did the trick.

Parsing JSON to Data Frame

From assignment 7, I was pleased we’d be working with JSON since I found this the easiest to work with. After using the function fromJSON and piping data.frame afterwards made a data frame that can be edited and used for analysis.

url <- paste0("https://api.nytimes.com/svc/mostpopular/v2/viewed/1.json?api-key=",Sys.getenv("NYT_KEY"))
x <- fromJSON(url, flatten = TRUE) %>% data.frame()

head(x,200)
status copyright num_results results.uri results.url results.id results.asset_id results.source results.published_date results.updated results.section results.subsection results.nytdsection results.adx_keywords results.column results.byline results.type results.title results.abstract results.des_facet results.org_facet results.per_facet results.geo_facet results.media results.eta_id
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/690ea48b-e570-50f2-a724-c6acf4e645db https://www.nytimes.com/2020/10/23/opinion/debate-trump-biden-who-won.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-23 23:48:52 Opinion opinion Presidential Election of 2020;Family Separation Policy (US Immigration);Stimulus (Economic);Federal Taxes (US);Trump Tax Returns;Coronavirus (2019-nCoV);Minimum Wage;Biden, Joseph R Jr;Trump, Donald J;Biden, Hunter;Obama, Barack;Democratic Party;Republican Party;Senate NA By New York Times Opinion Article Biden and Trump’s Final Debate: Who Won? How their last clash looked to Times Opinion writers. Presidential Election of 2020 , Family Separation Policy (US Immigration), Stimulus (Economic) , Federal Taxes (US) , Trump Tax Returns , Coronavirus (2019-nCoV) , Minimum Wage Democratic Party, Republican Party, Senate Biden, Joseph R Jr, Trump, Donald J , Biden, Hunter , Obama, Barack image , photo , , Illustration by The New York Times; photographs by Amr Alfiky/The New York Times , 1 , https://static01.nyt.com/images/2020/10/23/opinion/23scorecard/23scorecard-thumbStandard-v2.jpg , https://static01.nyt.com/images/2020/10/23/opinion/23scorecard/23scorecard-mediumThreeByTwo210-v2.jpg, https://static01.nyt.com/images/2020/10/23/opinion/23scorecard/23scorecard-mediumThreeByTwo440-v2.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/2c7bc6bb-c381-59a7-b378-734557c108c2 https://www.nytimes.com/2020/10/22/us/politics/debate-presidential-recap.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 12:13:09 U.S. Politics u.s. Presidential Election of 2020;Debates (Political);Biden, Joseph R Jr;Trump, Donald J;Welker, Kristen (1976- ) NA By Alexander Burns and Jonathan Martin Article In Calmer Debate, Biden and Trump Offer Sharply Different Visions for Nation In a more restrained appearance, President Trump depicted Joseph R. Biden Jr. as an ineffectual Washington insider. Mr. Biden accused the president of heartlessness for separating migrant families and inflaming racial tensions. Presidential Election of 2020, Debates (Political) Biden, Joseph R Jr , Trump, Donald J , Welker, Kristen (1976- ) NULL 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/23cb4067-3b9f-526f-86e3-5c117871c8e8 https://www.nytimes.com/2020/10/23/us/politics/who-won-debate.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-23 18:36:12 U.S. Politics u.s. Debates (Political);Presidential Election of 2020;Polls and Public Opinion;Conservatism (US Politics);Liberalism (US Politics);Biden, Joseph R Jr;Trump, Donald J NA By Jeremy W. Peters and Isabella Grullón Paz Article Who Won the Debate? Political Observers Weigh In Grading on a curve, political experts said President Trump did not hurt himself. But they said neither did Joe Biden, and that may be all that matters so late in the game. Debates (Political) , Presidential Election of 2020, Polls and Public Opinion , Conservatism (US Politics) , Liberalism (US Politics) Biden, Joseph R Jr, Trump, Donald J image , photo , A watch party in Haddonfield, N.J., for the final presidential debate. , Michelle Gustafson for The New York Times , 1 , https://static01.nyt.com/images/2020/10/23/us/politics/23debate-whowon/23debate-whowon-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/23/us/politics/23debate-whowon/merlin_178919019_6f7459d6-c5e8-43e4-95a7-d48e0da50ee2-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/23/us/politics/23debate-whowon/merlin_178919019_6f7459d6-c5e8-43e4-95a7-d48e0da50ee2-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/5af64213-9c62-5c5f-b191-0b13b17bcba5 https://www.nytimes.com/2020/10/24/us/politics/ivanka-trump.html 1e+14 1e+14 New York Times 2020-10-24 2020-10-24 21:39:47 U.S. Politics u.s. Presidential Election of 2020;Content Type: Personal Profile;Trump, Ivanka;Wisconsin NA By Mark Leibovich Article While Her Father Rails Against ‘Idiot’ Scientists, Ivanka Trump Talks Ice Cream The first daughter is trying to woo the white suburban female voters who have become her father’s demographic kryptonite. Presidential Election of 2020 , Content Type: Personal Profile Trump, Ivanka Wisconsin image , photo , Ivanka Trump’s campaign persona offers a stark departure from the daily tornado of grievance and belligerence that has marked so much her father’s campaign., Anna Moneymaker/The New York Times , 1 , https://static01.nyt.com/images/2020/10/22/us/politics/00ivanka-1/00ivanka-1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/us/politics/00ivanka-1/merlin_173540859_29145921-1ed2-4a2d-b984-b6cecba1c5bd-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/22/us/politics/00ivanka-1/merlin_173540859_29145921-1ed2-4a2d-b984-b6cecba1c5bd-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/78ef7cbf-6ca2-5930-91e2-7cf61decdea2 https://www.nytimes.com/2020/10/23/health/covid-vaccine-safety.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 11:02:07 Health health Coronavirus (2019-nCoV);Coronavirus Risks and Safety Concerns;Vaccination and Immunization;Clinical Trials;United States Politics and Government;Electronic Health Records;your-feed-healthcare;your-feed-science;Trump, Donald J;Centers for Disease Control and Prevention;Food and Drug Administration;Health and Human Services Department NA By Carl Zimmer Article The Trump Administration Shut a Vaccine Safety Office Last Year. What’s the Plan Now? The office was dedicated to the long-term safety of vaccines. Experts say plans to track coronavirus vaccines are fragmented and “behind the eight ball.” Coronavirus (2019-nCoV) , Coronavirus Risks and Safety Concerns, Vaccination and Immunization , Clinical Trials , United States Politics and Government, Electronic Health Records , your-feed-healthcare , your-feed-science Centers for Disease Control and Prevention, Food and Drug Administration , Health and Human Services Department Trump, Donald J image , photo , President Trump and the Health and Human Services secretary, Alex M. Azar II, who disbanded the National Vaccine Program Office last year., Al Drago for The New York Times , 1 , https://static01.nyt.com/images/2020/10/22/science/22VIRUS-VACCINESAFETY1/22VIRUS-VACCINESAFETY1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/science/22VIRUS-VACCINESAFETY1/22VIRUS-VACCINESAFETY1-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/22/science/22VIRUS-VACCINESAFETY1/22VIRUS-VACCINESAFETY1-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/b1a102d6-f378-5cc4-be3e-412b6217c81a https://www.nytimes.com/2020/10/23/us/trump-taxes-philanthropy.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 17:57:05 U.S. u.s. Philanthropy;Trump Tax Returns;Tax Credits, Deductions and Exemptions;Income Tax;Federal Taxes (US);Presidential Election of 2020;Appraisals and Valuation (Property);Land Use Policies;United States Politics and Government;Trump, Donald J;Trump Organization NA By Susanne Craig, Russ Buettner and Mike McIntire Article Trump’s Philanthropy: Big Tax Write-Offs and Claims That Don’t Always Add Up Hidden financial records cast doubt on a number of his charitable commitments and show that most of his giving came from land deals that offset his income. Philanthropy , Trump Tax Returns , Tax Credits, Deductions and Exemptions, Income Tax , Federal Taxes (US) , Presidential Election of 2020 , Appraisals and Valuation (Property) , Land Use Policies , United States Politics and Government Trump Organization Trump, Donald J image , photo , Donald J. Trump in 2006 with George E. Pataki, then governor of New York. A donation of land he was abandoning helped reduce his tax bill., Librado Romero/The New York Times , 1 , https://static01.nyt.com/images/2020/10/23/multimedia/23trump-charity-1/23trump-charity-1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/23/multimedia/23trump-charity-1/23trump-charity-1-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/23/multimedia/23trump-charity-1/23trump-charity-1-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/fc450ea1-e5eb-551a-8b91-1762dc2c6bf8 https://www.nytimes.com/2020/10/22/us/politics/hunter-biden-laptop.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 06:04:18 U.S. Politics u.s. Presidential Election of 2020;Computers and the Internet;United States Politics and Government;Rumors and Misinformation;Ethics and Official Misconduct;Laptop Computers;Biden, Hunter;Biden, Joseph R Jr;Giuliani, Rudolph W;Trump, Donald J;Federal Bureau of Investigation;New York Post;Burisma Holdings Ltd;Ukraine;Delaware NA By Adam Goldman Article What We Know and Don’t About Hunter Biden and a Laptop President Trump’s allies have promoted claims of corruption aimed at the former vice president’s son in an effort to damage the Biden campaign. Presidential Election of 2020 , Computers and the Internet , United States Politics and Government, Rumors and Misinformation , Ethics and Official Misconduct , Laptop Computers Federal Bureau of Investigation, New York Post , Burisma Holdings Ltd Biden, Hunter , Biden, Joseph R Jr , Giuliani, Rudolph W, Trump, Donald J Ukraine , Delaware image , photo , Former Vice President Joseph R. Biden Jr.’s son Hunter has been the focus of an effort by President Trump’s allies to undermine the Biden campaign., Ruth Fremson/The New York Times , 1 , https://static01.nyt.com/images/2020/10/22/us/politics/22dc-laptop-sub/22dc-laptop-sub-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/us/politics/22dc-laptop-sub/22dc-laptop-sub-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/22/us/politics/22dc-laptop-sub/22dc-laptop-sub-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/589911df-f202-5789-a53d-3842d08401d4 https://www.nytimes.com/2020/10/23/us/covid-worst-day.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 09:00:54 U.S. u.s. Coronavirus (2019-nCoV);Disease Rates;United States NA By Campbell Robertson, Edgar Sandoval, Lucy Tompkins and Simon Romero Article U.S. Sets Coronavirus Case Record Amid New Surge More than 85,000 new cases of the virus were reported across the country on Friday, shattering an earlier single-day record and stirring new fears about the months ahead. Coronavirus (2019-nCoV), Disease Rates United States image , photo , A testing site in The Villages, Fla., on July 16, when the United States set a record of 75,687 new coronavirus cases in a single day. That record was broken on Friday., Eve Edelheit for The New York Times , 1 , https://static01.nyt.com/images/2020/10/21/us/00virus-worstday-2/merlin_174714444_cbffefed-2359-45a2-bbca-2995ec7b131e-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/21/us/00virus-worstday-2/merlin_174714444_cbffefed-2359-45a2-bbca-2995ec7b131e-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/21/us/00virus-worstday-2/merlin_174714444_cbffefed-2359-45a2-bbca-2995ec7b131e-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/81752ec5-53c7-5331-a860-f1bc57f6bc37 https://www.nytimes.com/2020/10/22/business/media/trump-pence-lesley-stahl-60-minutes.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 02:52:59 Business Media business Presidential Election of 2020;Rumors and Misinformation;Television;News and News Media;Stahl, Lesley;Pence, Mike;Trump, Donald J;CBS News NA By Michael M. Grynbaum and Maggie Haberman Article Trump Posts ‘60 Minutes’ Interview After Telling Lesley Stahl: ‘That’s No Way to Talk’ “I feel that you both have insulted ‘60 Minutes’ and me by not answering any of our questions,” Ms. Stahl tells Vice President Mike Pence. Presidential Election of 2020, Rumors and Misinformation , Television , News and News Media CBS News Stahl, Lesley , Pence, Mike , Trump, Donald J image , photo , Lesley Stahl, a “60 Minutes” correspondent since 1991, calmly and firmly asked the president about the coronavirus and other topics, and he grew increasingly irritated., CBS News , 0 , https://static01.nyt.com/images/2020/10/22/business/22trump-60minutes-01/22trump-60minutes-01-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/business/22trump-60minutes-01/22trump-60minutes-01-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/22/business/22trump-60minutes-01/22trump-60minutes-01-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/eb90a456-4564-57bd-a4f3-f65b798fe308 https://www.nytimes.com/2020/10/23/nyregion/ken-kurson-arrest-cyberstalking.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 00:48:27 New York new york Crime and Criminals;Stalking (Crime);Kushner, Jared;Kurson, Ken;Trump, Donald J;Federal Bureau of Investigation;New York Observer NA By Nicole Hong and Jesse Drucker Article Trump Family Ally Is Arrested on Cyberstalking Charge Ken Kurson, a close friend of the president’s son-in-law Jared Kushner, was arrested in connection with incidents stemming from his divorce. Crime and Criminals, Stalking (Crime) Federal Bureau of Investigation, New York Observer Kushner, Jared , Kurson, Ken , Trump, Donald J image , photo , Ken Kurson , J Grassi/Patrick McMullan, via Getty Images , 1 , https://static01.nyt.com/images/2020/10/23/nyregion/23cyberstalk/23cyberstalk-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/23/nyregion/23cyberstalk/23cyberstalk-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/23/nyregion/23cyberstalk/23cyberstalk-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/4bb9db0b-d1bf-5e10-8f44-dce584ab45f0 https://www.nytimes.com/2020/10/22/health/coronavirus-schools-children.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-24 17:57:00 Health health your-feed-science;Coronavirus Reopenings;Education (K-12);Children and Childhood;Disease Rates;Coronavirus (2019-nCoV);Parenting;Deaths (Fatalities);Jenkins, Helen E;Centers for Disease Control and Prevention NA By Apoorva Mandavilli Article Schoolchildren Seem Unlikely to Fuel Coronavirus Surges, Scientists Say Researchers once feared that school reopenings might spread the virus through communities. But so far there is little evidence that it’s happening. your-feed-science , Coronavirus Reopenings , Education (K-12) , Children and Childhood , Disease Rates , Coronavirus (2019-nCoV), Parenting , Deaths (Fatalities) Centers for Disease Control and Prevention Jenkins, Helen E image , photo , Temperature checks at an elementary school in Smithfield, R.I. , David Degner for The New York Times , 1 , https://static01.nyt.com/images/2020/10/22/science/22VIRUS-KIDS1/22VIRUS-KIDS1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/science/22VIRUS-KIDS1/22VIRUS-KIDS1-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/22/science/22VIRUS-KIDS1/22VIRUS-KIDS1-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/ae58efd5-9f34-5047-ac58-5b7d869ac2b1 https://www.nytimes.com/2020/10/22/well/family/coronavirus-symptoms-kids-children-long-hauler.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 15:28:56 Well Family well Coronavirus (2019-nCoV);Pediatric Inflammatory Multisystem Syndrome (PIMS);Children and Childhood;Chronic Condition (Health);Content Type: Service;Migraine Headaches;Parenting;Joints (Body Part) NA By David Tuller Article At 12, She’s a Covid ‘Long Hauler’ Although most young people recover quickly, doctors are seeing some children and teens with lingering fatigue and other chronic problems. Coronavirus (2019-nCoV) , Pediatric Inflammatory Multisystem Syndrome (PIMS), Children and Childhood , Chronic Condition (Health) , Content Type: Service , Migraine Headaches , Parenting , Joints (Body Part) image , photo , Maggie Flannery and both her parents fell ill with Covid-19 symptoms in March, when testing was still scarce. Months later, she’s had to limit her activities and has trouble concentrating., Brittainy Newman for The New York Times , 1 , https://static01.nyt.com/images/2020/10/27/well/21WELL-COVID-KIDS1/21WELL-COVID-KIDS1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/27/well/21WELL-COVID-KIDS1/21WELL-COVID-KIDS1-mediumThreeByTwo210-v2.jpg , https://static01.nyt.com/images/2020/10/27/well/21WELL-COVID-KIDS1/21WELL-COVID-KIDS1-mediumThreeByTwo440-v2.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/255a0035-b94b-5dcc-a15f-e5af1f9054f0 https://www.nytimes.com/2020/10/22/opinion/coronavirus-masks.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 19:26:47 Opinion opinion Coronavirus (2019-nCoV);Masks;Quarantines;Noem, Kristi;Rand, Ayn;Trump, Donald J NA By Paul Krugman Article When Libertarianism Goes Bad Liberty doesn’t mean freedom to infect other people. Coronavirus (2019-nCoV), Masks , Quarantines Noem, Kristi , Rand, Ayn , Trump, Donald J image , photo , , Michael Reynolds/EPA, via Shutterstock , 1 , https://static01.nyt.com/images/2020/10/22/opinion/22krugmanWeb/22krugmanWeb-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/opinion/22krugmanWeb/22krugmanWeb-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/22/opinion/22krugmanWeb/22krugmanWeb-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/9679eb5d-1d4c-577f-81de-636965afc91a https://www.nytimes.com/2020/10/23/us/-murder-hornet-nest-washington.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 15:11:36 U.S. u.s. Hornets (Insects);Insects;Invasive Species;Blaine (Wash);Washington (State) NA By Michael Levenson Article Murder Hornet Nest, First in U.S., Is Discovered in Washington State Officials destroyed the nest in Blaine, Wash., on Saturday before the voracious Asian giant hornets could multiply and lay waste to bees. Hornets (Insects), Insects , Invasive Species Blaine (Wash) , Washington (State) image , photo , Hornets with radio trackers attached led entomologists to the nest. , Washington State Department of Agriculture , 1 , https://static01.nyt.com/images/2020/10/23/lens/23xp-hornetsnest-tracker/23xp-hornetsnest-tracker-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/23/lens/23xp-hornetsnest-tracker/23xp-hornetsnest-tracker-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/23/lens/23xp-hornetsnest-tracker/23xp-hornetsnest-tracker-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/d2be8bd8-58ad-5624-adc9-5a92c379c75f https://www.nytimes.com/2020/10/22/arts/dance/marge-champion-dead.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-22 23:03:24 Arts Dance arts Deaths (Obituaries);Dancing;Actors and Actresses;Movies;Television;Champion, Gower (1919-80);Champion, Marge NA By Robert D. McFadden Article Marge Champion, Dancer, Actor and Choreographer, Dies at 101 She was a model for Disney’s animated heroine in “Snow White and the Seven Dwarfs,” and she and her husband, Gower, epitomized the clean-cut, all-American dance team of Hollywood musicals. Deaths (Obituaries) , Dancing , Actors and Actresses, Movies , Television Champion, Gower (1919-80), Champion, Marge image , photo , , MGM , 0 , https://static01.nyt.com/images/2020/10/23/obituaries/00champion-pix3/00champion-pix3-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/23/obituaries/00champion-pix3/00champion-pix3-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/23/obituaries/00champion-pix3/00champion-pix3-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/b969a41e-464b-5cd1-8725-1a5113f163c5 https://www.nytimes.com/2020/10/23/us/politics/debate-biden-trump.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 00:38:30 U.S. Politics u.s. Presidential Election of 2020;Debates (Political);Biden, Joseph R Jr;Trump, Donald J NA By Shane Goldmacher Article Six Takeaways From the Final Presidential Debate It was an actual debate with real disagreements. President Trump still struggled for an answer on the coronavirus and Joe Biden waved away character attacks with a “Come on, man!” Presidential Election of 2020, Debates (Political) Biden, Joseph R Jr, Trump, Donald J image , photo , President Trump and Joseph R. Biden Jr. face off in the final presidential debate at Belmont University in Nashville. , Amr Alfiky/The New York Times , 1 , https://static01.nyt.com/images/2020/10/23/us/politics/23debate-takeaways1/23debate-takeaways1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/23/us/politics/23debate-takeaways1/merlin_178918854_52709afb-73bf-4aab-9866-e70c5f41efa0-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/23/us/politics/23debate-takeaways1/merlin_178918854_52709afb-73bf-4aab-9866-e70c5f41efa0-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/7e23ce30-346d-5aaf-98c9-c566c74b1d64 https://www.nytimes.com/2020/10/21/science/beetle-uncrushable-ironclad.html 1e+14 1e+14 New York Times 2020-10-21 2020-10-23 09:39:28 Science science Beetles;Skeletons;Anatomy and Physiology;Evolution (Biology);Research;Nature (Journal) NA By Katherine J. Wu Article Meet the Diabolical Ironclad Beetle. It’s Almost Uncrushable. Just about any other living thing would be liquefied at the forces this insect can withstand. Beetles , Skeletons , Anatomy and Physiology, Evolution (Biology) , Research Nature (Journal) image , photo , Phloeodes diabolicus, the ironclad beetle. , David Kisailus , 1 , https://static01.nyt.com/images/2020/10/21/science/21TB-BEETLE1/21TB-BEETLE1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/21/science/21TB-BEETLE1/21TB-BEETLE1-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2020/10/21/science/21TB-BEETLE1/21TB-BEETLE1-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/124c6535-5cc8-51ca-a264-ba0c902e59cf https://www.nytimes.com/2020/10/22/fashion/weddings/grateful-for-a-wedding-in-prison.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 19:03:39 Fashion Love fashion Marriages;Prisons and Prisoners;Coronavirus (2019-nCoV);Weddings and Engagements NA By Jenny Block Article Grateful for a Wedding in Prison Chelsea Moore, a law student, married Christopher Blackwell, who is incarcerated, at the Monroe Correctional Complex in Washington State. He will be released in 2045. Marriages , Prisons and Prisoners , Coronavirus (2019-nCoV) , Weddings and Engagements image , photo , Chelsea Moore and Christopher Blackwell were married Sept. 18 in the visitors’ room at the Washington State Reformatory in the Monroe Correctional Complex, where he is a prisoner., Mark Miller , 0 , https://static01.nyt.com/images/2020/10/25/fashion/weddings/22PrisonWedding-01AA/22PrisonWedding-01AA-thumbStandard-v3.jpg , https://static01.nyt.com/images/2020/10/25/fashion/weddings/22PrisonWedding-01AA/22PrisonWedding-01AA-mediumThreeByTwo210-v4.jpg , https://static01.nyt.com/images/2020/10/25/fashion/weddings/22PrisonWedding-01AA/22PrisonWedding-01AA-mediumThreeByTwo440-v4.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/3190fe6d-e9a0-5d4f-bf8f-6bcfe219356f https://www.nytimes.com/2020/10/22/us/politics/trump-campaign-voter-surveillance.html 1e+14 1e+14 New York Times 2020-10-22 2020-10-23 14:40:04 U.S. Politics u.s. Absentee Voting;Presidential Election of 2020;Surveillance of Citizens by Government;Trump, Donald J;Shapiro, Josh (1973- );Philadelphia (Pa);Pennsylvania NA By Danny Hakim and Nick Corasaniti Article Trump Campaign Draws Rebuke for Surveilling Philadelphia Voters President Trump’s campaign has been videotaping voters at ballot drop boxes, a tactic that could amount to illegal voter intimidation, Pennsylvania’s attorney general says. Absentee Voting , Presidential Election of 2020 , Surveillance of Citizens by Government Trump, Donald J , Shapiro, Josh (1973- ) Philadelphia (Pa), Pennsylvania image , photo , A voter depositing a ballot on Saturday at a drop box in Philadelphia. City officials rejected the Trump campaign’s assertion that the voters whom the campaign had photographed dropping off more than one ballot had necessarily done something improper., Mark Makela/Getty Images , 1 , https://static01.nyt.com/images/2020/10/22/us/politics/00philly-dropboxes-1/00philly-dropboxes-1-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/22/us/politics/00philly-dropboxes-1/merlin_178674540_2214a529-b630-48ef-9af1-c4d413199aee-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/22/us/politics/00philly-dropboxes-1/merlin_178674540_2214a529-b630-48ef-9af1-c4d413199aee-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0
OK Copyright (c) 2020 The New York Times Company. All Rights Reserved. 20 nyt://article/34cf5b15-ba1d-5d3e-a84f-cc8d6d647a6a https://www.nytimes.com/2020/10/23/us/politics/susan-collins-maine-senate.html 1e+14 1e+14 New York Times 2020-10-23 2020-10-24 11:42:18 U.S. Politics u.s. Politics and Government;Polls and Public Opinion;Elections, Senate;United States Politics and Government;Collins, Susan M;Gideon, Sara (1971- );Trump, Donald J;Republican Party;Maine NA By Jonathan Martin Article Susan Collins Hasn’t Changed Much, but Maine Has Democrats are angry with her. Republicans see her as disloyal to the president. Her old-fashioned politics? “I don’t know if people respond as well to that anymore,” said her G.O.P. predecessor in the Senate. Politics and Government , Polls and Public Opinion , Elections, Senate , United States Politics and Government Republican Party Collins, Susan M , Gideon, Sara (1971- ), Trump, Donald J Maine image , photo , Senator Susan Collins campaigning this month in Saco, Me. She faces a tough challenge this year from Sara Gideon, the Democratic speaker of the State House. , Elizabeth Frantz/Reuters , 1 , https://static01.nyt.com/images/2020/10/19/us/politics/00maine-senate/00maine-senate-thumbStandard.jpg , https://static01.nyt.com/images/2020/10/19/us/politics/00maine-senate/merlin_178662339_5addb576-0df7-4b86-b184-a7d71d9a7051-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2020/10/19/us/politics/00maine-senate/merlin_178662339_5addb576-0df7-4b86-b184-a7d71d9a7051-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 0

Conclusions

My chosen API does not have a ton of results, so doing a lot of analysis with it is a bit needless. I went for the most viewed articles in the last 7 days. To no surprise they are mostly politics or COVID related, except for a few articles including one about an extremely tough beetle…

I learned how to hide my API keys, a skill that will likely transfer to other situations. And discovered that once the API structure is understood, pulling others in becomes a pretty straightforward matter.