Problem Statement

The New York Times web site provides a rich set of APIs, as described here: https://developer.nytimes.com/apis
You’ll need to start by signing up for an API key. Your task is to choose one of the New York Times APIs, construct an interface in R to read in the JSON data, and transform it into an R DataFrame.

Approach

I selected two APIs from NYT’s site, namely Books API and Articles Search API. The former is simpler and the latter is relatively complex. After creating the accounts (of each member), I obtained the the key. In the RMD, I stored the key in a variable and hid it with echo=FALSE.

I Books API

The BOOKS API provides information about book reviews and the NYT best seller list.

Extraction of books by Yuval Noah Harari

From Books API’s best seller list, I filtered out author Harari’s books, and recasted into R dataframe.

title description author publisher
21 LESSONS FOR THE 21ST CENTURY Technological, political and social issues in the modern era, and the choices individuals might consider in facing them. Yuval Noah Harari Spiegel & Grau
HOMO DEUS A look into the future by the author of “Sapiens.” Read by Derek Perkins. 14 hours, 53 minutes unabridged. Yuval Noah Harari HarperAudio
SAPIENS How Homo sapiens became Earth’s dominant species. Yuval Noah Harari Harper Perennial
SAPIENS: A GRAPHIC HISTORY An illustrated adaptation of the book that looks at humankind’s creation and evolution. Yuval Noah Harari and David Vandermeulen Harper Perennial

Extraction of current best sellers

From Books APIs I selected the current best sellers of NYT.

