Top-rated movie of a genre from an API.
Unlock detailed company stats for this questionUpgrade
Write a function that takes a genre and returns the highest-rated movie title of that genre by calling a paginated REST API, returning the lexicographically smallest title on ties. The URL is http://api.notrealwebsite.xyz/movies/page/{page}. Each response has currentPage, totalResults, totalPages and a data array of up to 10 items with movietitle, genre (possibly several) and rating. Imports are pre-given with no instructions, and a try/catch is required.
Community answers
No answers contributed by the community yet.
Related questions
Find the top-rated movie in a genre from a paginated API.Related courses

Course

Course
Course
