library(httr)
library(jsonlite)
library(RCurl)
## Loading required package: bitops
url <- GET("https://api.nytimes.com/svc/movies/v2/reviews/search.json", query = list(api_key = "7e8654952a3c4cec89499e585add2f37"))
url
## Response [https://api.nytimes.com/svc/movies/v2/reviews/search.json?api_key=7e8654952a3c4cec89499e585add2f37]
## Date: 2017-10-29 23:34
## Status: 200
## Content-Type: application/json; charset=UTF-8
## Size: 16.2 kB
df <- fromJSON("https://api.nytimes.com/svc/movies/v2/reviews/search.json?api_key=7e8654952a3c4cec89499e585add2f37")
df
## $status
## [1] "OK"
##
## $copyright
## [1] "Copyright (c) 2017 The New York Times Company. All Rights Reserved."
##
## $has_more
## [1] TRUE
##
## $num_results
## [1] 20
##
## $results
## display_title mpaa_rating critics_pick
## 1 Bill Nye: Science Guy 1
## 2 Félicité 1
## 3 The Square R 0
## 4 Suburbicon R 0
## 5 Maya Dardel 0
## 6 Crash Pad R 0
## 7 Novitiate R 0
## 8 Mully 0
## 9 All I See Is You R 0
## 10 Thank You for Your Service R 0
## 11 The Divine Order 0
## 12 The Work 0
## 13 Joan Didion: The Center Will Not Hold 1
## 14 God's Own Country 1
## 15 Geostorm PG-13 0
## 16 Tyler Perry's Boo 2! A Madea Halloween PG-13 0
## 17 BPM (Beats Per Minute) 1
## 18 Wonderstruck PG 1
## 19 Only the Brave PG-13 1
## 20 Aida's Secrets 1
## byline
## 1 ANDY WEBSTER
## 2 GLENN KENNY
## 3 A.O. SCOTT
## 4 MANOHLA DARGIS
## 5 TEO BUGBEE
## 6 MONICA CASTILLO
## 7 A.O. SCOTT
## 8 KEN JAWOROWSKI
## 9 JEANNETTE CATSOULIS
## 10 BEN KENIGSBERG
## 11 BEN KENIGSBERG
## 12 JEANNETTE CATSOULIS
## 13 GLENN KENNY
## 14 JEANNETTE CATSOULIS
## 15 A. O. SCOTT
## 16 GLENN KENNY
## 17 A. O. SCOTT
## 18 MANOHLA DARGIS
## 19 ANDY WEBSTER
## 20 DANIEL M. GOLD
## headline
## 1 Review: ‘Bill Nye: Science Guy,’ a Portrait of a Fighter for Facts
## 2 Review: In ‘Félicité,’ a Mother Scrambles to Save Her Son
## 3 Review: ‘The Square’ Takes Aim at Art, Sex, Money and More
## 4 Review: Glib Laughs and Race Hate in ‘Suburbicon’
## 5 Review: Lena Olin Is Fierce as a Suicidal Poet in ‘Maya Dardel’
## 6 Review: Two Unlikely Roommates Share Heartbreak in ‘Crash Pad’
## 7 Review: ‘Novitiate’ Shares a Young Nun’s Emotional Story
## 8 Review: ‘Mully’ Is a Man Dedicated to Saving Kenya’s Orphans
## 9 Review: In ‘All I See Is You,’ Sight Is Restored and a Marriage Rocked
## 10 Review: In ‘Thank You for Your Service,’ the War at Home
## 11 Review: ‘The Divine Order’ Recalls the Fight for Women’s Suffrage in Switzerland
## 12 Review: In Folsom State Prison, ‘The Work’ Sets You Free
## 13 Review: A ‘Joan Didion’ Portrait, From an Intimate Source
## 14 Review: Love Is Wild, if Not Pretty, in ‘God’s Own Country’
## 15 Review: In ‘Geostorm,’ Gerard Butler (and His Stubble) Save the Planet
## 16 Review: A Case of Déjà Vu in ‘Tyler Perry’s Boo 2! A Madea Halloween’
## 17 Review: ‘BPM (Beats Per Minute)’ Captures the Fierce AIDS Fight
## 18 Review: ‘Wonderstruck,’ Todd Haynes’s Imitations of Life
## 19 Review: ‘Only the Brave’ Is an Inspiring Tale of Firefighter Sacrifice
## 20 Review: Uncovering a Displaced Family’s Past in ‘Aida’s Secrets’
## summary_short
## 1 This revealing documentary follows Mr. Nye as he crusades on behalf of space exploration and against creationists and climate-change deniers.
## 2 Set in the Democratic Republic of Congo, this film resists the race-against-the-clock trap, instead bringing several illuminating, moving surprises.
## 3 This Swedish satire from Ruben Ostlund, the director of “Force Majeure,” won the top prize at Cannes.
## 4 George Clooney stays off camera to direct Matt Damon and Julianne Moore in a caustic comedy about the good old American days of fear, hate and rage.
## 5 A character who wants to play with power in a movie that reeks of scholarly pretension.
## 6 A slacker, his lover and his lover’s husband make a sticky love triangle in this awkward comedy.
## 7 A novice struggles with her own faith in a changing church in this film, written and directed by Maggie Betts.
## 8 A documentary looks at Charles Mully, who gave up great wealth to aid the poor and homeless in his country.
## 9 This psychodrama from Marc Forster stars Blake Lively and Jason Clarke as a seemingly happy married couple.
## 10 The film, from the screenwriter of “American Sniper,” is an earnest and powerful drama about Iraq veterans returning to Kansas.
## 11 Set in 1971, Petra Volpe’s film takes a middlebrow, mildly rollicking approach toward a serious subject.
## 12 The film documents four days of punishing group therapy in prison.
## 13 This documentary is directed by Griffin Dunne, Ms. Didion’s nephew, a relationship that limits the movie in certain ways, but opens it up in others.
## 14 This feature debut of the writer and director Francis Lee is a bracing, sometimes brutal movie.
## 15 In this action film, the world is threatened by a space-based weather-control system armed with ice, fire, hail and heavy rain.
## 16 In this sequel that feels like a remake, all prospects for amusement are never even vaguely realized.
## 17 This passionate historical drama from Robin Campillo follows young French activists through an emotional battle for respect and care.
## 18 Mr. Haynes’s lovely adaptation of Brian Selznick’s book centers on a girl in the 1920s and a boy in the ’70s whose lives are mysteriously connected.
## 19 This action drama from Joseph Kosinski — about the Granite Mountain Hotshots of Prescott, Ariz. — offers some real feeling under a schematic surface.
## 20 This documentary follows Izak Szewelewicz, who was sent to Israel as a toddler after World War II, on a search for the brother he didn’t know he had.
## publication_date opening_date date_updated link.type
## 1 2017-10-26 <NA> 2017-10-29 16:44:30 article
## 2 2017-10-26 <NA> 2017-10-29 16:44:28 article
## 3 2017-10-26 <NA> 2017-10-29 16:44:34 article
## 4 2017-10-26 2017-10-27 2017-10-29 16:44:33 article
## 5 2017-10-26 2017-10-27 2017-10-29 16:44:33 article
## 6 2017-10-26 2017-09-26 2017-10-29 16:44:32 article
## 7 2017-10-26 <NA> 2017-10-29 16:44:32 article
## 8 2017-10-26 2017-10-27 2017-10-29 16:44:31 article
## 9 2017-10-26 2017-10-27 2017-10-29 16:44:31 article
## 10 2017-10-26 2017-10-27 2017-10-29 16:44:30 article
## 11 2017-10-26 2017-10-27 2017-10-29 16:44:29 article
## 12 2017-10-26 <NA> 2017-10-29 16:44:29 article
## 13 2017-10-24 2017-10-27 2017-10-24 19:16:02 article
## 14 2017-10-24 2017-10-25 2017-10-29 16:44:27 article
## 15 2017-10-20 2017-10-20 2017-10-29 16:44:27 article
## 16 2017-10-20 2017-10-20 2017-10-29 16:44:26 article
## 17 2017-10-19 <NA> 2017-10-29 16:44:25 article
## 18 2017-10-19 2017-10-20 2017-10-29 16:44:25 article
## 19 2017-10-19 2017-10-20 2017-10-29 16:44:24 article
## 20 2017-10-19 2017-10-20 2017-10-29 16:44:23 article
## link.url
## 1 http://www.nytimes.com/2017/10/26/movies/bill-nye-science-guy-review-documentary.html
## 2 http://www.nytimes.com/2017/10/26/movies/review-felicite-alain-gomis.html
## 3 http://www.nytimes.com/2017/10/26/movies/the-square-review-elisabeth-moss.html
## 4 http://www.nytimes.com/2017/10/26/movies/suburbicon-review-george-clooney-matt-damon-julianne-moore.html
## 5 http://www.nytimes.com/2017/10/26/movies/maya-dardel-review-lena-olin.html
## 6 http://www.nytimes.com/2017/10/26/movies/crash-pad-review.html
## 7 http://www.nytimes.com/2017/10/26/movies/novitiate-review-melissa-leo.html
## 8 http://www.nytimes.com/2017/10/26/movies/mully-review.html
## 9 http://www.nytimes.com/2017/10/26/movies/all-i-see-is-you-review-blake-lively.html
## 10 http://www.nytimes.com/2017/10/26/movies/thank-you-for-your-service-review-miles-teller.html
## 11 http://www.nytimes.com/2017/10/26/movies/the-divine-order-review.html
## 12 http://www.nytimes.com/2017/10/26/movies/the-work-review.html
## 13 http://www.nytimes.com/2017/10/24/movies/joan-didion-the-center-will-not-hold-review-griffin-dunne.html
## 14 http://www.nytimes.com/2017/10/24/movies/gods-own-country-review.html
## 15 http://www.nytimes.com/2017/10/20/movies/geostorm-review-gerard-butler.html
## 16 http://www.nytimes.com/2017/10/20/movies/tyler-perrys-boo-2-a-madea-halloween-review.html
## 17 http://www.nytimes.com/2017/10/19/movies/bpm-beats-per-minute-review-aids-activism.html
## 18 http://www.nytimes.com/2017/10/19/movies/wonderstruck-review-todd-haynes.html
## 19 http://www.nytimes.com/2017/10/19/movies/only-the-brave-review-josh-brolin.html
## 20 http://www.nytimes.com/2017/10/19/movies/aidas-secrets-review.html
## link.suggested_link_text
## 1 Read the New York Times Review of Bill Nye: Science Guy
## 2 Read the New York Times Review of Félicité
## 3 Read the New York Times Review of The Square
## 4 Read the New York Times Review of Suburbicon
## 5 Read the New York Times Review of Maya Dardel
## 6 Read the New York Times Review of Crash Pad
## 7 Read the New York Times Review of Novitiate
## 8 Read the New York Times Review of Mully
## 9 Read the New York Times Review of All I See Is You
## 10 Read the New York Times Review of Thank You for Your Service
## 11 Read the New York Times Review of The Divine Order
## 12 Read the New York Times Review of The Work
## 13 Read the New York Times Review of Joan Didion: The Center Will Not Hold
## 14 Read the New York Times Review of God's Own Country
## 15 Read the New York Times Review of Geostorm
## 16 Read the New York Times Review of Tyler Perry's Boo 2! A Madea Halloween
## 17 Read the New York Times Review of BPM (Beats Per Minute)
## 18 Read the New York Times Review of Wonderstruck
## 19 Read the New York Times Review of Only the Brave
## 20 Read the New York Times Review of Aida's Secrets
## multimedia.type
## 1 mediumThreeByTwo210
## 2 mediumThreeByTwo210
## 3 mediumThreeByTwo210
## 4 mediumThreeByTwo210
## 5 mediumThreeByTwo210
## 6 mediumThreeByTwo210
## 7 mediumThreeByTwo210
## 8 mediumThreeByTwo210
## 9 mediumThreeByTwo210
## 10 mediumThreeByTwo210
## 11 mediumThreeByTwo210
## 12 mediumThreeByTwo210
## 13 mediumThreeByTwo210
## 14 mediumThreeByTwo210
## 15 mediumThreeByTwo210
## 16 mediumThreeByTwo210
## 17 mediumThreeByTwo210
## 18 mediumThreeByTwo210
## 19 mediumThreeByTwo210
## 20 mediumThreeByTwo210
## multimedia.src
## 1 https://static01.nyt.com/images/2017/10/27/arts/27billnye-print/27billnye-2-mediumThreeByTwo210.jpg
## 2 https://static01.nyt.com/images/2017/10/25/arts/27felicite/27felicite-mediumThreeByTwo210-v2.jpg
## 3 https://static01.nyt.com/images/2017/10/27/arts/27thesquare1/27thesquare1-mediumThreeByTwo210-v2.jpg
## 4 https://static01.nyt.com/images/2017/10/27/arts/27suburbicon-web/27suburbicon-web-mediumThreeByTwo210.jpg
## 5 https://static01.nyt.com/images/2017/10/27/arts/27mayadardel1/27mayadardel1-mediumThreeByTwo210-v2.jpg
## 6 https://static01.nyt.com/images/2017/10/24/movies/CRASHPAD1/CRASHPAD1-mediumThreeByTwo210.jpg
## 7 https://static01.nyt.com/images/2017/10/27/arts/27novitiate-print2/27novitiate2-mediumThreeByTwo210.jpg
## 8 https://static01.nyt.com/images/2017/10/27/arts/27mully-print/25mully1-mediumThreeByTwo210.jpg
## 9 https://static01.nyt.com/images/2017/10/27/arts/27alliseeisyou/27alliseeisyou-mediumThreeByTwo210.jpg
## 10 https://static01.nyt.com/images/2017/10/24/movies/THANKYOU1/THANKYOU1-mediumThreeByTwo210.jpg
## 11 https://static01.nyt.com/images/2017/10/24/movies/DIVINE1/DIVINE1-mediumThreeByTwo210.jpg
## 12 https://static01.nyt.com/images/2017/10/27/arts/27THEWORKprint/THEWORK1-mediumThreeByTwo210.jpg
## 13 https://static01.nyt.com/images/2017/10/27/arts/27joandidion1/27joandidion1-mediumThreeByTwo210.jpg
## 14 https://static01.nyt.com/images/2017/10/25/arts/25godsown/25godsown-mediumThreeByTwo210.jpg
## 15 https://static01.nyt.com/images/2017/10/21/arts/21geostorm-print/21geostorm-web-mediumThreeByTwo210.jpg
## 16 https://static01.nyt.com/images/2017/10/21/arts/21boo2/21boo2-mediumThreeByTwo210.jpg
## 17 https://static01.nyt.com/images/2017/10/20/arts/20bpm2/20bpm2-mediumThreeByTwo210.jpg
## 18 https://static01.nyt.com/images/2017/10/20/arts/20Wonderstruck-web1/20Wonderstruck-web1-mediumThreeByTwo210.jpg
## 19 https://static01.nyt.com/images/2017/10/20/arts/20onlythebrave/20onlythebrave-mediumThreeByTwo210.jpg
## 20 https://static01.nyt.com/images/2017/10/20/arts/20aida2/20aida2-mediumThreeByTwo210.jpg
## multimedia.width multimedia.height
## 1 210 140
## 2 210 140
## 3 210 140
## 4 210 140
## 5 210 140
## 6 210 140
## 7 210 140
## 8 210 140
## 9 210 140
## 10 210 140
## 11 210 140
## 12 210 140
## 13 210 140
## 14 210 140
## 15 210 140
## 16 210 140
## 17 210 140
## 18 210 140
## 19 210 140
## 20 210 140