rank rank_last_week weeks_on_list asterisk dagger primary_isbn10 primary_isbn13 publisher description price title author contributor contributor_note book_image book_image_width book_image_height amazon_product_url age_group book_review_link first_chapter_link sunday_review_link article_chapter_link isbns buy_links book_uri
1 2 10 0 0 0385545967 9780385545969 Doubleday The third book in the Jake Brigance series. A 16-year-old is accused of killing a deputy in Clanton, Miss., in 1990. 0 A TIME FOR MERCY John Grisham by John Grisham https://s1.nyt.com/du/books/images/9780385545969.jpg 329 500 https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20&tag=NYTBSREV-20 0385545967 , 0385545975 , 0593168542 , 0593168577 , 9780385545969, 9780385545976, 9780593168547, 9780593168578 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=A+TIME+FOR+MERCY&author=John+Grisham , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780385545969 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FA%2BTIME%2BFOR%2BMERCY%2FJohn%2BGrisham%2F9780385545969, https://bookshop.org/a/3546/9780385545969 , https://www.indiebound.org/book/9780385545969?aff=NYT nyt://book/33a48cf6-d7f3-5113-aa1e-6adcbb3853c3
2 1 4 0 0 1524761338 9781524761332 Ballantine In a sequel to “Ready Player One,” Wade Watts discovers a technological advancement and goes on a new quest. 0 READY PLAYER TWO Ernest Cline by Ernest Cline https://s1.nyt.com/du/books/images/9781524761332.jpg 328 500 https://www.amazon.com/dp/1524761338?tag=NYTBSREV-20&tag=NYTBSREV-20 1524761338 , 1524761354 , 9781524761332, 9781524761356 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1524761338?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=READY+PLAYER+TWO&author=Ernest+Cline , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781524761332 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FREADY%2BPLAYER%2BTWO%2FErnest%2BCline%2F9781524761332, https://bookshop.org/a/3546/9781524761332 , https://www.indiebound.org/book/9781524761332?aff=NYT nyt://book/473f18d4-0433-5c42-abaa-54c7c9dd26e5
3 3 4 0 0 0316420255 9780316420259 Little, Brown The 28th book in the Alex Cross series. An investigation of a double homicide sends Alex Cross to Alabama. 0 DEADLY CROSS James Patterson by James Patterson https://s1.nyt.com/du/books/images/9780316420259.jpg 322 500 https://www.amazon.com/dp/0316420255?tag=NYTBSREV-20&tag=NYTBSREV-20 0316420255 , 0316497991 , 0316541761 , 9780316420259, 9780316497992, 9780316541763 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0316420255?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=DEADLY+CROSS&author=James+Patterson , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780316420259 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FDEADLY%2BCROSS%2FJames%2BPatterson%2F9780316420259, https://bookshop.org/a/3546/9780316420259 , https://www.indiebound.org/book/9780316420259?aff=NYT nyt://book/662286db-c00a-50de-9ba0-dec968f24b50
4 4 12 0 0 1538728575 9781538728574 Grand Central A doctor serving in the Navy in Afghanistan goes back to North Carolina where two women change his life. 0 THE RETURN Nicholas Sparks by Nicholas Sparks https://s1.nyt.com/du/books/images/9781538728574.jpg 329 500 https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20&tag=NYTBSREV-20 1538728575 , 1538718979 , 1478992670 , 1549102214 , 1549106570 , 9781538728574, 9781538718971, 9781478992677, 9781549102219, 9781549106576 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+RETURN&author=Nicholas+Sparks , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781538728574 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BRETURN%2FNicholas%2BSparks%2F9781538728574, https://bookshop.org/a/3546/9781538728574 , https://www.indiebound.org/book/9781538728574?aff=NYT nyt://book/b9bf792c-a853-54ce-8f33-7117f51be365
5 5 29 0 0 0525536299 9780525536291 Riverhead The lives of twin sisters who run away from a Southern Black community at age 16 diverge as one returns and the other takes on a different racial identity but their fates intertwine. 0 THE VANISHING HALF Brit Bennett by Brit Bennett https://s1.nyt.com/du/books/images/9780525536291.jpg 331 500 https://www.amazon.com/dp/0525536299?tag=NYTBSREV-20&tag=NYTBSREV-20 0525536299 , 0593329430 , 9780525536291, 9780593329436 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0525536299?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+VANISHING+HALF&author=Brit+Bennett , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780525536291 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BVANISHING%2BHALF%2FBrit%2BBennett%2F9780525536291, https://bookshop.org/a/3546/9780525536291 , https://www.indiebound.org/book/9780525536291?aff=NYT nyt://book/6db17f1d-4bd0-562a-80ef-efa2a272cf64
6 7 120 0 0 0735219095 9780735219090 Putnam In a quiet town on the North Carolina coast in 1969, a young woman who survived alone in the marsh becomes a murder suspect. 0 WHERE THE CRAWDADS SING Delia Owens by Delia Owens https://s1.nyt.com/du/books/images/9780735219090.jpg 328 495 https://www.amazon.com/Where-Crawdads-Sing-Delia-Owens/dp/0735219095?tag=NYTBSREV-20 0735219095 , 0735219117 , 0525640371 , 0593105419 , 0593187989 , 0525640363 , 9780735219090, 9780735219113, 9780525640370, 9780593105412, 9780593187982, 9780525640363 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/Where-Crawdads-Sing-Delia-Owens/dp/0735219095?tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=WHERE+THE+CRAWDADS+SING&author=Delia+Owens , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780735219090 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FWHERE%2BTHE%2BCRAWDADS%2BSING%2FDelia%2BOwens%2F9780735219090, https://bookshop.org/a/3546/9780735219090 , https://www.indiebound.org/book/9780735219090?aff=NYT nyt://book/053b4109-4555-5aa1-9b39-cc40549bcdf0
7 6 5 0 0 1538761696 9781538761694 Grand Central The F.B.I. agent Atlee Pine’s search for her twin sister overlaps with a military investigator’s hunt for someone involved in a global conspiracy. 0 DAYLIGHT David Baldacci by David Baldacci https://s1.nyt.com/du/books/images/9781538761694.jpg 331 500 https://www.amazon.com/dp/1538761696?tag=NYTBSREV-20&tag=NYTBSREV-20 1538761696 , 1538719029 , 1538761688 , 1478999322 , 1549162160 , 9781538761694, 9781538719022, 9781538761687, 9781478999324, 9781549162169 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1538761696?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=DAYLIGHT&author=David+Baldacci , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781538761694 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FDAYLIGHT%2FDavid%2BBaldacci%2F9781538761694, https://bookshop.org/a/3546/9781538761694 , https://www.indiebound.org/book/9781538761694?aff=NYT nyt://book/da8e02be-ca28-5393-9abc-02be863d6cb7
8 10 8 0 0 isbn10 mus 9781984818461 Delacorte Jack Reacher intervenes on an ambush in Tennessee and uncovers a conspiracy. 0 THE SENTINEL Lee Child and Andrew Child by Lee Child and Andrew Child https://s1.nyt.com/du/books/images/9781984818461.jpg 327 500 https://www.amazon.com/dp/1984818465?tag=NYTBSREV-20&tag=NYTBSREV-20 isbn10 mus , 0593339983 , 0593339711 , 9781101599044, 9780593339985, 9780593339718 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1984818465?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+SENTINEL&author=Lee+Child+and+Andrew+Child , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781984818461 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BSENTINEL%2FLee%2BChild%2Band%2BAndrew%2BChild%2F9781984818461, https://bookshop.org/a/3546/9781984818461 , https://www.indiebound.org/book/9781984818461?aff=NYT nyt://book/8af67edb-c121-58bc-88ca-4fc6599ef2b6
9 9 4 0 0 1250272610 9781250272614 St. Martin’s The first book in the Dragon Heart Legacy series. Breen Kelly travels through a portal in Ireland to a land of faeries and mermaids. 0 THE AWAKENING Nora Roberts by Nora Roberts https://s1.nyt.com/du/books/images/9781250272614.jpg 329 500 https://www.amazon.com/dp/1250272610?tag=NYTBSREV-20&tag=NYTBSREV-20 1250272610 , 1250272602 , 1250770270 , 1250770297 , 9781250272614, 9781250272607, 9781250770271, 9781250770295 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1250272610?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+AWAKENING&author=Nora+Roberts , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781250272614 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BAWAKENING%2FNora%2BRoberts%2F9781250272614, https://bookshop.org/a/3546/9781250272614 , https://www.indiebound.org/book/9781250272614?aff=NYT nyt://book/f6cca87d-7905-5e95-943a-e72c543f314d
10 8 6 0 0 0316485624 9780316485623 Little, Brown The sixth book in the Mickey Haller series. Haller defends himself when police find the body of a former client in his car’s trunk. 0 THE LAW OF INNOCENCE Michael Connelly by Michael Connelly https://s1.nyt.com/du/books/images/9780316485623.jpg 322 500 https://www.amazon.com/dp/0316485624?tag=NYTBSREV-20&tag=NYTBSREV-20 0316485624 , 0316592439 , 0316541737 , 1549129007 , 154912899X , 1538752549 , 9780316485623, 9780316592437, 9780316541732, 9781549129001, 9781549128998, 9781538752548 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0316485624?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+LAW+OF+INNOCENCE&author=Michael+Connelly , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780316485623 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BLAW%2BOF%2BINNOCENCE%2FMichael%2BConnelly%2F9780316485623, https://bookshop.org/a/3546/9780316485623 , https://www.indiebound.org/book/9780316485623?aff=NYT nyt://book/2a92d581-b696-57c3-a866-5b983c4c07df
11 0 19 0 0 1982137975 9781982137977 Scribner Four novellas: “Mr. Harrigan’s Phone,” “The Life of Chuck,” “Rat” and “If It Bleeds.” 0 IF IT BLEEDS Stephen King by Stephen King https://s1.nyt.com/du/books/images/9781982137977.jpg 329 500 https://www.amazon.com/dp/1982137975?tag=NYTBSREV-20&tag=NYTBSREV-20 1982137975 , 1982137991 , 1797104799 , 1432877550 , 9781982137977, 9781982137991, 9781797104799, 9781432877552 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1982137975?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=IF+IT+BLEEDS&author=Stephen+King , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982137977 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FIF%2BIT%2BBLEEDS%2FStephen%2BKing%2F9781982137977, https://bookshop.org/a/3546/9781982137977 , https://www.indiebound.org/book/9781982137977?aff=NYT nyt://book/ad212b13-e446-5daf-b5d9-41bef7402b4a
12 11 7 0 0 1982154837 9781982154837 Atria The 27th book in the Stephanie Plum series. Stephanie deals with a soldier of fortune from Little Havana. 0 FORTUNE AND GLORY Janet Evanovich by Janet Evanovich https://s1.nyt.com/du/books/images/9781982154837.jpg 331 500 https://www.amazon.com/dp/1982154837?tag=NYTBSREV-20&tag=NYTBSREV-20 1982154837 , 198216879X , 1982170212 , 1982154861 , 1432882775 , 1797113070 , 9781982154837, 9781982170219, 9781982168797, 9781982154868, 9781432882778, 9781797113074 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/1982154837?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=FORTUNE+AND+GLORY&author=Janet+Evanovich , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982154837 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FFORTUNE%2BAND%2BGLORY%2FJanet%2BEvanovich%2F9781982154837, https://bookshop.org/a/3546/9781982154837 , https://www.indiebound.org/book/9781982154837?aff=NYT nyt://book/adddbef7-49d1-5a23-82b6-cb83b7d030fb
13 13 4 0 0 0525559477 9780525559474 Viking Nora Seed finds a library beyond the edge of the universe that contains books with multiple possibilities of the lives one could have lived. 0 THE MIDNIGHT LIBRARY Matt Haig by Matt Haig https://s1.nyt.com/du/books/images/9780525559474.jpg 331 500 https://www.amazon.com/dp/0525559477?tag=NYTBSREV-20&tag=NYTBSREV-20 0525559477 , 0525559485 , 9780525559474, 9780525559481 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0525559477?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+MIDNIGHT+LIBRARY&author=Matt+Haig , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780525559474 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BMIDNIGHT%2BLIBRARY%2FMatt%2BHaig%2F9780525559474, https://bookshop.org/a/3546/9780525559474 , https://www.indiebound.org/book/9780525559474?aff=NYT nyt://book/60d0ee2d-3d05-50c9-a484-050d17a2308e
14 0 9 0 0 0765387565 9780765387561 Tor/Forge A Faustian bargain comes with a curse that affects the adventure Addie LaRue has across centuries. 0 THE INVISIBLE LIFE OF ADDIE LARUE VE Schwab by V.E. Schwab https://s1.nyt.com/du/books/images/9780765387561.jpg 331 500 https://www.amazon.com/dp/0765387565?tag=NYTBSREV-20&tag=NYTBSREV-20 0765387565 , 1250793971 , 1250793998 , 9780765387561, 9781250793997, 9781250795182 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0765387565?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+INVISIBLE+LIFE+OF+ADDIE+LARUE&author=VE+Schwab , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780765387561 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BINVISIBLE%2BLIFE%2BOF%2BADDIE%2BLARUE%2FVE%2BSchwab%2F9780765387561, https://bookshop.org/a/3546/9780765387561 , https://www.indiebound.org/book/9780765387561?aff=NYT nyt://book/c9bf2d03-7b78-58d8-a9d7-a9b897d08427
15 15 11 0 0 0525954988 9780525954989 Viking In a prequel to “The Pillars of the Earth,” a boatbuilder, a Norman noblewoman and a monk live in England under attack by the Welsh and the Vikings. 0 THE EVENING AND THE MORNING Ken Follett by Ken Follett https://s1.nyt.com/du/books/images/9780525954989.jpg 329 500 https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20&tag=NYTBSREV-20 0525954988 , 1984882023 , 0593289633 , 9780525954989, 9781984882028, 9780593289631 Amazon , Apple Books , Barnes and Noble , Books-A-Million , Bookshop , Indiebound , https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20&tag=NYTBSREV-20 , https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+EVENING+AND+THE+MORNING&author=Ken+Follett , https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780525954989 , https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BEVENING%2BAND%2BTHE%2BMORNING%2FKen%2BFollett%2F9780525954989, https://bookshop.org/a/3546/9780525954989 , https://www.indiebound.org/book/9780525954989?aff=NYT nyt://book/6fd2cc42-7bff-59a1-9c5c-20514172cf5b
rank publisher description title author contributor amazon_product_url
1 Doubleday The third book in the Jake Brigance series. A 16-year-old is accused of killing a deputy in Clanton, Miss., in 1990. A TIME FOR MERCY John Grisham by John Grisham https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20&tag=NYTBSREV-20
2 Ballantine In a sequel to “Ready Player One,” Wade Watts discovers a technological advancement and goes on a new quest. READY PLAYER TWO Ernest Cline by Ernest Cline https://www.amazon.com/dp/1524761338?tag=NYTBSREV-20&tag=NYTBSREV-20
3 Little, Brown The 28th book in the Alex Cross series. An investigation of a double homicide sends Alex Cross to Alabama. DEADLY CROSS James Patterson by James Patterson https://www.amazon.com/dp/0316420255?tag=NYTBSREV-20&tag=NYTBSREV-20
4 Grand Central A doctor serving in the Navy in Afghanistan goes back to North Carolina where two women change his life. THE RETURN Nicholas Sparks by Nicholas Sparks https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20&tag=NYTBSREV-20
5 Riverhead The lives of twin sisters who run away from a Southern Black community at age 16 diverge as one returns and the other takes on a different racial identity but their fates intertwine. THE VANISHING HALF Brit Bennett by Brit Bennett https://www.amazon.com/dp/0525536299?tag=NYTBSREV-20&tag=NYTBSREV-20
6 Putnam In a quiet town on the North Carolina coast in 1969, a young woman who survived alone in the marsh becomes a murder suspect. WHERE THE CRAWDADS SING Delia Owens by Delia Owens https://www.amazon.com/Where-Crawdads-Sing-Delia-Owens/dp/0735219095?tag=NYTBSREV-20
7 Grand Central The F.B.I. agent Atlee Pine’s search for her twin sister overlaps with a military investigator’s hunt for someone involved in a global conspiracy. DAYLIGHT David Baldacci by David Baldacci https://www.amazon.com/dp/1538761696?tag=NYTBSREV-20&tag=NYTBSREV-20
8 Delacorte Jack Reacher intervenes on an ambush in Tennessee and uncovers a conspiracy. THE SENTINEL Lee Child and Andrew Child by Lee Child and Andrew Child https://www.amazon.com/dp/1984818465?tag=NYTBSREV-20&tag=NYTBSREV-20
9 St. Martin’s The first book in the Dragon Heart Legacy series. Breen Kelly travels through a portal in Ireland to a land of faeries and mermaids. THE AWAKENING Nora Roberts by Nora Roberts https://www.amazon.com/dp/1250272610?tag=NYTBSREV-20&tag=NYTBSREV-20
10 Little, Brown The sixth book in the Mickey Haller series. Haller defends himself when police find the body of a former client in his car’s trunk. THE LAW OF INNOCENCE Michael Connelly by Michael Connelly https://www.amazon.com/dp/0316485624?tag=NYTBSREV-20&tag=NYTBSREV-20
11 Scribner Four novellas: “Mr. Harrigan’s Phone,” “The Life of Chuck,” “Rat” and “If It Bleeds.” IF IT BLEEDS Stephen King by Stephen King https://www.amazon.com/dp/1982137975?tag=NYTBSREV-20&tag=NYTBSREV-20
12 Atria The 27th book in the Stephanie Plum series. Stephanie deals with a soldier of fortune from Little Havana. FORTUNE AND GLORY Janet Evanovich by Janet Evanovich https://www.amazon.com/dp/1982154837?tag=NYTBSREV-20&tag=NYTBSREV-20
13 Viking Nora Seed finds a library beyond the edge of the universe that contains books with multiple possibilities of the lives one could have lived. THE MIDNIGHT LIBRARY Matt Haig by Matt Haig https://www.amazon.com/dp/0525559477?tag=NYTBSREV-20&tag=NYTBSREV-20
14 Tor/Forge A Faustian bargain comes with a curse that affects the adventure Addie LaRue has across centuries. THE INVISIBLE LIFE OF ADDIE LARUE VE Schwab by V.E. Schwab https://www.amazon.com/dp/0765387565?tag=NYTBSREV-20&tag=NYTBSREV-20
15 Viking In a prequel to “The Pillars of the Earth,” a boatbuilder, a Norman noblewoman and a monk live in England under attack by the Welsh and the Vikings. THE EVENING AND THE MORNING Ken Follett by Ken Follett https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20&tag=NYTBSREV-20

II Articles Search API

Article Search API provides faclity to look up articles by keyword, which can be refined by using filters and facets.

Extraction of chosen articles

Now, I’ll create a dictionary, called pages, and store the individual pages in it.

## Retrieving page 1
## Retrieving page 2
## Retrieving page 3

r-binding all pages into one big data frame, whose class is shown below. At this point, I achieved my aim of extracting news into a data frame.

## [1] "data.frame"

Data Visualization

Now, I’ll explore what data visualization I can do.

## `summarise()` ungrouping output (override with `.groups` argument)

We observe that majority of the articles are in news category, followed by Op-Ed.

In the following I’ll explore a section wise analysis of news about Iran Nuclear deal.

## `summarise()` ungrouping output (override with `.groups` argument)

We conclude that the World section contains the maximum amount of responses.

Marker: 607-09