Browser tab content: # HackerRank The editor of a sports magazine must create a list of…
- User
Browser tab content: # HackerRank
The editor of a sports magazine must create a list of elite clubs in a nation. Use HTTP GET requests to access a database for football clubs (i.e., soccer clubs) via the URL https://jsonmock.hackerrank.com/api/football\_teams?nation={nation\_name}. The database contains the estimated monetary value of each club, referred to as valuation. The query result is paginated and can be further accessed by appending &page={num} to the query string where num is the page number.
The query response from the API includes these fields:
- page: the current page
- per_page: the maximum results per page
- total: the total number of records
- total_pages: the total number of pages for the query
- data: an array of JSON objects containing club information
Each object in the data field includes the following:
- name: the club's name
- nation: the nation in which the club plays
- estimated_value_numeric_:_ the monetary value of the club
- number_of_league_titles_won_:_ the number of league titles won by the club
- other details not relevant to this question
For example, the record for Arsenal FC is:
code{ "name": "Arsenal FC", "captain": "Pierre-Emerick Aubameyang", "vice_captain": "Alexandre Lacazette", "goalkeeper": "Bernd Leno", "number_of_players": 25, "current_active_players": 22, "league": "English Premier League (EPL)", "nation": "England", "estimated_value": "$2 billion", "estimated_value_numeric": 2000000000, "number_of_league_titles_won": 13, "last_league_title_winning_year": 2003, "number_of_champions_league_won": 0, "last_champions_league_winning_year": null, "total_silverware_count": 30, "manager": "Mikel Arteta", "stadium_name": "Emirates Stadium", "stadium_capacity": 60355, "league_position_2021": 5, "league_top_three_finishes": 18, "number_of_runner_ups_in_champions_league": 0, "highest_goalscorer": "Thierry Henry", "highest_assist_provider": "Thierry Henry", "highest_clean_sheet_holder": "David Seaman", "most_capped_player": "Tony Adams", "appearances_most_capped_player": 669 }, - Assistant