import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

//RapidAPI header  https://rapidapi.com/spamakashrajtech/api/corona-virus-world-and-india-data
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://spotify23.p.rapidapi.com/search/?q=%3CREQUIRED%3E&type=multi&offset=0&limit=10&numberOfTopResults=5"))
    .header("x-rapidapi-key", "4174dcdab0msh532b4397beaaf35p1a67c6jsna9ed357a47ed")
    .header("x-rapidapi-host", "spotify23.p.rapidapi.com")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

//RapidAPI request and response
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

//RapidAPI Body
System.out.println(response.body());
{"albums":{"totalCount":28,"items":[{"data":{"uri":"spotify:album:1rVhockt4RAiZFaK3M3zPB","name":"No Jacket Required (2016 Remaster)","artists":{"items":[{"uri":"spotify:artist:4lxfqrEsLX6N1N4OCSkILp","profile":{"name":"Phil Collins"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0279553c4dcec1846d3a5c49ab","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485179553c4dcec1846d3a5c49ab","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27379553c4dcec1846d3a5c49ab","width":640,"height":640}]},"date":{"year":1985}}},{"data":{"uri":"spotify:album:7avlHipAwnKsxcXwC9Wpin","name":"No Jacket Required (Deluxe Edition)","artists":{"items":[{"uri":"spotify:artist:4lxfqrEsLX6N1N4OCSkILp","profile":{"name":"Phil Collins"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0257480be4ce4fd7659a25b7d9","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485157480be4ce4fd7659a25b7d9","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27357480be4ce4fd7659a25b7d9","width":640,"height":640}]},"date":{"year":1985}}},{"data":{"uri":"spotify:album:3JalRx7hoyAC7pyoc7aaw7","name":"Some Assembly Required","artists":{"items":[{"uri":"spotify:artist:1dwRnam2taNMv8H3VR6isd","profile":{"name":"Assembly of Dust"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e023a08256fb7ce8a38b41ea5ff","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d000048513a08256fb7ce8a38b41ea5ff","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b2733a08256fb7ce8a38b41ea5ff","width":640,"height":640}]},"date":{"year":2009}}},{"data":{"uri":"spotify:album:3xEUUVwjNVvTaHQjcpea8O","name":"Assembly Required","artists":{"items":[{"uri":"spotify:artist:6ytGxUYeXamODJwiXuZvjO","profile":{"name":"Olivia Penalva"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02e098b0f0c819f5075263fd0c","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851e098b0f0c819f5075263fd0c","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273e098b0f0c819f5075263fd0c","width":640,"height":640}]},"date":{"year":2022}}},{"data":{"uri":"spotify:album:5gxL1YPTDUtyUG2Qp3wVO0","name":"Required Etiquette Vol. 1","artists":{"items":[{"uri":"spotify:artist:0LyfQWJT6nXafLPZqxe9Of","profile":{"name":"Various Artists"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e023f494786d82cc0f20a452dbe","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d000048513f494786d82cc0f20a452dbe","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b2733f494786d82cc0f20a452dbe","width":640,"height":640}]},"date":{"year":2014}}},{"data":{"uri":"spotify:album:53aQdegVPKq4MgSGgCQuLz","name":"No Faith Required","artists":{"items":[{"uri":"spotify:artist:4DMlDJn7CPSSS0DuUf1vrH","profile":{"name":"Snowy White"}},{"uri":"spotify:artist:5zRIFTHDQwGWKZ7z61fFKb","profile":{"name":"The White Flames"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02c3e11f275c54926f5bfcb411","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851c3e11f275c54926f5bfcb411","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273c3e11f275c54926f5bfcb411","width":640,"height":640}]},"date":{"year":1996}}},{"data":{"uri":"spotify:album:1nYOe3S7pWbZwbzS92IScH","name":"Required Repertoire for the 46th PTNA Piano Competition 2022, Vol. 1","artists":{"items":[{"uri":"spotify:artist:0LyfQWJT6nXafLPZqxe9Of","profile":{"name":"Various Artists"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0258c6ffa1c61bed0f61ac1204","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485158c6ffa1c61bed0f61ac1204","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27358c6ffa1c61bed0f61ac1204","width":640,"height":640}]},"date":{"year":2022}}},{"data":{"uri":"spotify:album:0BbeoTXqQv0qKki6CDcznI","name":"Disassembly Required (Teaser Original Soundtrack)","artists":{"items":[{"uri":"spotify:artist:0yXeAQirPMVzAlhxGvux1s","profile":{"name":"Liam Vickers"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0226cf2e2751ee0aec2cf62479","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485126cf2e2751ee0aec2cf62479","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27326cf2e2751ee0aec2cf62479","width":640,"height":640}]},"date":{"year":2021}}},{"data":{"uri":"spotify:album:55bIeFDVLsLwa3WEnSJe0C","name":"No Fantasy Required","artists":{"items":[{"uri":"spotify:artist:5l9wiTZVfqQTfMDOt0HtwC","profile":{"name":"Tiga"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e023542e4268c5a12d41a98b164","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d000048513542e4268c5a12d41a98b164","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b2733542e4268c5a12d41a98b164","width":640,"height":640}]},"date":{"year":2016}}},{"data":{"uri":"spotify:album:2ZNhj2qao5CEasrS2NH45J","name":"No Assembly Required","artists":{"items":[{"uri":"spotify:artist:70BRQ5tBte6kVqHviL3srE","profile":{"name":"Pieces Of A Dream"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0238b547096e33bf308c492a4b","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485138b547096e33bf308c492a4b","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27338b547096e33bf308c492a4b","width":640,"height":640}]},"date":{"year":2004}}}]},"artists":{"totalCount":9,"items":[{"data":{"uri":"spotify:artist:1g05P4Ua1FzC0cQxSlgmyu","profile":{"name":"Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5ebc86baaa7ad722a74dda4d43c","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f178c86baaa7ad722a74dda4d43c","width":160,"height":160}]}}}},{"data":{"uri":"spotify:artist:2FikzP9y7jVNqwpMgvyxnk","profile":{"name":"Assembly Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5eb4cbc0b4529e9795a45a7ffe2","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f1784cbc0b4529e9795a45a7ffe2","width":160,"height":160}]}}}},{"data":{"uri":"spotify:artist:4C2vxz7RaHdh9A97EA4NEp","profile":{"name":"Required for Entry"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5eb49f6cfb7fc3162bd3024683a","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f17849f6cfb7fc3162bd3024683a","width":160,"height":160}]}}}},{"data":{"uri":"spotify:artist:0S5ZedpU3jHX9ihOrOVYhT","profile":{"name":"Maintenance Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5ebbbe71234449ca45b2bc7da2a","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f178bbe71234449ca45b2bc7da2a","width":160,"height":160}]}}}},{"data":{"uri":"spotify:artist:0sdfGgVQxDgy80P7rIP7Mn","profile":{"name":"Hard Hat Required!!"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5eb74b15ab2e484e2def00ef393","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f17874b15ab2e484e2def00ef393","width":160,"height":160}]}}}},{"data":{"uri":"spotify:artist:7npQgtl4CC9gX2uq9voTT2","profile":{"name":"No Assembly Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5ebd0309f42daa0bfd24954bd6e","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f178d0309f42daa0bfd24954bd6e","width":160,"height":160}]}}}},{"data":{"uri":"spotify:artist:5QDlAcYAOhP52ors9UnBah","profile":{"name":"No Assembly Required"},"visuals":{"avatarImage":null}}},{"data":{"uri":"spotify:artist:5Ct8sSRWZX4Pp9hEJ6Qr9f","profile":{"name":"No Assembly Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27391150be1b9ed929035666754","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485191150be1b9ed929035666754","width":64,"height":64}]}}}},{"data":{"uri":"spotify:artist:1q1qCPxxITofbZLotknvyB","profile":{"name":"Some Assembly Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273783e027a2b93eb73654f71e6","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851783e027a2b93eb73654f71e6","width":64,"height":64}]}}}}]},"episodes":{"totalCount":904,"items":[{"data":{"uri":"spotify:episode:4afg7iiB5Ql8hv5DCpP9KH","name":"Ep. 1023 - New Medical Guidelines Say Parental Consent Not Required For Child Gender Transition","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d306e6ebc33226673336530f8","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f306e6ebc33226673336530f8","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a306e6ebc33226673336530f8","width":640,"height":640}]},"duration":{"totalMilliseconds":3435546},"releaseDate":{"isoString":"2022-09-16T18:30:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d306e6ebc33226673336530f8","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f306e6ebc33226673336530f8","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a306e6ebc33226673336530f8","width":640,"height":640}]}},"description":"Click here to join the member exclusive portion of my show: https:\/\/utm.io\/ueSEm\u00a0  Today on the Matt Walsh Show, the leading \u201ctransgender health\u201d organization has finally released its new guidelines recommending medical and surgical transition for kids. It also recommends going around the parents if they aren\u2019t \u201caffirming.\u201d Parental consent is now optional, says WPATH. Also, in one of the best stories of the year, governor Ron DeSantis ships plane loads of illegals to the sanctuary city of Martha\u2019s Vineyard. We\u2019ll find out how this is just like the holocaust, according to the Left. And the treasury secretary says that the IRS is the foundation of our country. In our Daily Cancellation, a fat activist on Twitter says that she\u2019s only fat because of white people. How does she connect those dots?\u00a0 \u00a0 - - -\u00a0  DailyWire+:  Stop giving your money to woke corporations that hate you. Get your Jeremy\u2019s Razors today at https:\/\/www.jeremysrazors.com.\u00a0  Get the brand new Johnny the Walrus Plushie here: https:\/\/bit.ly\/3CHeLlu\u00a0  \u00a0- - -\u00a0  Today\u2019s Sponsors:  With thousands of satisfied customers and an A+ rating with the Better Business Bureau, Birch Gold can help you protect your savings. Text \"WALSH\" to 989898 for your no-cost, no-obligation, FREE information kit.  Get 10% OFF Your Will! Use Promo Code \u2018WALSH\u2019 at EpicWill.com\u00a0 - - -  Socials:  Follow on Twitter: https:\/\/bit.ly\/3Rv1VeF\u00a0  Follow on Instagram: https:\/\/bit.ly\/3KZC3oA\u00a0  Follow on Facebook: https:\/\/bit.ly\/3eBKjiA\u00a0  Subscribe on YouTube: https:\/\/bit.ly\/3RQp4rs\u00a0 Learn more about your ad choices. Visit podcastchoices.com\/adchoices","contentRating":{"label":"NONE"}}},{"data":{"uri":"spotify:episode:1K69VSdmJf2iWMGd7Ys21j","name":"No More Than This Is Required | Ask Daily Stoic","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d8488dbb4b623f432a3b6a673","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f8488dbb4b623f432a3b6a673","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a8488dbb4b623f432a3b6a673","width":640,"height":640}]},"duration":{"totalMilliseconds":973635},"releaseDate":{"isoString":"2022-09-30T07:00:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d8488dbb4b623f432a3b6a673","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f8488dbb4b623f432a3b6a673","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a8488dbb4b623f432a3b6a673","width":640,"height":640}]}},"description":"We are impressed by people who do incredible things\u2013whether it\u2019s creating some great work of art or pulling off some impossible athletic feat, bringing about social change or building an enormous organization. How did they do it? Where did that come from? Sometimes to excuse our own failures, we tell ourselves it was genius or genetics, inspiration rather than perspiration.\ud83d\udcd5 Ryan Holiday's new book \"Discipline Is Destiny\" is available for pre-order now! We\u2019ve put together a bunch of cool preorder bonuses\u2014among them is a signed and numbered page from the original manuscript of the book. You can learn more about those and how to receive them over at Dailystoic.com\/preorder.\u00a0\u2709\ufe0f Want Stoic wisdom delivered to your inbox daily? Sign up for the FREE Daily Stoic email at https:\/\/dailystoic.com\/dailyemail\ud83d\udcf1 Follow us: Instagram, Twitter, YouTube, TikTok, and Facebook\u00a0See Privacy Policy at https:\/\/art19.com\/privacy and California Privacy Notice at https:\/\/art19.com\/privacy#do-not-sell-my-info.","contentRating":{"label":"NONE"}}},{"data":{"uri":"spotify:episode:0KoDcIN8UXlDFKYYiuwClc","name":"S7E2: No Roadmap Required","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68dc003d1a0800c56a9b3a5f29c","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1fc003d1a0800c56a9b3a5f29c","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8ac003d1a0800c56a9b3a5f29c","width":640,"height":640}]},"duration":{"totalMilliseconds":2357774},"releaseDate":{"isoString":"2022-09-20T00:00:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68dc003d1a0800c56a9b3a5f29c","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1fc003d1a0800c56a9b3a5f29c","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8ac003d1a0800c56a9b3a5f29c","width":640,"height":640}]}},"description":"Michaela always craved the kind of life she didn\u2019t have as a kid. She\u2019d find a stable guy, settle down, and start a family. For several years, she seemed to be on her way. But then she discovered that, no matter how clear that original path may have seemed, she ultimately had to build her own. Email us at loveletters@boston.com.","contentRating":{"label":"EXPLICIT"}}},{"data":{"uri":"spotify:episode:4GN7MqKoicdv5lXOVpLRGc","name":"Orgasms & Oral (No Penetration Required)","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68de0ba39359ef77404cd19e8e5","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1fe0ba39359ef77404cd19e8e5","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8ae0ba39359ef77404cd19e8e5","width":640,"height":640}]},"duration":{"totalMilliseconds":1971853},"releaseDate":{"isoString":"2022-07-12T18:21:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68de0ba39359ef77404cd19e8e5","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1fe0ba39359ef77404cd19e8e5","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8ae0ba39359ef77404cd19e8e5","width":640,"height":640}]}},"description":"It\u2019s a good time to expand our definition of sex. At the end of the day, sex is play for adults: it\u2019s where we collaborate with another person, creating a momentary world of pleasure and eroticism with them. But so often, we assume that sex equals penetration, and here\u2019s the problem with that: not everyone orgasms during penetration. Not everyone feels erotic during penetration! So let\u2019s make sex more interesting and exploratory, shall we?On today\u2019s show, I\u2019m talking up all the different types of non-penetrative sex \u2013 like mutual masturbation, sensual massage, toys, hand stuff \u2013 to help you break out of a conventional sex script, and have sex that\u2019s more tailored to your personality and desires. Because you never have to take penetration off the table entirely\u2026but what would happen if you took it off the table for a little while? (Hint: probably more orgasms.)\u00a0Show Notes:Prostate Play 101Want to Try a Sex Cleanse?\u00a0Penis Problems, Solved\u00a0Shop with Emily4 Ways to Close The Orgasm GapFirst Date, First Orgasm, First Threesome\u00a0 Hosted on Acast. See acast.com\/privacy for more information.","contentRating":{"label":"EXPLICIT"}}},{"data":{"uri":"spotify:episode:5JTNmxeJ0xysbdspkgDElm","name":"Peloton: Some Assembly Required","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d7bc876aa398b648f92bceaa5","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f7bc876aa398b648f92bceaa5","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a7bc876aa398b648f92bceaa5","width":640,"height":640}]},"duration":{"totalMilliseconds":1358367},"releaseDate":{"isoString":"2022-08-24T20:00:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d7bc876aa398b648f92bceaa5","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f7bc876aa398b648f92bceaa5","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a7bc876aa398b648f92bceaa5","width":640,"height":640}]}},"description":"Amazon becomes the first partner to sell Peloton's equipment and apparel on their own site. (0:21) Bill Mann discusses: - The upside potential for Peloton - Whether Peloton may become part of Amazon's Prime membership offerings - Toll Brothers blaming supply chain and labor shortages for a cut in guidance - Nordstrom's challenges with inventory and family ownership (11:31) Jeremy Bowman and Jason Hall engage in a Bull vs. Bear debate over Beyond Meat. Who won the debate? You can cast your vote in our poll on Twitter @MotleyFoolMoney. Stocks mentioned: PTON, AMZN, TOL, JWN, BYND, YUM Host: Chris Hill Guest: Bill Mann Producer: Ricky Mulvey Engineer: Dan Boyd","contentRating":{"label":"NONE"}}},{"data":{"uri":"spotify:episode:5b7S50H9UhDr1iSQHBDxnD","name":"WHATEVER IS REQUIRED","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/bcc27befd398f1cb53da780aeac22af6c3d6264f","width":64,"height":36},{"url":"https:\/\/i.scdn.co\/image\/4b3673c2783a84793200bcfc75186a6f94b47284","width":300,"height":169},{"url":"https:\/\/i.scdn.co\/image\/935182f3581b526209c3c7236987a6717865d362","width":640,"height":360}]},"duration":{"totalMilliseconds":211644},"releaseDate":{"isoString":"2018-09-27T02:06:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/1dfd39d29f4f582a1b05fc0e5b09e00d97c780b4","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/f52eb414473d024bcd8edf24ba8787a4cbdb0059","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/9daaf33e2fe6b144fc5423ce2bdc19fc3c9190f4","width":640,"height":640}]}},"description":"This episode is spoken by Dr. Ken Friendly, Les Brown, Eric Thomas and Andy Frisella. You can see more of Dr. Ken Friendly at tr.im\/DrKenFriendly, Les Brown at tr.im\/LesBrown, Eric Thomas at tr.im\/EricThomas and Andy Frisella at tr.im\/AndyFrisella. The music is MK Ultra by Really Slow Motion. You can see more of Really Slow Motion at tr.im\/ReallySlowMotion.","contentRating":{"label":"NONE"}}},{"data":{"uri":"spotify:episode:7ApZigXnepkUslqMgFDrwC","name":"r\/Choosingbeggars JOB OPENING: PhD required. Pay: $0","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/8ac63e7a1028fce0c8790ed9738614d4d886b6cc","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/a07c27c4d7bdd30b14c8f828002d1c3f0a74d1ad","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/b62520a69d29390116eb0f9f9a911f780c54960e","width":640,"height":640}]},"duration":{"totalMilliseconds":954618},"releaseDate":{"isoString":"2021-02-05T14:07:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/8ac63e7a1028fce0c8790ed9738614d4d886b6cc","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/a07c27c4d7bdd30b14c8f828002d1c3f0a74d1ad","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/b62520a69d29390116eb0f9f9a911f780c54960e","width":640,"height":640}]}},"description":"r\/Choosingbeggars Are you ready for an exciting new career with CHOOSING BEGGARS INCORPORATED?! We've got a great new job opening for a qualified candidate who has a PhD and 20 years of work experience. The pay is only $0 to start, but if you work here you will be rewarded with a sense of pride and accomplishment!","contentRating":{"label":"NONE"}}},{"data":{"uri":"spotify:episode:5OntfroVtFNsQqqu5nzDb7","name":"The Video Game Required Reading List: 1985-1989 [The Resties]","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68da6dec137de172171fc62d9df","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1fa6dec137de172171fc62d9df","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8aa6dec137de172171fc62d9df","width":640,"height":640}]},"duration":{"totalMilliseconds":3750033},"releaseDate":{"isoString":"2022-07-12T06:00:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/0eac8fed3787b82b1f34f5d4ba7a890764d17e48","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/7ca66d4bb76706d2a7456813872d08815fe4b9ef","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/9dcdb02a31e7eb76c0b97e272476db6552838a3a","width":640,"height":640}]}},"description":"The Resties Required Reading List returns! \u00a0Our goal is to curate and contextualize a \"must play\" list of 25 games released between 1980 to 2020. This week, we've selected games from 1985-1989. Join us as we time travel to the premieres of mega-franchises like Mario, Zelda, Metroid, and Tetris. Let us know what you think of the series and your personal reading list at @thebestiespod on Twitter.","contentRating":{"label":"EXPLICIT"}}},{"data":{"uri":"spotify:episode:0DCotGPJ9bb6lrNqLgrLpP","name":"46A-Jason and the Argonauts: Some Assembly Required","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/c7c86f9b7300f99a7514b747ba152fa1fd473fdf","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/a6a67cf966491d4ee409c7a06ddbcc70911046dc","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/012421983a933a7bbf27aeb0d59eab852d524803","width":640,"height":640}]},"duration":{"totalMilliseconds":2596780},"releaseDate":{"isoString":"2016-09-28T03:59:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/c7c86f9b7300f99a7514b747ba152fa1fd473fdf","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/a6a67cf966491d4ee409c7a06ddbcc70911046dc","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/012421983a933a7bbf27aeb0d59eab852d524803","width":640,"height":640}]}},"description":"The beginning of the story of Jason and his legendary Argonauts doesn't start with Jason, but with Zeus being...well, Zeus, and kidnapping an unsuspecting woman. There is a dragon, a giant bronze robot, and court intrigue, leading to some familiar names coming back to help Jason travel to a faraway land and obtain the golden fleece. Those names include Hercules, Theseus, Laertes (father of Odysseus), Autolycus, Peleus (the father of Achilles), Augeus (with the legendarily dirty stables), and more. It's the biggest meetup of everyone we've met so far...well, everyone that isn't in Hades (Sisyphus) tied to a rock (Prometheus) or wandering blind through a plain (Bellerophon). The creature looks so much like a normal person it's uncanny. I mean, he looks like a normal person once you get past his humorously big ears, nose, and hands. And his gray skin...that sometimes glows. Ok, he looks nothing like a normal person. Sponsors: Check out new sponsor Harry's Razors for a free shave kit (just pay shipping, but that's only like $3): http:\/\/www.harrys.com\/\u00a0and use the code MYTHS and checkout. Like listening to stories by professionals who don't fumble the pronunciations constantly? Check out http:\/\/www.audible.com\/myths Say \"hi\" on Twitter! Say \"good day\" on Facebook! Music:  \"The Longshoreman\" by Blue Dot Sessions  \"Spell\" by Rolemusic  \"Poor Wayfaring Stranger\" by Podington Bear  \"One Dirty Sleeve\" by Blue Dot Sessions  \"Micolai\" by Blue Dot Sessions  \"Haena\" by Blue Dot Sessions  \"Discovery Harbor\" by Blue Dot Sessions  \"Space (Outro)\" by Andy G. Cohen  \"Castle Theme\" by VisagerSupport the show: https:\/\/www.mythpodcast.com\/membershipSee omnystudio.com\/listener for privacy information.","contentRating":{"label":"NONE"}}},{"data":{"uri":"spotify:episode:6FeAgItK1zUk4EiipwkcVk","name":"Kelsey Grammer: Vanity is Required","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d5d73cb99089e01158d596359","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f5d73cb99089e01158d596359","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a5d73cb99089e01158d596359","width":640,"height":640}]},"duration":{"totalMilliseconds":2573426},"releaseDate":{"isoString":"2022-01-27T05:00:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d5d73cb99089e01158d596359","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f5d73cb99089e01158d596359","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a5d73cb99089e01158d596359","width":640,"height":640}]}},"description":"It's a\u00a0thespian's dream when Kelsey Grammer and Rob Lowe get behind the mic\u2014something Kelsey is very familiar with. On today's episode you'll find out the differences between acting for the\u00a0stage and screen, Kelsey's new beer, and maybe a couple of hints at the\u00a0Frasier reboot!\u00a0Got a question for Rob? Call our voicemail at (323) 570-4551. Yours could get featured on the show!\u00a0","contentRating":{"label":"EXPLICIT"}}}]},"genres":{"totalCount":0,"items":[]},"playlists":{"totalCount":3,"items":[{"data":{"uri":"spotify:playlist:4Je4L7rV8xRuiybokARidj","name":"Audiophile\u2019s Guide to Eargasms: Headphones Required \ud83c\udfa7","description":"An eclectic mix of some of my favorite songs to listen to with headphones. Headphones Required for Eargasm Experience!","images":{"items":[{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67706c0000da848349d25e06538a01f545e4b4","width":640,"height":640}]}]},"owner":{"name":"Priscilla Bernstein"}}},{"data":{"uri":"spotify:playlist:4mTq7OtfwClwWcCGOseL6Y","name":"Lipscomb Rock and Roll - Required Recordings","description":"This playlist was created to facilitate study of the history of rock and roll as presented in Scott D. Lipscomb&#x27;s &quot;Rock and roll: Its history and stylistic development&quot; (8th edition). See the Recommended Recordings list for additional suggestions beyond this core set of tracks.","images":{"items":[{"sources":[{"url":"https:\/\/mosaic.scdn.co\/640\/ab67616d00001e022f017e3180aca26809813d2cab67616d00001e0246556d7ac53c73f319d33442ab67616d00001e028f5281f66452016858aef137ab67616d00001e02a0b8a1ce10fddbba6879262e","width":640,"height":640},{"url":"https:\/\/mosaic.scdn.co\/300\/ab67616d00001e022f017e3180aca26809813d2cab67616d00001e0246556d7ac53c73f319d33442ab67616d00001e028f5281f66452016858aef137ab67616d00001e02a0b8a1ce10fddbba6879262e","width":300,"height":300},{"url":"https:\/\/mosaic.scdn.co\/60\/ab67616d00001e022f017e3180aca26809813d2cab67616d00001e0246556d7ac53c73f319d33442ab67616d00001e028f5281f66452016858aef137ab67616d00001e02a0b8a1ce10fddbba6879262e","width":60,"height":60}]}]},"owner":{"name":"Scott Lipscomb"}}},{"data":{"uri":"spotify:playlist:5HcGRtFtRbYIXuzn50QMdP","name":"We Are Scientists - Required Reading","description":"Using a careful combination of streaming statistics and the clapping sounds we hear at shows, we\u2019ve generated the definitive Greatest Hits playlist. For fans of We Are Scientists, and of rock &amp; roll music, this is truly\u2026 Required Reading.","images":{"items":[{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67706c0000da8457377918dcef0337833b2456","width":640,"height":640}]}]},"owner":{"name":"We Are Scientists"}}}]},"podcasts":{"totalCount":0,"items":[]},"topResults":{"items":[{"data":{"uri":"spotify:artist:1g05P4Ua1FzC0cQxSlgmyu","profile":{"name":"Required"},"visuals":{"avatarImage":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6761610000e5ebc86baaa7ad722a74dda4d43c","width":640,"height":640},{"url":"https:\/\/i.scdn.co\/image\/ab6761610000f178c86baaa7ad722a74dda4d43c","width":160,"height":160}]}}}},{"data":{"uri":"spotify:track:0AzjJdpWFNfl2Jfq8PiNwA","id":"0AzjJdpWFNfl2Jfq8PiNwA","name":"Required","albumOfTrack":{"uri":"spotify:album:0TCeHxWUMuwosZORJ6yBd9","name":"God Works","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0285c561c798615f07db3b3642","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485185c561c798615f07db3b3642","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27385c561c798615f07db3b3642","width":640,"height":640}]},"id":"0TCeHxWUMuwosZORJ6yBd9","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/0TCeHxWUMuwosZORJ6yBd9?si=T6vpORVoSpeqsNc51nYFcQ"}},"artists":{"items":[{"uri":"spotify:artist:6aEn1FrJfuRVm9CXpxzLge","profile":{"name":"Papy Jeico"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":45375},"playability":{"playable":true}}},{"data":{"uri":"spotify:playlist:4Je4L7rV8xRuiybokARidj","name":"Audiophile\u2019s Guide to Eargasms: Headphones Required \ud83c\udfa7","description":"An eclectic mix of some of my favorite songs to listen to with headphones. Headphones Required for Eargasm Experience!","images":{"items":[{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67706c0000da848349d25e06538a01f545e4b4","width":640,"height":640}]}]},"owner":{"name":"Priscilla Bernstein"}}},{"data":{"uri":"spotify:album:1rVhockt4RAiZFaK3M3zPB","name":"No Jacket Required (2016 Remaster)","artists":{"items":[{"uri":"spotify:artist:4lxfqrEsLX6N1N4OCSkILp","profile":{"name":"Phil Collins"}}]},"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0279553c4dcec1846d3a5c49ab","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485179553c4dcec1846d3a5c49ab","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27379553c4dcec1846d3a5c49ab","width":640,"height":640}]},"date":{"year":1985}}},{"data":{"uri":"spotify:episode:4afg7iiB5Ql8hv5DCpP9KH","name":"Ep. 1023 - New Medical Guidelines Say Parental Consent Not Required For Child Gender Transition","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d306e6ebc33226673336530f8","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f306e6ebc33226673336530f8","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a306e6ebc33226673336530f8","width":640,"height":640}]},"duration":{"totalMilliseconds":3435546},"releaseDate":{"isoString":"2022-09-16T18:30:00Z"},"podcast":{"coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab6765630000f68d306e6ebc33226673336530f8","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67656300005f1f306e6ebc33226673336530f8","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab6765630000ba8a306e6ebc33226673336530f8","width":640,"height":640}]}},"description":"Click here to join the member exclusive portion of my show: https:\/\/utm.io\/ueSEm\u00a0  Today on the Matt Walsh Show, the leading \u201ctransgender health\u201d organization has finally released its new guidelines recommending medical and surgical transition for kids. It also recommends going around the parents if they aren\u2019t \u201caffirming.\u201d Parental consent is now optional, says WPATH. Also, in one of the best stories of the year, governor Ron DeSantis ships plane loads of illegals to the sanctuary city of Martha\u2019s Vineyard. We\u2019ll find out how this is just like the holocaust, according to the Left. And the treasury secretary says that the IRS is the foundation of our country. In our Daily Cancellation, a fat activist on Twitter says that she\u2019s only fat because of white people. How does she connect those dots?\u00a0 \u00a0 - - -\u00a0  DailyWire+:  Stop giving your money to woke corporations that hate you. Get your Jeremy\u2019s Razors today at https:\/\/www.jeremysrazors.com.\u00a0  Get the brand new Johnny the Walrus Plushie here: https:\/\/bit.ly\/3CHeLlu\u00a0  \u00a0- - -\u00a0  Today\u2019s Sponsors:  With thousands of satisfied customers and an A+ rating with the Better Business Bureau, Birch Gold can help you protect your savings. Text \"WALSH\" to 989898 for your no-cost, no-obligation, FREE information kit.  Get 10% OFF Your Will! Use Promo Code \u2018WALSH\u2019 at EpicWill.com\u00a0 - - -  Socials:  Follow on Twitter: https:\/\/bit.ly\/3Rv1VeF\u00a0  Follow on Instagram: https:\/\/bit.ly\/3KZC3oA\u00a0  Follow on Facebook: https:\/\/bit.ly\/3eBKjiA\u00a0  Subscribe on YouTube: https:\/\/bit.ly\/3RQp4rs\u00a0 Learn more about your ad choices. Visit podcastchoices.com\/adchoices","contentRating":{"label":"NONE"}}}],"featured":[]},"tracks":{"totalCount":26,"items":[{"data":{"uri":"spotify:track:0AzjJdpWFNfl2Jfq8PiNwA","id":"0AzjJdpWFNfl2Jfq8PiNwA","name":"Required","albumOfTrack":{"uri":"spotify:album:0TCeHxWUMuwosZORJ6yBd9","name":"God Works","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0285c561c798615f07db3b3642","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485185c561c798615f07db3b3642","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27385c561c798615f07db3b3642","width":640,"height":640}]},"id":"0TCeHxWUMuwosZORJ6yBd9","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/0TCeHxWUMuwosZORJ6yBd9?si=RankiXEkRsWywBGdd8CZXg"}},"artists":{"items":[{"uri":"spotify:artist:6aEn1FrJfuRVm9CXpxzLge","profile":{"name":"Papy Jeico"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":45375},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:10UNa6qLnyJqCidBklPGm0","id":"10UNa6qLnyJqCidBklPGm0","name":"Required","albumOfTrack":{"uri":"spotify:album:2smT3A7MjmmfKNFwlDnEBd","name":"Pre Heat","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e020520ecfcc5dfbe14ef8cf183","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d000048510520ecfcc5dfbe14ef8cf183","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b2730520ecfcc5dfbe14ef8cf183","width":640,"height":640}]},"id":"2smT3A7MjmmfKNFwlDnEBd","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/2smT3A7MjmmfKNFwlDnEBd?si=8ExP2asyQVafy1rDjONJWw"}},"artists":{"items":[{"uri":"spotify:artist:57fgfg6PTbTqtPegX6rXV5","profile":{"name":"HEAVY CHEST"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":167206},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:1cIfODqkOniMnWWl0EcRMc","id":"1cIfODqkOniMnWWl0EcRMc","name":"Disassembly Required (Teaser Original Soundtrack)","albumOfTrack":{"uri":"spotify:album:0BbeoTXqQv0qKki6CDcznI","name":"Disassembly Required (Teaser Original Soundtrack)","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0226cf2e2751ee0aec2cf62479","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485126cf2e2751ee0aec2cf62479","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27326cf2e2751ee0aec2cf62479","width":640,"height":640}]},"id":"0BbeoTXqQv0qKki6CDcznI","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/0BbeoTXqQv0qKki6CDcznI?si=vMN_HvOCQPWRKNQq4maM9w"}},"artists":{"items":[{"uri":"spotify:artist:0yXeAQirPMVzAlhxGvux1s","profile":{"name":"Liam Vickers"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":120000},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:2R6EjjxkSop7x8adokEnqb","id":"2R6EjjxkSop7x8adokEnqb","name":"REQUIRED MALFUNCTION","albumOfTrack":{"uri":"spotify:album:79B1nOppxSiiA8rfe7EGzg","name":"DIVISION","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e026baeeab4c2084620dca4fc02","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d000048516baeeab4c2084620dca4fc02","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b2736baeeab4c2084620dca4fc02","width":640,"height":640}]},"id":"79B1nOppxSiiA8rfe7EGzg","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/79B1nOppxSiiA8rfe7EGzg?si=rQN7utWaSei3plOSDbBkVg"}},"artists":{"items":[{"uri":"spotify:artist:4gRFSxjAcJkb54BDjqo7Bc","profile":{"name":"the GazettE"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":247253},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:6ce7mZm67N4CB6llmyRPib","id":"6ce7mZm67N4CB6llmyRPib","name":"Assembly Required","albumOfTrack":{"uri":"spotify:album:3xEUUVwjNVvTaHQjcpea8O","name":"Assembly Required","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02e098b0f0c819f5075263fd0c","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851e098b0f0c819f5075263fd0c","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273e098b0f0c819f5075263fd0c","width":640,"height":640}]},"id":"3xEUUVwjNVvTaHQjcpea8O","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/3xEUUVwjNVvTaHQjcpea8O?si=SJm3hEw6T8K4btuzS5gXXA"}},"artists":{"items":[{"uri":"spotify:artist:6ytGxUYeXamODJwiXuZvjO","profile":{"name":"Olivia Penalva"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":225684},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:22S28x7QBBJmVSIzz4YCnE","id":"22S28x7QBBJmVSIzz4YCnE","name":"Some Assembly Required","albumOfTrack":{"uri":"spotify:album:7FuOdULJORMIFwOFb7EXTG","name":"Singles","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02c158d1d8cc70e1b6d3152eb7","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851c158d1d8cc70e1b6d3152eb7","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273c158d1d8cc70e1b6d3152eb7","width":640,"height":640}]},"id":"7FuOdULJORMIFwOFb7EXTG","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/7FuOdULJORMIFwOFb7EXTG?si=I8f18bPCRe2Sqjs_dNUX5w"}},"artists":{"items":[{"uri":"spotify:artist:1gUi2utSbJLNPddYENJAp4","profile":{"name":"Abhi The Nomad"}},{"uri":"spotify:artist:20Ec073CbzajOXt5a3rfsI","profile":{"name":"Foster"}}]},"contentRating":{"label":"EXPLICIT"},"duration":{"totalMilliseconds":157000},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:4eLPlC9E0XWQcJd5WjjKQL","id":"4eLPlC9E0XWQcJd5WjjKQL","name":"Wanna Fly","albumOfTrack":{"uri":"spotify:album:2gEl3qFsgQQtiK8TqMotBt","name":"Wanna Fly","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02358f83f11f3df253118efe7a","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851358f83f11f3df253118efe7a","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273358f83f11f3df253118efe7a","width":640,"height":640}]},"id":"2gEl3qFsgQQtiK8TqMotBt","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/2gEl3qFsgQQtiK8TqMotBt?si=TlVGHl9QQC-x1QVfapj7NQ"}},"artists":{"items":[{"uri":"spotify:artist:4xSp6WltH5N47OrAu4pjKw","profile":{"name":"Revelation"}},{"uri":"spotify:artist:1g05P4Ua1FzC0cQxSlgmyu","profile":{"name":"Required"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":184511},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:2D1QPSBBWNcS2lAtySTQIq","id":"2D1QPSBBWNcS2lAtySTQIq","name":"Flip-Flops Required","albumOfTrack":{"uri":"spotify:album:64oaQ6KiIntYdSbnU5whqr","name":"Toes In The Sand","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e029675080166569c07c0f24a87","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d000048519675080166569c07c0f24a87","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b2739675080166569c07c0f24a87","width":640,"height":640}]},"id":"64oaQ6KiIntYdSbnU5whqr","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/64oaQ6KiIntYdSbnU5whqr?si=lyEYzhf5Q6SWaeiQDuKXTA"}},"artists":{"items":[{"uri":"spotify:artist:7ewdfmP1vVvbcBV4pV84bP","profile":{"name":"Gary Seiler"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":242133},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:7EpuVjHnXlbLOyYOvIUcXx","id":"7EpuVjHnXlbLOyYOvIUcXx","name":"Some Assembly Required","albumOfTrack":{"uri":"spotify:album:5l1BFWphq5XiWlpbYUjrhr","name":"Portal 2: Songs to Test By (Collectors Edition)","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e0294008f6625cab88b318e3c49","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000485194008f6625cab88b318e3c49","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b27394008f6625cab88b318e3c49","width":640,"height":640}]},"id":"5l1BFWphq5XiWlpbYUjrhr","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/5l1BFWphq5XiWlpbYUjrhr?si=dYibSLTIS-SwRnY71hY-lw"}},"artists":{"items":[{"uri":"spotify:artist:7d58WZ8qQHy2Sm5p52V2NP","profile":{"name":"Aperture Science Psychoacoustic Laboratories"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":112106},"playability":{"playable":true}}},{"data":{"uri":"spotify:track:716cJGQYi6NM9V9T9w1PYv","id":"716cJGQYi6NM9V9T9w1PYv","name":"Fire","albumOfTrack":{"uri":"spotify:album:1GDYIkLUlXlgCSRsWyVwZ8","name":"Fire","coverArt":{"sources":[{"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02eab746a0f3c85630a3adf718","width":300,"height":300},{"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851eab746a0f3c85630a3adf718","width":64,"height":64},{"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273eab746a0f3c85630a3adf718","width":640,"height":640}]},"id":"1GDYIkLUlXlgCSRsWyVwZ8","sharingInfo":{"shareUrl":"https:\/\/open.spotify.com\/album\/1GDYIkLUlXlgCSRsWyVwZ8?si=r3gpWMSyQB2xxfgzwWoiWQ"}},"artists":{"items":[{"uri":"spotify:artist:1g05P4Ua1FzC0cQxSlgmyu","profile":{"name":"Required"}}]},"contentRating":{"label":"NONE"},"duration":{"totalMilliseconds":212625},"playability":{"playable":true}}}]},"users":{"totalCount":1,"items":[{"data":{"uri":"spotify:user:jwbe7sw2exw0sswleoende557","id":"jwbe7sw2exw0sswleoende557","displayName":"no headphones required","username":"jwbe7sw2exw0sswleoende557","image":{"smallImageUrl":"https:\/\/i.scdn.co\/image\/ab67757000003b827365e3e82a12ae1089dd8fde","largeImageUrl":"https:\/\/i.scdn.co\/image\/ab6775700000ee857365e3e82a12ae1089dd8fde"}}}]}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.Date;
import java.util.HashMap;

import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController // annotation to create a RESTful web services
@RequestMapping("/api/spotify")  //prefix of API
public class spotify {
    private JSONObject body; //last run result
    private HttpStatus status; //last run status
    String last_run = null; //last run day of month

    // GET Covid 19 Stats
    @GetMapping("/monthly")   //added to end of prefix as endpoint
    public ResponseEntity<JSONObject> spotify() {

        //calls API once a day, sets body and status properties
        String today = new Date().toString().substring(0,10); 
        if (last_run == null || !today.equals(last_run))
        {
            try {  //APIs can fail (ie Internet or Service down)
                
                //RapidAPI header
                HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://spotify23.p.rapidapi.com/search/?q=%3CREQUIRED%3E&type=multi&offset=0&limit=10&numberOfTopResults=5"))
                .header("x-rapidapi-key", "4174dcdab0msh532b4397beaaf35p1a67c6jsna9ed357a47ed")
                .header("x-rapidapi-host", "spotify23.p.rapidapi.com")
                .method("GET", HttpRequest.BodyPublishers.noBody())
                .build();
            
           

                //RapidAPI request and response
                HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

                //JSONParser extracts text body and parses to JSONObject
                this.body = (JSONObject) new JSONParser().parse(response.body());
                this.status = HttpStatus.OK;  //200 success
                this.last_run = today;
            }
            catch (Exception e) {  //capture failure info
                HashMap<String, String> status = new HashMap<>();
                status.put("status", "RapidApi failure: " + e);

                //Setup object for error
                this.body = (JSONObject) status;
                this.status = HttpStatus.INTERNAL_SERVER_ERROR; //500 error
                this.last_run = null;
            }
        }

        //return JSONObject in RESTful style
        return new ResponseEntity<>(body, status);
    }
}