In 2024, the data type for the team color in the drivers API has changed from string to int for some entries.
For instance, during the Bahrain Race on March 2nd, 2024, Fernando Alonso's team color is listed as an integer (229971), although other teams have their colors in hexadecimal format with letters, suggesting these should be strings.
In 2024, the data type for the team color in the drivers API has changed from string to int for some entries.
For instance, during the Bahrain Race on March 2nd, 2024, Fernando Alonso's team color is listed as an integer (229971), although other teams have their colors in hexadecimal format with letters, suggesting these should be strings.
https://api.openf1.org/v1/drivers?session_key=9472 (Bahrain Race in March 2nd, 2024)
I would suggest serializing all team colors as strings for consistency.