Search with a q parameter for a team or a list of teams. Based on his name.
{ "api": "https://f1api.dev", "url": "https:f1api.dev/api/teams/search?q=ferrari", "limit": 30, "offset": 0, "query": "ferrari", "total": 3, "teams": [ { "teamId": "cooper-ferrari", "teamName": "Cooper-Ferrari", "teamNationality": "British", "firstAppeareance": null, "constructorsChampionships": null, "driversChampionships": null, "url": "http://en.wikipedia.org/wiki/Cooper_Car_Company" }, { "teamId": "de_tomaso-ferrari", "teamName": "De Tomaso-Ferrari", "teamNationality": "Italian", "firstAppeareance": null, "constructorsChampionships": null, "driversChampionships": null, "url": "http://en.wikipedia.org/wiki/De_Tomaso" }, { "teamId": "ferrari", "teamName": "Scuderia Ferrari", "teamNationality": "Italy", "firstAppeareance": 1950, "constructorsChampionships": 16, "driversChampionships": 15, "url": "https://en.wikipedia.org/wiki/Scuderia_Ferrari" } ] }
Field | Type | Description |
---|---|---|
api | string | The base API URL for the F1 Connect service. |
url | string | The URL used to fetch the drivers data with query parameters for limit and offset. |
limit | number | The number of results returned per request. |
offset | number | The offset used for pagination, i.e., the starting point for the result set. |
query | string | The search query used to filter the teams. |
total | number | The total number of drivers available in the dataset. |
season | string | The season of the championship. |
championshipId | string | The championship id. |
teams | array | The teams array of team objects. |
teamId | string | A unique identifier for the team. |
teamName | string | The team name. |
teamNationality | string | The team nationality. |
firstAppeareance | number | The year the team first appeared in a Grand Prix. |
constructorsChampionships | number | null | The number of constructors championships the team has won. |
driversChampionships | number | null | The number of drivers championships the team has won. |
url | string | A URL to the Wikipedia page of the team. |
Param | Default | Data |
---|---|---|
limit | 30 | Number of records returned per request. |
offset | 0 | Number of records skipped before starting to fetch. |
q | Search query, can be a team name. |
Status | Description |
---|---|
200 | Successful request |
404 | Resource not found |
500 | Internal server error |