I need to make a list of the drivers in F1. i use a f1 api where i can get the last race results with the driver names in order of finish. now i want to visualize it but the list only shows the first from the list. i looked around and found out it is either because of not having a unique identifier at the top of my api components. or the object i am trying to use is within a array. i tried to solve both but nothing happend or it made it worse (in the case of moving a unique component to the top) and now i don’t know how to continue.
API: http://ergast.com/api/f1/current/last/results.json
API LOG: Postman
i use xano to make a variable out of the MRData and Racetable (i don’t really understand why i needed to do this but it worked after i got help on the forum).
{
"MRData": {
"xmlns": "http://ergast.com/mrd/1.5",
"series": "f1",
"url": "http://ergast.com/api/f1/current/last/results.json",
"limit": "30",
"offset": "0",
"total": "20",
"RaceTable": {
"season": "2023",
"round": "5",
"Races": [
{
"season": "2023",
"round": "5",
"url": "https://en.wikipedia.org/wiki/2023_Miami_Grand_Prix",
"raceName": "Miami Grand Prix",
"Circuit": {
"circuitId": "miami",
"url": "http://en.wikipedia.org/wiki/Miami_International_Autodrome",
"circuitName": "Miami International Autodrome",
"Location": {
"lat": "25.9581",
"long": "-80.2389",
"locality": "Miami",
"country": "USA"
}
},
"date": "2023-05-07",
"time": "19:30:00Z",
"Results": [
{
"number": "1",
"position": "1",
"positionText": "1",
"points": "26",
"Driver": {
"driverId": "max_verstappen",
"permanentNumber": "33",
"code": "VER",
"url": "http://en.wikipedia.org/wiki/Max_Verstappen",
"givenName": "Max",
"familyName": "Verstappen",
"dateOfBirth": "1997-09-30",
"nationality": "Dutch"
},
"Constructor": {
"constructorId": "red_bull",
"url": "http://en.wikipedia.org/wiki/Red_Bull_Racing",
"name": "Red Bull",
"nationality": "Austrian"
},
"grid": "0",
"laps": "57",
"status": "Finished",
"Time": {
"millis": "5258241",
"time": "1:27:38.241"
},
"FastestLap": {
"rank": "1",
"lap": "56",
"Time": {
"time": "1:29.708"
},
"AverageSpeed": {
"units": "kph",
"speed": "217.184"
}
}
},
{
"number": "11",
"position": "2",
"positionText": "2",
"points": "18",
"Driver": {
"driverId": "perez",
"permanentNumber": "11",
"code": "PER",
"url": "http://en.wikipedia.org/wiki/Sergio_P%C3%A9rez",
"givenName": "Sergio",
"familyName": "Pérez",
"dateOfBirth": "1990-01-26",
"nationality": "Mexican"
},
"Constructor": {
"constructorId": "red_bull",
"url": "http://en.wikipedia.org/wiki/Red_Bull_Racing",
"name": "Red Bull",
"nationality": "Austrian"
},
"grid": "1",
"laps": "57",
"status": "Finished",
"Time": {
"millis": "5263625",
"time": "+5.384"
},
"FastestLap": {
"rank": "3",
"lap": "57",
"Time": {
"time": "1:30.560"
},
"AverageSpeed": {
"units": "kph",
"speed": "215.141"
}
}
},
{
"number": "14",
"position": "3",
"positionText": "3",
"points": "15",
"Driver": {
"driverId": "alonso",
"permanentNumber": "14",
"code": "ALO",
"url": "http://en.wikipedia.org/wiki/Fernando_Alonso",
"givenName": "Fernando",
"familyName": "Alonso",
"dateOfBirth": "1981-07-29",
"nationality": "Spanish"
},
"Constructor": {
"constructorId": "aston_martin",
"url": "http://en.wikipedia.org/wiki/Aston_Martin_in_Formula_One",
"name": "Aston Martin",
"nationality": "British"
},
"grid": "2",
"laps": "57",
"status": "Finished",
"Time": {
"millis": "5284546",
"time": "+26.305"
},
"FastestLap": {
"rank": "2",
"lap": "57",
"Time": {
"time": "1:30.519"
},
"AverageSpeed": {
"units": "kph",
"speed": "215.238"
}
}
},
{
"number": "63",
"position": "4",
"positionText": "4",
"points": "12",
"Driver": {
"driverId": "russell",
"permanentNumber": "63",
"code": "RUS",
"url": "http://en.wikipedia.org/wiki/George_Russell_%28racing_driver%29",
"givenName": "George",
"familyName": "Russell",
"dateOfBirth": "1998-02-15",
"nationality": "British"
},
"Constructor": {
"constructorId": "mercedes",
"url": "http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One",
"name": "Mercedes",
"nationality": "German"
},
"grid": "6",
"laps": "57",
"status": "Finished",
"Time": {
"millis": "5291470",
"time": "+33.229"
},
"FastestLap": {
"rank": "7",
"lap": "57",
"Time": {
"time": "1:31.015"
},
"AverageSpeed": {
"units": "kph",
"speed": "214.065"
}
}
},
{
"number": "55",
"position": "5",
"positionText": "5",
"points": "10",
"Driver": {
"driverId": "sainz",
"permanentNumber": "55",
"code": "SAI",
"url": "http://en.wikipedia.org/wiki/Carlos_Sainz_Jr.",
"givenName": "Carlos",
"familyName": "Sainz",
"dateOfBirth": "1994-09-01",
"nationality": "Spanish"
},
"Constructor": {
"constructorId": "ferrari",
"url": "http://en.wikipedia.org/wiki/Scuderia_Ferrari",
"name": "Ferrari",
"nationality": "Italian"
..........................
...........................
it continues but the rest is just the same objects with different data