After signing up for my API key with the New York Times, I decided that I needed to explore what kinds of lists were available for reading into R. So I started with a top level list of lists as a good place to explore the types of lists available.
The raw JSON file of lists is read into a dataframe, and we can then look at the status of the API call.
listsAPI <- GET("https://api.nytimes.com/svc/books/v2/lists/overview.json?api-key=xikY86V9fJdiqGfYJAzKuo39jVKgZj4W", verbose())
http_status(listsAPI)
## $category
## [1] "Success"
##
## $reason
## [1] "OK"
##
## $message
## [1] "Success: (200) OK"
With a Success code of 200 the file was successfully read into a dataframe, but it is still difficult to read/interpret in plain language due to the structure of the file. So I wanted to extract the contents from the URL call as raw text.
lists <- content(listsAPI, "text", encoding='UTF-8')
And then insert the text into an R dataframe.
liststext <- fromJSON(lists, flatten = TRUE)
lists_df <- as.data.frame(liststext)
head(lists_df)
## status copyright
## 1 OK Copyright (c) 2020 The New York Times Company. All Rights Reserved.
## 2 OK Copyright (c) 2020 The New York Times Company. All Rights Reserved.
## 3 OK Copyright (c) 2020 The New York Times Company. All Rights Reserved.
## 4 OK Copyright (c) 2020 The New York Times Company. All Rights Reserved.
## 5 OK Copyright (c) 2020 The New York Times Company. All Rights Reserved.
## 6 OK Copyright (c) 2020 The New York Times Company. All Rights Reserved.
## num_results results.bestsellers_date results.published_date
## 1 90 2020-10-17 2020-11-01
## 2 90 2020-10-17 2020-11-01
## 3 90 2020-10-17 2020-11-01
## 4 90 2020-10-17 2020-11-01
## 5 90 2020-10-17 2020-11-01
## 6 90 2020-10-17 2020-11-01
## results.published_date_description results.previous_published_date
## 1 latest 2020-10-25
## 2 latest 2020-10-25
## 3 latest 2020-10-25
## 4 latest 2020-10-25
## 5 latest 2020-10-25
## 6 latest 2020-10-25
## results.next_published_date results.lists.list_id
## 1 704
## 2 708
## 3 1
## 4 2
## 5 17
## 6 4
## results.lists.list_name results.lists.list_name_encoded
## 1 Combined Print and E-Book Fiction combined-print-and-e-book-fiction
## 2 Combined Print and E-Book Nonfiction combined-print-and-e-book-nonfiction
## 3 Hardcover Fiction hardcover-fiction
## 4 Hardcover Nonfiction hardcover-nonfiction
## 5 Trade Fiction Paperback trade-fiction-paperback
## 6 Paperback Nonfiction paperback-nonfiction
## results.lists.display_name results.lists.updated
## 1 Combined Print & E-Book Fiction WEEKLY
## 2 Combined Print & E-Book Nonfiction WEEKLY
## 3 Hardcover Fiction WEEKLY
## 4 Hardcover Nonfiction WEEKLY
## 5 Paperback Trade Fiction WEEKLY
## 6 Paperback Nonfiction WEEKLY
## results.lists.list_image
## 1 https://s1.nyt.com/du/books/images/9780385545969.jpg
## 2 https://s1.nyt.com/du/books/images/9780593230251.jpg
## 3 https://s1.nyt.com/du/books/images/9780385545969.jpg
## 4 https://s1.nyt.com/du/books/images/9780593230251.jpg
## 5 https://s1.nyt.com/du/books/images/9781538761465.jpg
## 6 https://s1.nyt.com/du/books/images/9780807047415.jpg
## results.lists.list_image_width results.lists.list_image_height
## 1 329 500
## 2 330 500
## 3 329 500
## 4 330 500
## 5 331 500
## 6 330 495
## results.lists.books
## 1 , , , , , https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/073522465X?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/0316435589?tag=NYTBSREV-20?tag=NYTBS-20, , , , , , John Grisham, Nicholas Sparks, Tana French, Ken Follett, Elin Hilderbrand, https://s1.nyt.com/du/books/images/9780385545969.jpg, https://s1.nyt.com/du/books/images/9781538728574.jpg, https://s1.nyt.com/du/books/images/9780735224650.jpg, https://s1.nyt.com/du/books/images/9780525954989.jpg, https://s1.nyt.com/du/books/images/9780316435581.jpg, 329, 329, 331, 329, 322, 500, 500, 500, 500, 500, , , , , , by John Grisham, by Nicholas Sparks, by Tana French, by Ken Follett, by Elin Hilderbrand, , , , , , 2020-10-21 22:02:09, 2020-10-21 22:02:09, 2020-10-21 22:02:09, 2020-10-21 22:02:09, 2020-10-21 22:02:09, The third book in the Jake Brigance series. A 16-year-old is accused of killing a deputy in Clanton, Miss., in 1990., A doctor serving in the Navy in Afghanistan goes back to North Carolina where two women change his life., After a divorce, a former Chicago police officer resettles in an Irish village where a boy goes missing., 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 final installment of the trilogy that includes “Winter in Paradise” and “What Happens in Paradise.”, , , , , , 0, 0, 0, 0, 0, 0385545975, 1538728575, 073522465X, 0525954988, 0316435589, 9780385545976, 9781538728574, 9780735224650, 9780525954989, 9780316435581, nyt://book/03d43a63-11ca-5dd6-8168-3d201a5dd25a, nyt://book/b9bf792c-a853-54ce-8f33-7117f51be365, nyt://book/6ad22fcc-2a5d-5917-9696-bd7dbffc1247, nyt://book/6fd2cc42-7bff-59a1-9c5c-20514172cf5b, nyt://book/91a0acfd-f21a-5331-9d62-305d5e44a857, Doubleday, Grand Central, Viking, Viking, Little, Brown, 1, 2, 3, 4, 5, 0, 3, 2, 6, 1, , , , , , A TIME FOR MERCY, THE RETURN, THE SEARCHER, THE EVENING AND THE MORNING, TROUBLES IN PARADISE, 2020-10-24 18:52:27, 2020-10-24 18:52:27, 2020-10-24 18:52:27, 2020-10-24 18:52:27, 2020-10-24 18:52:27, 1, 3, 2, 5, 2, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20?tag=NYTBS-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%3D9780385545976, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FA%2BTIME%2BFOR%2BMERCY%2FJohn%2BGrisham%2F9780385545976, https://bookshop.org/a/3546/9780385545976, https://www.indiebound.org/book/9780385545976?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20?tag=NYTBS-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, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/073522465X?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+SEARCHER&author=Tana+French, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780735224650, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BSEARCHER%2FTana%2BFrench%2F9780735224650, https://bookshop.org/a/3546/9780735224650, https://www.indiebound.org/book/9780735224650?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20?tag=NYTBS-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, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0316435589?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=TROUBLES+IN+PARADISE&author=Elin+Hilderbrand, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780316435581, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTROUBLES%2BIN%2BPARADISE%2FElin%2BHilderbrand%2F9780316435581, https://bookshop.org/a/3546/9780316435581, https://www.indiebound.org/book/9780316435581?aff=NYT
## 2 , , , , , https://www.amazon.com/dp/0593230256?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1982112697?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1984801252?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1627797041?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1982133279?tag=NYTBSREV-20?tag=NYTBS-20, , , , , , Isabel Wilkerson, Jerry Seinfeld, Glennon Doyle, Bill O'Reilly and Martin Dugard, Candace Owens, https://s1.nyt.com/du/books/images/9780593230251.jpg, https://s1.nyt.com/du/books/images/9781982112691.jpg, https://s1.nyt.com/du/books/images/9781984801258.jpg, https://s1.nyt.com/du/books/images/9781627797047.jpg, https://s1.nyt.com/du/books/images/9781982133276.jpg, 330, 338, 330, 328, 329, 500, 500, 500, 500, 500, , , , , , by Isabel Wilkerson, by Jerry Seinfeld, by Glennon Doyle, by Bill O'Reilly and Martin Dugard, by Candace Owens, , , , , , 2020-10-21 22:02:09, 2020-10-21 22:02:09, 2020-10-21 22:02:09, 2020-10-21 22:02:09, 2020-10-21 22:02:09, The Pulitzer Prize-winning journalist examines aspects of caste systems across civilizations and reveals a rigid hierarchy in America today., The comedian shares material he collected in an accordion folder over the last 45 years., The activist and public speaker describes her journey of listening to her inner voice., The ninth book in the conservative commentator’s Killing series focuses on conflicts with Native Americans., The conservative commentator makes her case that Black Americans should part ways with the Democratic Party., , , , , , 0, 0, 0, 0, 0, 0593230256, 1982112697, 1984801252, 1627797041, 1982133279, 9780593230251, 9781982112691, 9781984801258, 9781627797047, 9781982133276, nyt://book/970c3c3d-b5b3-5cf4-bd49-fa2e441babb7, nyt://book/cff78ce3-5632-5607-950d-bdc0054cdb4e, nyt://book/fbeeab6c-34bb-5c38-8f27-9fc3ced2ff01, nyt://book/9ef71e07-f784-5302-90b0-cb613c932fde, nyt://book/939abb21-e146-5f6d-82d3-a8b4deefb2b5, Random House, Simon & Schuster, Dial, Holt, Threshold Editions, 1, 2, 3, 4, 5, 5, 2, 10, 6, 7, , , , , , CASTE, IS THIS ANYTHING?, UNTAMED, KILLING CRAZY HORSE, BLACKOUT, 2020-10-24 18:52:28, 2020-10-24 18:52:28, 2020-10-24 18:52:28, 2020-10-24 18:52:28, 2020-10-24 18:52:28, 11, 2, 32, 6, 5, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0593230256?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=CASTE&author=Isabel+Wilkerson, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780593230251, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FCASTE%2FIsabel%2BWilkerson%2F9780593230251, https://bookshop.org/a/3546/9780593230251, https://www.indiebound.org/book/9780593230251?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1982112697?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=IS+THIS+ANYTHING%3F&author=Jerry+Seinfeld, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982112691, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FIS%2BTHIS%2BANYTHING%253F%2FJerry%2BSeinfeld%2F9781982112691, https://bookshop.org/a/3546/9781982112691, https://www.indiebound.org/book/9781982112691?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1984801252?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=UNTAMED&author=Glennon+Doyle, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781984801258, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FUNTAMED%2FGlennon%2BDoyle%2F9781984801258, https://bookshop.org/a/3546/9781984801258, https://www.indiebound.org/book/9781984801258?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1627797041?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=KILLING+CRAZY+HORSE&author=Bill+O%27Reilly+and+Martin+Dugard, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781627797047, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FKILLING%2BCRAZY%2BHORSE%2FBill%2BO%2527Reilly%2Band%2BMartin%2BDugard%2F9781627797047, https://bookshop.org/a/3546/9781627797047, https://www.indiebound.org/book/9781627797047?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1982133279?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=BLACKOUT&author=Candace+Owens, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982133276, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FBLACKOUT%2FCandace%2BOwens%2F9781982133276, https://bookshop.org/a/3546/9781982133276, https://www.indiebound.org/book/9781982133276?aff=NYT
## 3 , , , , , https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/073522465X?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/0765387565?tag=NYTBSREV-20?tag=NYTBS-20, , , , , , John Grisham, Nicholas Sparks, Tana French, Ken Follett, VE Schwab, https://s1.nyt.com/du/books/images/9780385545969.jpg, https://s1.nyt.com/du/books/images/9781538728574.jpg, https://s1.nyt.com/du/books/images/9780735224650.jpg, https://s1.nyt.com/du/books/images/9780525954989.jpg, https://s1.nyt.com/du/books/images/9780765387561.jpg, 329, 329, 331, 329, 331, 500, 500, 500, 500, 500, , , , , , by John Grisham, by Nicholas Sparks, by Tana French, by Ken Follett, by V.E. Schwab, , , , , , 2020-10-21 22:02:03, 2020-10-21 22:02:03, 2020-10-21 22:02:03, 2020-10-21 22:02:03, 2020-10-21 22:02:03, The third book in the Jake Brigance series. A 16-year-old is accused of killing a deputy in Clanton, Miss., in 1990., A doctor serving in the Navy in Afghanistan goes back to North Carolina where two women change his life., After a divorce, a former Chicago police officer resettles in an Irish village where a boy goes missing., 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., A Faustian bargain comes with a curse that affects the adventure Addie LaRue has across centuries., , , , , , 0, 0, 0, 0, 0, 0385545967, 1538728575, 073522465X, 0525954988, 0765387565, 9780385545969, 9781538728574, 9780735224650, 9780525954989, 9780765387561, nyt://book/33a48cf6-d7f3-5113-aa1e-6adcbb3853c3, nyt://book/b9bf792c-a853-54ce-8f33-7117f51be365, nyt://book/6ad22fcc-2a5d-5917-9696-bd7dbffc1247, nyt://book/6fd2cc42-7bff-59a1-9c5c-20514172cf5b, nyt://book/c9bf2d03-7b78-58d8-a9d7-a9b897d08427, Doubleday, Grand Central, Viking, Viking, Tor/Forge, 1, 2, 3, 4, 5, 0, 1, 5, 7, 4, , , , , , A TIME FOR MERCY, THE RETURN, THE SEARCHER, THE EVENING AND THE MORNING, THE INVISIBLE LIFE OF ADDIE LARUE, 2020-10-24 18:52:22, 2020-10-24 18:52:22, 2020-10-24 18:52:22, 2020-10-24 18:52:22, 2020-10-24 18:52:22, 1, 3, 2, 5, 2, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0385545967?tag=NYTBSREV-20?tag=NYTBS-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, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1538728575?tag=NYTBSREV-20?tag=NYTBS-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, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/073522465X?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+SEARCHER&author=Tana+French, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780735224650, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BSEARCHER%2FTana%2BFrench%2F9780735224650, https://bookshop.org/a/3546/9780735224650, https://www.indiebound.org/book/9780735224650?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0525954988?tag=NYTBSREV-20?tag=NYTBS-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, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0765387565?tag=NYTBSREV-20?tag=NYTBS-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
## 4 , , , , , https://www.amazon.com/dp/0593230256?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1982112697?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1984801252?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1627797041?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/dp/1982133279?tag=NYTBSREV-20?tag=NYTBS-20, , , , , , Isabel Wilkerson, Jerry Seinfeld, Glennon Doyle, Bill O'Reilly and Martin Dugard, Candace Owens, https://s1.nyt.com/du/books/images/9780593230251.jpg, https://s1.nyt.com/du/books/images/9781982112691.jpg, https://s1.nyt.com/du/books/images/9781984801258.jpg, https://s1.nyt.com/du/books/images/9781627797047.jpg, https://s1.nyt.com/du/books/images/9781982133276.jpg, 330, 338, 330, 328, 329, 500, 500, 500, 500, 500, , , , , , by Isabel Wilkerson, by Jerry Seinfeld, by Glennon Doyle, by Bill O'Reilly and Martin Dugard, by Candace Owens, , , , , , 2020-10-21 22:02:07, 2020-10-21 22:02:07, 2020-10-21 22:02:07, 2020-10-21 22:02:07, 2020-10-21 22:02:07, The Pulitzer Prize-winning journalist examines aspects of caste systems across civilizations and reveals a rigid hierarchy in America today., The comedian shares material he collected in an accordion folder over the last 45 years., The activist and public speaker describes her journey of listening to her inner voice., The ninth book in the conservative commentator’s Killing series focuses on conflicts with Native Americans., The conservative commentator makes her case that Black Americans should part ways with the Democratic Party., , , , , , 0, 0, 0, 0, 0, 0593230256, 1982112697, 1984801252, 1627797041, 1982133279, 9780593230251, 9781982112691, 9781984801258, 9781627797047, 9781982133276, nyt://book/970c3c3d-b5b3-5cf4-bd49-fa2e441babb7, nyt://book/cff78ce3-5632-5607-950d-bdc0054cdb4e, nyt://book/fbeeab6c-34bb-5c38-8f27-9fc3ced2ff01, nyt://book/9ef71e07-f784-5302-90b0-cb613c932fde, nyt://book/939abb21-e146-5f6d-82d3-a8b4deefb2b5, Random House, Simon & Schuster, Dial, Holt, Threshold Editions, 1, 2, 3, 4, 5, 5, 2, 9, 7, 6, , , , , , CASTE, IS THIS ANYTHING?, UNTAMED, KILLING CRAZY HORSE, BLACKOUT, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 11, 2, 32, 6, 5, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/0593230256?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=CASTE&author=Isabel+Wilkerson, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780593230251, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FCASTE%2FIsabel%2BWilkerson%2F9780593230251, https://bookshop.org/a/3546/9780593230251, https://www.indiebound.org/book/9780593230251?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1982112697?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=IS+THIS+ANYTHING%3F&author=Jerry+Seinfeld, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982112691, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FIS%2BTHIS%2BANYTHING%253F%2FJerry%2BSeinfeld%2F9781982112691, https://bookshop.org/a/3546/9781982112691, https://www.indiebound.org/book/9781982112691?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1984801252?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=UNTAMED&author=Glennon+Doyle, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781984801258, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FUNTAMED%2FGlennon%2BDoyle%2F9781984801258, https://bookshop.org/a/3546/9781984801258, https://www.indiebound.org/book/9781984801258?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1627797041?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=KILLING+CRAZY+HORSE&author=Bill+O%27Reilly+and+Martin+Dugard, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781627797047, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FKILLING%2BCRAZY%2BHORSE%2FBill%2BO%2527Reilly%2Band%2BMartin%2BDugard%2F9781627797047, https://bookshop.org/a/3546/9781627797047, https://www.indiebound.org/book/9781627797047?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1982133279?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=BLACKOUT&author=Candace+Owens, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982133276, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FBLACKOUT%2FCandace%2BOwens%2F9781982133276, https://bookshop.org/a/3546/9781982133276, https://www.indiebound.org/book/9781982133276?aff=NYT
## 5 , , , , , https://www.amazon.com/dp/1538761467?tag=NYTBSREV-20?tag=NYTBS-20, https://www.amazon.com/Then-She-Was-Gone-Novel-ebook/dp/B074MDD3H6?tag=NYTBS-20, https://www.amazon.com/Institute-Novel-Stephen-King/dp/1982110562?tag=NYTBS-20, https://www.amazon.com/Little-Fires-Everywhere-Celeste-Ng-ebook/dp/B01N4VW75U?tag=NYTBS-20, https://www.amazon.com/dp/1982153385?tag=NYTBSREV-20?tag=NYTBS-20, , , , , , David Baldacci, Lisa Jewell, Stephen King, Celeste Ng, Gabbie Hanna, https://s1.nyt.com/du/books/images/9781538761465.jpg, https://s1.nyt.com/du/books/images/9781501154669.jpg, https://s1.nyt.com/du/books/images/9781982110567.jpg, https://s1.nyt.com/du/books/images/9780735224308.jpg, https://s1.nyt.com/du/books/images/9781982153380.jpg, 331, 328, 328, 328, 328, 500, 495, 495, 495, 500, , , https://www.nytimes.com/2019/09/08/books/review-institute-stephen-king.html, https://www.nytimes.com/2017/09/25/books/review/little-fires-everywhere-celeste-ng.html, , by David Baldacci, by Lisa Jewell, by Stephen King, by Celeste Ng, by Gabbie Hanna, , , , , , 2020-10-21 22:02:07, 2020-10-21 22:02:07, 2020-10-21 22:02:07, 2020-10-21 22:02:07, 2020-10-21 22:02:07, The sixth book in the Memory Man series. Decker and Jamison investigate a murder in a North Dakota town in a fracking boom., Ten years after her daughter disappears, a woman tries to get her life in order but remains haunted by unanswered questions., Children with special talents are abducted and sequestered in an institution where the sinister staff seeks to extract their gifts through harsh methods., An artist with a mysterious past and a disregard for the status quo upends a quiet town outside Cleveland., A collection of illustrated poetry exploring mental health., , , , , , 0, 0, 0, 0, 0, 1538761475, 1501154656, 1982110589, 0735224315, 1982153385, 9781538761472, 9781501154652, 9781982110581, 9780735224315, 9781982153380, nyt://book/8c7071ae-893c-5b8f-ad1a-7b4ec675f6ce, nyt://book/09340746-e539-524a-ae97-435e3e765425, nyt://book/df4fe98d-bb9c-5907-9335-127b0e17f342, nyt://book/f343748c-cc89-5545-a895-324c4190a56f, nyt://book/58153315-06d5-5921-ab48-c04a21cb8c15, Grand Central, Atria, Gallery, Penguin, Atria, 1, 2, 3, 4, 5, 1, 3, 2, 7, 0, , , , , , WALK THE WIRE, THEN SHE WAS GONE, THE INSTITUTE, LITTLE FIRES EVERYWHERE, DANDELION, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2020-10-24 18:52:25, 2, 66, 7, 76, 1, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1538761467?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=WALK+THE+WIRE&author=David+Baldacci, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781538761472, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FWALK%2BTHE%2BWIRE%2FDavid%2BBaldacci%2F9781538761472, https://bookshop.org/a/3546/9781538761472, https://www.indiebound.org/book/9781538761472?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/Then-She-Was-Gone-Novel-ebook/dp/B074MDD3H6?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THEN+SHE+WAS+GONE&author=Lisa+Jewell, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781501154652, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHEN%2BSHE%2BWAS%2BGONE%2FLisa%2BJewell%2F9781501154652, https://bookshop.org/a/3546/9781501154652, https://www.indiebound.org/book/9781501154652?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/Institute-Novel-Stephen-King/dp/1982110562?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+INSTITUTE&author=Stephen+King, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982110581, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BINSTITUTE%2FStephen%2BKing%2F9781982110581, https://bookshop.org/a/3546/9781982110581, https://www.indiebound.org/book/9781982110581?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/Little-Fires-Everywhere-Celeste-Ng-ebook/dp/B01N4VW75U?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=LITTLE+FIRES+EVERYWHERE&author=Celeste+Ng, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780735224315, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FLITTLE%2BFIRES%2BEVERYWHERE%2FCeleste%2BNg%2F9780735224315, https://bookshop.org/a/3546/9780735224315, https://www.indiebound.org/book/9780735224315?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/dp/1982153385?tag=NYTBSREV-20?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=DANDELION&author=Gabbie+Hanna, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781982153380, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FDANDELION%2FGabbie%2BHanna%2F9781982153380, https://bookshop.org/a/3546/9781982153380, https://www.indiebound.org/book/9781982153380?aff=NYT
## 6 , , , , , https://www.amazon.com/White-Fragility-People-About-Racism/dp/0807047414?tag=NYTBS-20, http://www.amazon.com/Own-Words-Ruth-Bader-Ginsburg/dp/150114524X?tag=NYTBS-20, http://www.amazon.com/The-Body-Keeps-Score-Healing/dp/0670785938?tag=NYTBS-20, https://www.amazon.com/Color-Law-Forgotten-Government-Segregated/dp/1631494538?tag=NYTBS-20, http://www.amazon.com/The-Warmth-Other-Suns-Migration-ebook/dp/B003EY7JGM?tag=NYTBS-20, , , , , , Robin DiAngelo, Ruth Bader Ginsburg with Mary Hartnett and Wendy W Williams, Bessel van der Kolk, Richard Rothstein, Isabel Wilkerson, https://s1.nyt.com/du/books/images/9780807047415.jpg, https://s1.nyt.com/du/books/images/9781501145247.jpg, https://s1.nyt.com/du/books/images/9780670785933.jpg, https://s1.nyt.com/du/books/images/9781631494536.jpg, https://s1.nyt.com/du/books/images/9780679763888.jpg, 330, 328, 128, 314, 298, 495, 495, 193, 495, 450, , , , , https://www.nytimes.com/2010/08/31/books/31book.html, by Robin DiAngelo, by Ruth Bader Ginsburg with Mary Hartnett and Wendy W. Williams, by Bessel van der Kolk, by Richard Rothstein, by Isabel Wilkerson, , , , , , 2020-10-21 22:02:08, 2020-10-21 22:02:08, 2020-10-21 22:02:08, 2020-10-21 22:02:08, 2020-10-21 22:02:08, Historical and cultural analyses on what causes defensive moves by white people and how this inhibits cross-racial dialogue., A collection of articles and speeches by the Supreme Court justice., How trauma affects the body and mind, and innovative treatments for recovery., A case for how the American government abetted racial segregation in metropolitan areas across the country., An account of the Great Migration of 1915-70, in which six million African-Americans abandoned the South., , , , , , 0, 0, 0, 0, 0, 0807047414, 1501145258, 0143127748, 1631494538, 0679763880, 9780807047415, 9781501145254, 9780143127741, 9781631494536, 9780679763888, nyt://book/27f88b69-d265-5d7b-8950-01377374e783, nyt://book/4f46a96b-81fc-5a84-89bd-3a45addc5352, nyt://book/e3e33e9d-0e67-5fec-b0d2-2ecddc38ce0e, nyt://book/a632609b-e727-5818-b4ae-2d2849209e73, nyt://book/454072e5-75f0-5f77-82c4-2c75a275531b, Beacon, Simon & Schuster, Penguin, Liveright, Vintage, 1, 2, 3, 4, 5, 1, 2, 3, 8, 9, , , , , https://www.nytimes.com/2010/09/05/books/review/Oshinsky-t.html, WHITE FRAGILITY, MY OWN WORDS, THE BODY KEEPS THE SCORE, THE COLOR OF LAW, THE WARMTH OF OTHER SUNS, 2020-10-24 18:52:26, 2020-10-24 18:52:26, 2020-10-24 18:52:26, 2020-10-24 18:52:26, 2020-10-24 18:52:26, 111, 13, 104, 25, 42, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/White-Fragility-People-About-Racism/dp/0807047414?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=WHITE+FRAGILITY&author=Robin+DiAngelo, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780807047415, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FWHITE%2BFRAGILITY%2FRobin%2BDiAngelo%2F9780807047415, https://bookshop.org/a/3546/9780807047415, https://www.indiebound.org/book/9780807047415?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, http://www.amazon.com/Own-Words-Ruth-Bader-Ginsburg/dp/150114524X?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=MY+OWN+WORDS&author=Ruth+Bader+Ginsburg+with+Mary+Hartnett+and+Wendy+W+Williams, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781501145254, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FMY%2BOWN%2BWORDS%2FRuth%2BBader%2BGinsburg%2Bwith%2BMary%2BHartnett%2Band%2BWendy%2BW%2BWilliams%2F9781501145254, https://bookshop.org/a/3546/9781501145254, https://www.indiebound.org/book/9781501145254?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, http://www.amazon.com/The-Body-Keeps-Score-Healing/dp/0670785938?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+BODY+KEEPS+THE+SCORE&author=Bessel+van+der+Kolk, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780143127741, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BBODY%2BKEEPS%2BTHE%2BSCORE%2FBessel%2Bvan%2Bder%2BKolk%2F9780143127741, https://bookshop.org/a/3546/9780143127741, https://www.indiebound.org/book/9780143127741?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, https://www.amazon.com/Color-Law-Forgotten-Government-Segregated/dp/1631494538?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+COLOR+OF+LAW&author=Richard+Rothstein, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9781631494536, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BCOLOR%2BOF%2BLAW%2FRichard%2BRothstein%2F9781631494536, https://bookshop.org/a/3546/9781631494536, https://www.indiebound.org/book/9781631494536?aff=NYT, Amazon, Apple Books, Barnes and Noble, Books-A-Million, Bookshop, Indiebound, http://www.amazon.com/The-Warmth-Other-Suns-Migration-ebook/dp/B003EY7JGM?tag=NYTBS-20, https://du-gae-books-dot-nyt-du-prd.appspot.com/buy?title=THE+WARMTH+OF+OTHER+SUNS&author=Isabel+Wilkerson, https://www.anrdoezrs.net/click-7990613-11819508?url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2F%3Fean%3D9780679763888, https://www.anrdoezrs.net/click-7990613-35140?url=https%3A%2F%2Fwww.booksamillion.com%2Fp%2FTHE%2BWARMTH%2BOF%2BOTHER%2BSUNS%2FIsabel%2BWilkerson%2F9780679763888, https://bookshop.org/a/3546/9780679763888, https://www.indiebound.org/book/9780679763888?aff=NYT
But there are 17 columns, not all of which are necessary. So I decided to look at only the core information in the data, which I considered to be the list names and descriptions of each type of list.
lists_df2 <- subset(lists_df, select = c(results.lists.list_name, results.lists.display_name))
head(lists_df2)
## results.lists.list_name results.lists.display_name
## 1 Combined Print and E-Book Fiction Combined Print & E-Book Fiction
## 2 Combined Print and E-Book Nonfiction Combined Print & E-Book Nonfiction
## 3 Hardcover Fiction Hardcover Fiction
## 4 Hardcover Nonfiction Hardcover Nonfiction
## 5 Trade Fiction Paperback Paperback Trade Fiction
## 6 Paperback Nonfiction Paperback Nonfiction
With a nice list of the types of lists available, I wanted to retrieve the top 10 hardcover fiction titles. So I used the API for the Hardcover Fiction list and extracted it into R.
hardcoverAPI <- GET("https://api.nytimes.com/svc/books/v3/lists/current/hardcover-fiction.json?api-key=xikY86V9fJdiqGfYJAzKuo39jVKgZj4W&author=Obama", verbose())
http_status(hardcoverAPI)
## $category
## [1] "Success"
##
## $reason
## [1] "OK"
##
## $message
## [1] "Success: (200) OK"
I extracted the raw text and saved it into a data frame, and clean it up to just list the hardcover fiction books by rank, as well as showing the author, publisher and 13-digit ISBN.
hardcover <- content(hardcoverAPI, "text", encoding='UTF-8')
hardcovertext <-fromJSON(hardcover, flatten = TRUE)
hardcover_df <- as.data.frame(hardcovertext$results$books)
hardcover_df <- subset(hardcover_df, select = c(rank, title, contributor, publisher, primary_isbn13))
hardcover_df
## rank title contributor
## 1 1 A TIME FOR MERCY by John Grisham
## 2 2 THE RETURN by Nicholas Sparks
## 3 3 THE SEARCHER by Tana French
## 4 4 THE EVENING AND THE MORNING by Ken Follett
## 5 5 THE INVISIBLE LIFE OF ADDIE LARUE by V.E. Schwab
## 6 6 THE BOOK OF TWO WAYS by Jodi Picoult
## 7 7 LEAVE THE WORLD BEHIND by Rumaan Alam
## 8 8 TROUBLES IN PARADISE by Elin Hilderbrand
## 9 9 THE VANISHING HALF by Brit Bennett
## 10 10 JINGLE ALL THE WAY by Debbie Macomber
## 11 11 WHERE THE CRAWDADS SING by Delia Owens
## 12 12 INVISIBLE GIRL by Lisa Jewell
## 13 13 THE COAST-TO-COAST MURDERS by James Patterson and J.D. Barker
## 14 14 ANXIOUS PEOPLE by Fredrik Backman
## 15 15 THE GUEST LIST by Lucy Foley
## publisher primary_isbn13
## 1 Doubleday 9780385545969
## 2 Grand Central 9781538728574
## 3 Viking 9780735224650
## 4 Viking 9780525954989
## 5 Tor/Forge 9780765387561
## 6 Ballantine 9781984818355
## 7 Ecco 9780062667632
## 8 Little, Brown 9780316435581
## 9 Riverhead 9780525536291
## 10 Ballantine 9781984818751
## 11 Putnam 9780735219090
## 12 Atria 9781982137335
## 13 Little, Brown 9780316457422
## 14 Atria 9781501160837
## 15 Morrow 9780062868930
Reading data from the web using an API is an interesting process. Using an API to extract data is like signing a contract in terms of how the data will be transferred. It appears that the data is formatted in either JSON or XML, so understanding the nodes where the data that you want is stored is still a very important aspect of the entire process. It helps to be able to pause and examine the data in whatever format it is in, so that you can familiarize yourself with where exactly the data that you want is located inside the downloaded package of data. Overall though, it is worth the effort to be able to extract data from authoritative sources by using and API.