https://developer.nytimes.com/docs/most-popular-product/1/overview
library(jsonlite)
library(httr)
library(DT)
We want to retrieve data. To do this, we perform a GET request using the URL and setting the api-key in it. In this case, we want to see data for most popular articles based on views for 1 day, so this is specified as “viewed/1” in the url. We see that the status is 200, and this means that the GET request was successful.
url <- ("https://api.nytimes.com/svc/mostpopular/v2/viewed/1.json?api-key=WbUm7jLMoOppQAB9Sm4wC7A8K9QQUl6P")
r <- GET(url, accept_json())
## Warning in strptime(x, fmt, tz = "GMT"): unknown timezone 'zone/tz/2018i.
## 1.0/zoneinfo/America/New_York'
r
## Response [https://api.nytimes.com/svc/mostpopular/v2/viewed/1.json?api-key=WbUm7jLMoOppQAB9Sm4wC7A8K9QQUl6P]
## Date: 2019-03-31 01:53
## Status: 200
## Content-Type: application/json; charset=UTF-8
## Size: 36.2 kB
Here, we transform the JSON response to a dataframe. Here is what the JSON data looks like as text:
jsonToDf <- fromJSON(content(r, as="text"))
jsonToDf
## $status
## [1] "OK"
##
## $copyright
## [1] "Copyright (c) 2019 The New York Times Company. All Rights Reserved."
##
## $num_results
## [1] 1590
##
## $results
## url
## 1 https://www.nytimes.com/2019/03/28/health/woman-pain-anxiety.html
## 2 https://www.nytimes.com/2019/03/29/world/europe/garfield-phones-france.html
## 3 https://www.nytimes.com/2019/03/29/science/dinosaurs-extinction-asteroid.html
## 4 https://www.nytimes.com/2019/03/29/us/politics/trump-betsy-devos-special-olympics.html
## 5 https://www.nytimes.com/2019/03/28/nyregion/plastic-bag-ban-.html
## 6 https://www.nytimes.com/2019/03/29/us/trump-driver-chauffeur-ice-romania.html
## 7 https://www.nytimes.com/2019/03/29/us/politics/alex-jones-infowars-sandy-hook.html
## 8 https://www.nytimes.com/2019/03/25/smarter-living/why-you-procrastinate-it-has-nothing-to-do-with-self-control.html
## 9 https://www.nytimes.com/interactive/2019/03/29/business/boeing-737-max-8-flaws.html
## 10 https://www.nytimes.com/2019/03/29/sunday-review/biosphere-2-climate-change.html
## 11 https://www.nytimes.com/2019/03/29/style/modern-love-race-i-broke-up-with-her-because-shes-white.html
## 12 https://www.nytimes.com/2019/03/27/magazine/people-dont-bribe-college-officials-to-help-their-kids-they-do-it-to-help-themselves.html
## 13 https://www.nytimes.com/2019/03/29/us/politics/trump-mexico-illegal-immigration.html
## 14 https://www.nytimes.com/2019/03/29/business/boeing-737-max-crash.html
## 15 https://www.nytimes.com/2019/03/30/us/politics/joe-biden-lucy-flores.html
## 16 https://www.nytimes.com/interactive/2019/arts/television/best-drama-series.html
## 17 https://www.nytimes.com/2019/03/29/world/europe/brexit-flowchart-confusion.html
## 18 https://www.nytimes.com/2019/03/30/style/kardashians-interview.html
## 19 https://www.nytimes.com/2019/03/29/nyregion/measles-jewish-community.html
## 20 https://www.nytimes.com/interactive/2019/03/29/briefing/29weeklynewsquiz.html
## adx_keywords
## 1 Pain;Anxiety and Stress;Cameron, Jo;Srivastava, Devjit;British Journal of Anaesthesia;Genetics and Heredity;Opioids and Opiates;Pain-Relieving Drugs;University College London;Scotland
## 2 Garfield (Fictional Character);Maritime Accidents and Safety;Ships and Shipping;Plastics;Water Pollution;Brittany (France)
## 3 Paleontology;Dinosaurs;Fossils;Meteors and Meteorites;North Dakota;Endangered and Extinct Species;Asteroids;Geology;Alvarez, Walter (1940- );DePalma, Robert A;Manning, Phillip L;Proceedings of the National Academy of Sciences;your-feed-science
## 4 Special Olympics;DeVos, Elizabeth (1958- );Education Department (US);Trump, Donald J;Federal Budget (US);United States Politics and Government
## 5 New York State;Plastic Bags;Recalls and Bans of Products;Environment;Cuomo, Andrew M;State Legislatures;Politics and Government;Recycling of Waste Materials
## 6 Tamas, Zoltan;Trump, Donald J;Immigration and Emigration;Foreign Workers;Immigration Detention;Immigration and Customs Enforcement (US);Jupiter (Fla);Mar-a-Lago (Palm Beach, Fla);United States Politics and Government
## 7 Newtown, Conn, Shooting (2012);Sandy Hook Elementary School (Newtown, Conn);School Shootings and Armed Attacks;Cyberharassment;Halbig, Wolfgang;Jones, Alex (1974- );Infowars;Richman, Jeremy (d 2019);Pozner, Leonard;Newtown (Conn);Suits and Litigation (Civil);Libel and Slander
## 8 Procrastination;Emotions;Psychology and Psychologists;Anxiety and Stress;Boredom
## 9 Boeing 737 Max Groundings and Safety Concerns (2019);Aviation Accidents, Safety and Disasters;Boeing Company;Lion Air
## 10 Greenhouse Gas Emissions;Sustainable Living;University of Arizona;Biosphere 2;Bass, Edward P (1945- )
## 11 Dating and Relationships;Blacks;Whites;Race and Ethnicity;Love (Emotion);Social Conditions and Trends;Baldwin, James (1924-87);Coates, Ta-Nehisi;Colombia;Dominican Republic;Los Angeles (Calif);Master of None (TV Program)
## 12 Colleges and Universities;Admissions Standards;Loughlin, Lori;Giannulli, Mossimo;Parenting
## 13 Illegal Immigration;Immigration and Emigration;Trump, Donald J;Mexico;Customs and Border Protection (US);United States International Relations
## 14 Boeing 737 Max Groundings and Safety Concerns (2019);Aviation Accidents, Safety and Disasters;Airlines and Airplanes;Boeing Company;Ethiopian Airlines;Lion Air;Sensors
## 15 Flores, Lucy;New York (Magazine);Biden, Joseph R Jr;Nevada;Politics and Government
## 16 Television;The Sopranos (TV Program);The Americans (TV Program);Adventure Time (TV Program);The Leftovers (TV Program);Lost (TV Program);The West Wing (TV Program);Game of Thrones (TV Program);Deadwood (TV Program);Jane the Virgin (TV Program);Halt and Catch Fire (TV Program);Breaking Bad (TV Program);The Wire (TV Program);Justified (TV Program);The Good Wife (TV Program);Queen Sugar (TV Program);Grey's Anatomy (TV Program);Mad Men (TV Program);Friday Night Lights (TV Program);Gunn, Anna;Beetz, Zazie;Weiner, Matthew (1965- );Lindelof, Damon;Wright, Alison (1976- )
## 17 Referendums;Great Britain Withdrawal from EU (Brexit);Politics and Government;Conservative Party (Great Britain);Great Britain;Europe;May, Theresa M
## 18 Celebrities;Reality Television;Calabasas (Calif);Jenner, Kylie;Jenner, Kendall;Kardashian, Khloe (1984- );Kardashian, Kim;Kardashian, Kourtney (1979- );your-feed-fashion
## 19 Jews and Judaism;Measles;Vaccination and Immunization;Hasidism;Epidemics;Rockland County (NY)
## 20
## column section
## 1 <NA> Health
## 2 <NA> World
## 3 <NA> Science
## 4 <NA> U.S.
## 5 <NA> New York
## 6 <NA> U.S.
## 7 U.S.
## 8 <NA> Smarter Living
## 9 Business
## 10 news analysis Sunday Review
## 11 Modern Love Style
## 12 Screenland Magazine
## 13 <NA> U.S.
## 14 <NA> Business
## 15 <NA> U.S.
## 16 Arts
## 17 <NA> World
## 18 <NA> Style
## 19 <NA> New York
## 20 Briefing
## byline type
## 1 By HEATHER MURPHY Article
## 2 By PALKO KARASZ Article
## 3 By WILLIAM J. BROAD and KENNETH CHANG Article
## 4 By ERICA L. GREEN and MAGGIE HABERMAN Article
## 5 By JESSE McKINLEY Article
## 6 By MIRIAM JORDAN Article
## 7 By ELIZABETH WILLIAMSON Article
## 8 By CHARLOTTE LIEBERMAN Article
## 9 By MIKA GRÖNDAHL, KEITH COLLINS and JAMES GLANZ Interactive
## 10 By CARL ZIMMER Article
## 11 By CHRISTOPHER RIVAS Article
## 12 By AMANDA HESS Article
## 13 By KATIE ROGERS, ZOLAN KANNO-YOUNGS and MICHAEL D. SHEAR Article
## 14 By JAMES GLANZ, THOMAS KAPLAN and JACK NICAS Article
## 15 By MATT STEVENS and SYDNEY EMBER Article
## 16 By THE NEW YORK TIMES Interactive
## 17 By ALLISON McCANN Article
## 18 By AMY CHOZICK Article
## 19 By SARAH MASLIN NIR and MICHAEL GOLD Article
## 20 By CHRIS STANFORD and ANNA SCHAVERIEN Interactive
## title
## 1 At 71, She’s Never Felt Pain or Anxiety. Now Scientists Know Why.
## 2 Why Do Garfield Phones Keep Washing Up on This Beach?
## 3 Fossil Site Reveals Day That Meteor Hit Earth and, Maybe, Wiped Out Dinosaurs
## 4 After Trump Casts Blame for a Special Olympics Cut, Betsy DeVos Flashes Pique
## 5 Plastic Bags to Be Banned in New York; Second Statewide Ban, After California
## 6 Former Trump Family Driver Has Been in ICE Custody for 8 Months
## 7 How Alex Jones and Infowars Helped a Florida Man Torment Sandy Hook Families
## 8 Why You Procrastinate (It Has Nothing to Do With Self-Control)
## 9 The Dangerous Flaws in Boeing’s Automated System
## 10 The Lost History of One of the World’s Strangest Science Experiments
## 11 I Broke Up With Her Because She’s White
## 12 People Don’t Bribe College Officials to Help Their Kids. They Do It to Help Themselves.
## 13 Trump Directs State Dept. to End Aid to 3 Central American Countries
## 14 In Ethiopia Crash, Faulty Sensor on Boeing 737 Max Is Suspected
## 15 Joe Biden Accused of Touching and Kissing Nevada Democrat at 2014 Rally
## 16 The 20 Best TV Dramas Since ‘The Sopranos’
## 17 The Man Trying to Make Sense of Brexit Is Tired and Would Like to Stop Now
## 18 Keeping Up With the Kardashian Cash Flow
## 19 An Outbreak Spreads Fear: Of Measles, of Ultra-Orthodox Jews, of Anti-Semitism
## 20 News Quiz: Test Your Knowledge of the Week’s Headlines
## abstract
## 1 Scientists discovered a previously unidentified genetic mutation in a Scottish woman. They hope it could lead to the development of new pain treatment.
## 2 Bright orange plastic novelty phones, shaped like Garfield, the grumpy cartoon cat, have littered French shores for decades. Nobody knew why, until a group of volunteers followed a tip.
## 3 A jumble of entombed plants and creatures offers a vivid glimpse of the apocalypse that all but ended life 66 million years ago.
## 4 Education Secretary Betsy DeVos had dutifully defended the elimination of federal grants for the Special Olympics until President Trump blamed her for the proposal.
## 5 State lawmakers and Gov. Andrew Cuomo have agreed to ban most single-use plastic bags; counties will have the option to impose a 5-cent paper-bag fee.
## 6 A chauffeur who for years drove President Trump’s family and staff in Florida has been detained under the president’s immigration crackdown.
## 7 Mr. Jones and Infowars gave Wolfgang Halbig airtime, a camera crew and help raising money to harass Sandy Hook shooting victims’ parents.
## 8 If procrastination isn’t about laziness, then what is it about?
## 9 Here’s why a system designed to stabilize the 737 Max may have caused two deadly crashes in five months.
## 10 The hummingbirds were dying. Cockroaches were everywhere. And then Steve Bannon showed up.
## 11 When it comes to dating, I’d rather not think about race. But that’s been hard to avoid.
## 12 At least one of the students whose parents stand accused of fraud doesn’t appear to have been very interested in higher education in the first place.
## 13 The move to punish Guatemala, Honduras and El Salvador came after President Trump said there would be a “very good likelihood” that he would seal off the United States border with Mexico next week.
## 14 As in the Lion Air disaster, investigators believe an automated system on the doomed Ethiopian Airlines flight was set off by erroneous readings.
## 15 Lucy Flores, a former Nevada state assemblywoman, wrote about the episode in an essay. A spokesman for Mr. Biden said the former vice president did not recall what she described.
## 16 It’s been 20 years since those ducks landed in Tony’s pool. A flock of extraordinary shows followed. These are the best dramas since 1999.
## 17 Jon Worth’s meticulous Brexit flowcharts attempt to chart every possibility. But the task is basically impossible.
## 18 Are Kourtney, Kim, Khloé, Kendall and Kylie America’s savviest C.E.O.s?
## 19 A measles outbreak in a New York suburb has sickened scores of people and stoked long-smoldering tensions between the ultra-Orthodox Jewish community and the secular world at large.
## 20 Did you stay up to date this week? Take our quiz to find out.
## published_date source id asset_id views
## 1 2019-03-28 The New York Times 1e+14 1e+14 1
## 2 2019-03-29 The New York Times 1e+14 1e+14 2
## 3 2019-03-29 The New York Times 1e+14 1e+14 3
## 4 2019-03-29 The New York Times 1e+14 1e+14 4
## 5 2019-03-28 The New York Times 1e+14 1e+14 5
## 6 2019-03-29 The New York Times 1e+14 1e+14 6
## 7 2019-03-29 The New York Times 1e+14 1e+14 7
## 8 2019-03-25 The New York Times 1e+14 1e+14 8
## 9 2019-03-29 The New York Times 1e+14 1e+14 9
## 10 2019-03-29 The New York Times 1e+14 1e+14 10
## 11 2019-03-29 The New York Times 1e+14 1e+14 11
## 12 2019-03-27 The New York Times 1e+14 1e+14 12
## 13 2019-03-29 The New York Times 1e+14 1e+14 13
## 14 2019-03-29 The New York Times 1e+14 1e+14 14
## 15 2019-03-30 The New York Times 1e+14 1e+14 15
## 16 2019-01-10 The New York Times 1e+14 1e+14 16
## 17 2019-03-29 The New York Times 1e+14 1e+14 17
## 18 2019-03-30 The New York Times 1e+14 1e+14 18
## 19 2019-03-29 The New York Times 1e+14 1e+14 19
## 20 2019-03-29 The New York Times 1e+14 1e+14 20
## des_facet
## 1 ANXIETY AND STRESS, GENETICS AND HEREDITY, OPIOIDS AND OPIATES, PAIN-RELIEVING DRUGS
## 2 GARFIELD (FICTIONAL CHARACTER), MARITIME ACCIDENTS AND SAFETY, SHIPS AND SHIPPING, PLASTICS
## 3 PALEONTOLOGY, DINOSAURS, ASTEROIDS, GEOLOGY, YOUR-FEED-SCIENCE
## 4 FEDERAL BUDGET (US), UNITED STATES POLITICS AND GOVERNMENT
## 5 PLASTIC BAGS, ENVIRONMENT, STATE LEGISLATURES, POLITICS AND GOVERNMENT
## 6 IMMIGRATION AND EMIGRATION
## 7 NEWTOWN, CONN, SHOOTING (2012), SCHOOL SHOOTINGS AND ARMED ATTACKS, CYBERHARASSMENT
## 8 PROCRASTINATION, PSYCHOLOGY AND PSYCHOLOGISTS, ANXIETY AND STRESS
## 9 BOEING 737 MAX GROUNDINGS AND SAFETY CONCERNS (2019), AVIATION ACCIDENTS, SAFETY AND DISASTERS
## 10
## 11 BLACKS, WHITES, RACE AND ETHNICITY
## 12 COLLEGES AND UNIVERSITIES, ADMISSIONS STANDARDS, PARENTING
## 13 ILLEGAL IMMIGRATION, IMMIGRATION AND EMIGRATION, UNITED STATES INTERNATIONAL RELATIONS
## 14 BOEING 737 MAX GROUNDINGS AND SAFETY CONCERNS (2019), AVIATION ACCIDENTS, SAFETY AND DISASTERS, AIRLINES AND AIRPLANES, SENSORS
## 15 POLITICS AND GOVERNMENT
## 16 TELEVISION
## 17 REFERENDUMS, GREAT BRITAIN WITHDRAWAL FROM EU (BREXIT), POLITICS AND GOVERNMENT
## 18 CELEBRITIES, YOUR-FEED-FASHION
## 19 JEWS AND JUDAISM, MEASLES, VACCINATION AND IMMUNIZATION
## 20
## org_facet
## 1 PAIN, BRITISH JOURNAL OF ANAESTHESIA, UNIVERSITY COLLEGE LONDON
## 2 WATER POLLUTION
## 3 FOSSILS, METEORS AND METEORITES, ENDANGERED AND EXTINCT SPECIES, PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES
## 4 SPECIAL OLYMPICS, EDUCATION DEPARTMENT (US)
## 5 RECALLS AND BANS OF PRODUCTS, RECYCLING OF WASTE MATERIALS
## 6 FOREIGN WORKERS, IMMIGRATION DETENTION, IMMIGRATION AND CUSTOMS ENFORCEMENT (US), MAR-A-LAGO (PALM BEACH, FLA), UNITED STATES POLITICS AND GOVERNMENT
## 7 SANDY HOOK ELEMENTARY SCHOOL (NEWTOWN, CONN), INFOWARS, SUITS AND LITIGATION (CIVIL), LIBEL AND SLANDER
## 8 EMOTIONS, BOREDOM
## 9 BOEING COMPANY, LION AIR
## 10 GREENHOUSE GAS EMISSIONS, SUSTAINABLE LIVING, UNIVERSITY OF ARIZONA
## 11 DATING AND RELATIONSHIPS, LOVE (EMOTION), SOCIAL CONDITIONS AND TRENDS
## 12
## 13 CUSTOMS AND BORDER PROTECTION (US)
## 14 BOEING COMPANY, ETHIOPIAN AIRLINES, LION AIR
## 15 NEW YORK (MAGAZINE)
## 16
## 17 CONSERVATIVE PARTY (GREAT BRITAIN)
## 18 REALITY TELEVISION
## 19 HASIDISM, EPIDEMICS
## 20
## per_facet
## 1 CAMERON, JO, SRIVASTAVA, DEVJIT
## 2
## 3 ALVAREZ, WALTER (1940- ), DEPALMA, ROBERT A, MANNING, PHILLIP L
## 4 DEVOS, ELIZABETH (1958- ), TRUMP, DONALD J
## 5 CUOMO, ANDREW M
## 6 TAMAS, ZOLTAN, TRUMP, DONALD J
## 7 HALBIG, WOLFGANG, JONES, ALEX (1974- ), RICHMAN, JEREMY (D 2019), POZNER, LEONARD
## 8
## 9
## 10 BASS, EDWARD P (1945- )
## 11 BALDWIN, JAMES (1924-87), COATES, TA-NEHISI
## 12 LOUGHLIN, LORI, GIANNULLI, MOSSIMO
## 13 TRUMP, DONALD J
## 14
## 15 FLORES, LUCY, BIDEN, JOSEPH R JR
## 16 GUNN, ANNA, BEETZ, ZAZIE, WEINER, MATTHEW (1965- ), LINDELOF, DAMON, WRIGHT, ALISON (1976- )
## 17 MAY, THERESA M
## 18 JENNER, KYLIE, JENNER, KENDALL, KARDASHIAN, KHLOE (1984- ), KARDASHIAN, KIM, KARDASHIAN, KOURTNEY (1979- )
## 19
## 20
## geo_facet
## 1 SCOTLAND
## 2 BRITTANY (FRANCE)
## 3 NORTH DAKOTA
## 4
## 5 NEW YORK STATE
## 6 JUPITER (FLA)
## 7 NEWTOWN (CONN)
## 8
## 9
## 10
## 11 COLOMBIA, DOMINICAN REPUBLIC, LOS ANGELES (CALIF)
## 12
## 13 MEXICO
## 14
## 15 NEVADA
## 16
## 17 GREAT BRITAIN, EUROPE
## 18 CALABASAS (CALIF)
## 19 ROCKLAND COUNTY (NY)
## 20
## media
## 1 image, photo, Jo Cameron, 71, has a rare gene mutation that scientists believe inhibits her from feeling pain or anxiety., Mary Turner for The New York Times, 1, https://static01.nyt.com/images/2019/03/27/science/27xp-nopain/27xp-nopain-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/27/science/27xp-nopain/27xp-nopain-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/27/science/27xp-nopain/27xp-nopain-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 2 image, photo, Spare parts of plastic Garfield phones were displayed on the beach in Plouarzel, in western France, after being collected from a sea cave by environmental activists., Fred Tanneau/Agence France-Presse — Getty Images, 1, https://static01.nyt.com/images/2019/03/29/world/29france-garfield/29france-garfield-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/world/29france-garfield/merlin_152732157_1da6ec93-b55b-4fb2-ae44-96500f85278c-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/world/29france-garfield/merlin_152732157_1da6ec93-b55b-4fb2-ae44-96500f85278c-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 3 image, photo, A tangled mass of articulated fish fossils uncovered in North Dakota. The site appears to date to the day 66 million years ago when a meteor hit Earth, killing nearly all life on the planet., Robert DePalma/University of Kansas, 1, https://static01.nyt.com/images/2019/03/29/science/29KTDINOSAUR2/merlin_152794626_fef0ebf8-9cb5-4193-9b51-d43de5c70252-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/science/29KTDINOSAUR2/merlin_152794626_fef0ebf8-9cb5-4193-9b51-d43de5c70252-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/science/29KTDINOSAUR2/merlin_152794626_fef0ebf8-9cb5-4193-9b51-d43de5c70252-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 4 image, photo, President Trump’s announcement for funding the Special Olympics left Education Secretary Betsy DeVos taking the fall for a proposed funding cut to the program., Erin Schaff/The New York Times, 1, https://static01.nyt.com/images/2019/03/29/us/politics/29dc-devos/29dc-devos-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/us/politics/29dc-devos/29dc-devos-mediumThreeByTwo210-v2.jpg, https://static01.nyt.com/images/2019/03/29/us/politics/29dc-devos/29dc-devos-mediumThreeByTwo440-v2.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 5 image, photo, The plan would have an additional element allowing counties to opt in to a 5-cent fee on paper bags., Mary Altaffer/Associated Press, 1, https://static01.nyt.com/images/2019/03/29/nyregion/29plasticbag2/28plasticbag2-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/nyregion/29plasticbag2/merlin_152693574_7f99c564-df2f-43e5-a5b1-41c95019d6a3-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/nyregion/29plasticbag2/merlin_152693574_7f99c564-df2f-43e5-a5b1-41c95019d6a3-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 6 image, photo, President Trump’s motorcade arriving at Trump National Golf Club in Jupiter, Fla., in February., Brendan Smialowski/Agence France-Presse — Getty Images, 1, https://static01.nyt.com/images/2019/03/29/us/29driver/29driver-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/us/29driver/merlin_150089772_e00c5fcb-dac9-495a-9d2d-e2c186275b18-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/us/29driver/merlin_150089772_e00c5fcb-dac9-495a-9d2d-e2c186275b18-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 7 image, photo, , Jim Lo Scalzo/EPA, via Shutterstock, 0, https://static01.nyt.com/images/2019/03/29/us/politics/29vid-alexjones-promo/29vid-alexjones-promo-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/us/politics/29vid-alexjones-promo/merlin_148005852_90f07c96-f0af-4215-8784-59d1ee4c589f-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/us/politics/29vid-alexjones-promo/merlin_148005852_90f07c96-f0af-4215-8784-59d1ee4c589f-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 8 image, photo, , Erik Winkowski, 1, https://static01.nyt.com/images/2019/03/25/smarter-living/25sl_procrastination_promo/25sl_procrastination_promo-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/25/smarter-living/25sl_procrastination_promo/25sl_procrastination_promo-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/25/smarter-living/25sl_procrastination_promo/25sl_procrastination_promo-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 9 image, photo, NA, NA, 0, https://static01.nyt.com/images/2019/03/29/business/boeing-737-max-8-flaws-1553903212386/boeing-737-max-8-flaws-1553903212386-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/business/boeing-737-max-8-flaws-1553903212386/boeing-737-max-8-flaws-1553903212386-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/business/boeing-737-max-8-flaws-1553903212386/boeing-737-max-8-flaws-1553903212386-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 10 image, photo, The Biosphere 2 complex in 1991., John Miller/Associated Press, 1, https://static01.nyt.com/images/2019/03/31/sunday-review/31zimmer1/31zimmer1-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/31/sunday-review/31zimmer1/31zimmer1-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/31/sunday-review/31zimmer1/31zimmer1-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 11 image, photo, , Brian Rea, 1, https://static01.nyt.com/images/2019/03/31/fashion/31MODERNLOVE-illo/31MODERNLOVE-illo-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/31/fashion/31MODERNLOVE-illo/31MODERNLOVE-illo-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/31/fashion/31MODERNLOVE-illo/31MODERNLOVE-illo-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 12 image, photo, NA, NA, 0, https://static01.nyt.com/images/2019/03/31/magazine/31mag-screenland/31mag-screenland-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/31/magazine/31mag-screenland/31mag-screenland-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/31/magazine/31mag-screenland/31mag-screenland-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 13 image, photo, President Trump’s move to punish Guatemala, Honduras and El Salvador came after he indicated he could close the United States border with Mexico next week., Doug Mills/The New York Times, 1, https://static01.nyt.com/images/2019/03/29/us/politics/29dc-TRUMP-01/29dc-TRUMP-01-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/us/politics/29dc-TRUMP-01/merlin_152739000_7365789a-a69f-4a0d-a4a2-0ecba5372db6-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/us/politics/29dc-TRUMP-01/merlin_152739000_7365789a-a69f-4a0d-a4a2-0ecba5372db6-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 14 image, photo, The flight data recorders on both planes survived the crashes, allowing investigators to begin piecing together what caused the disasters., Tony Karumba/Agence France-Presse — Getty Images, 1, https://static01.nyt.com/images/2019/03/29/business/29boeing/29boeing-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/business/29boeing/29boeing-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/business/29boeing/29boeing-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 15 image, photo, Lucy Flores and Joseph R. Biden Jr., then the vice president, at a Las Vegas rally in 2014. Ms. Flores has accused Mr. Biden of touching and kissing her without her consent in a recently published essay., Ethan Miller/Getty Images, 1, https://static01.nyt.com/images/2019/03/30/us/30biden-women/merlin_152822334_6c2ce54a-a4f3-425d-ab2e-071ebc8e4226-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/30/us/30biden-women/30biden-women-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/30/us/30biden-women/30biden-women-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 16 image, photo, , Illustration by Pedro Piccinini. “Breaking Bad,” AMC., 0, https://static01.nyt.com/images/2019/01/09/arts/television/besttv-breakingbad/besttv-breakingbad-thumbStandard.png, https://static01.nyt.com/images/2019/01/09/arts/television/besttv-breakingbad/besttv-breakingbad-mediumThreeByTwo210.png, https://static01.nyt.com/images/2019/01/09/arts/television/besttv-breakingbad/besttv-breakingbad-mediumThreeByTwo440.png, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 17 image, photo, , Jon Worth, 0, https://static01.nyt.com/images/2019/03/29/world/europe/29flowcharts-1better/29flowcharts-1better-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/29/world/europe/29flowcharts-1better/29flowcharts-1better-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/29/world/europe/29flowcharts-1better/29flowcharts-1better-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 18 image, photo, , Photo Illustration by The New York Times; Getty Images, 1, https://static01.nyt.com/images/2019/03/28/style/31kardashian-face/XX-kardashian-face-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/28/style/31kardashian-face/XX-kardashian-face-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/28/style/31kardashian-face/XX-kardashian-face-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 19 image, photo, In Rockland County, children under 18 who have not been vaccinated against measles are barred from public places., Gregg Vigliotti for The New York Times, 1, https://static01.nyt.com/images/2019/03/30/nyregion/30MEASLES1/28measles4-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/30/nyregion/30MEASLES1/28measles4-mediumThreeByTwo210-v2.jpg, https://static01.nyt.com/images/2019/03/30/nyregion/30MEASLES1/28measles4-mediumThreeByTwo440-v2.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## 20 image, photo, Robert Mueller and his wife, Ann Standish, last Sunday., Tasos Katopodis/Getty Images, 1, https://static01.nyt.com/images/2019/03/24/us/29newsquiz-mueller/24dc-briefing-1-thumbStandard.jpg, https://static01.nyt.com/images/2019/03/24/us/29newsquiz-mueller/merlin_152554800_a0454f46-7780-4cf5-b99f-2033dc6d98b1-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2019/03/24/us/29newsquiz-mueller/merlin_152554800_a0454f46-7780-4cf5-b99f-2033dc6d98b1-mediumThreeByTwo440.jpg, Standard Thumbnail, mediumThreeByTwo210, mediumThreeByTwo440, 75, 140, 293, 75, 210, 440
## uri
## 1 nyt://article/02e0395b-1496-540a-8e5f-6687a52a6fca
## 2 nyt://article/325660ae-1b6e-5e0d-bb5d-9546bc3580b9
## 3 nyt://article/cf688ac0-76f6-5450-a3e8-481a5efd4a47
## 4 nyt://article/3ebe0a81-612f-5ef6-ba8a-36fe98cfa910
## 5 nyt://article/f9e08668-145a-5437-8b8d-a9ca702bcdd1
## 6 nyt://article/62c6d40e-d5a5-5faa-bc8c-e9e80deddadb
## 7 nyt://article/23b381e1-c299-55f1-ada1-b9eaa132df70
## 8 nyt://article/166a9d7f-8edd-5ae8-88e5-30a6e80e646e
## 9 nyt://interactive/1bf5fa86-9c81-54d8-92b3-9ab3876cefdd
## 10 nyt://article/5ce9cefb-fadf-5e01-bb8a-0267160af49b
## 11 nyt://article/b1b8331d-ecfc-5f3b-8a1e-25ec3d6bb789
## 12 nyt://article/6abcdabc-9a89-5783-84a2-1301a3ccaf3b
## 13 nyt://article/f9e85de3-52ba-59fc-8d78-92b3277b6d44
## 14 nyt://article/9bcbf4c6-c137-5422-9821-ab3840374e07
## 15 nyt://article/5fb24640-1724-5679-aad4-573fec28137c
## 16 nyt://interactive/ecdf0eeb-8049-53a9-abf6-f430eb3f4104
## 17 nyt://article/19c37a3f-93a0-50a9-a085-7742681f64b7
## 18 nyt://article/a39aeb2e-ae77-5cbe-8ce0-3c025250a7f6
## 19 nyt://article/0f5f14c6-a1ea-5663-b632-851148e49411
## 20 nyt://interactive/bfd7c6c5-4e33-5813-91dc-f3c8bfdfdbb2
JSON has key-value pairs. In this case, the key for the data we want to view called “results.” We can call this through the dataframe. Below is the dataframe of the results in a table format:
articleData <- jsonToDf$results
datatable(articleData)