![]() ![]() The total number of available results is indicated by a total attribute in the root element of the response. For example, the following URL returns the third page of driver information containing ten entries per page: ![]() If not specified the default offset is zero. If not specified, the default value is 30.Īn offset into the result set can also be specified using an offset query parameter. Please use the smallest value that your application needs. The number of results that are returned can be controlled using a limit query parameter, up to a maximum value of 1000. XML responses conform to the Ergast Motor Racing XML Schema. json" and a query parameter named " callback" which must specify a valid Javascript function name or object property function reference. The API supports XML, JSON and JSONP response formats. You can generate valid URLs for the API using the manual interface. The following options are available: Season List The type of information returned by a query is determined by the remainder of the URL. For example:įor more information about these shortcuts see the FAQ. To specify the previous or next race within a season the field may be set to "last" or "next" respectively. To specify the current season the field may be set to "current". For example:įor queries concerning the whole series both the round and the season elements may be omitted. OverviewĪll API queries require a GET request using a URL of the form:įor queries concerning a whole season, or final standings, the round element may be omitted. Any enhancements to the API will be reported on the News page. If you find any bugs or errors in the data please report them on the Bug Reports page. If you have any comments or suggestions please post them on the Feedback page. Non-programmers can query the database using the manual interface or download the database tables in CSV format for import into spreadsheets or analysis software. Example applications are showcased in the Application Gallery. Source code for a wide range of projects using the API can be found on the Ergast API Topic Page on GitHub. The API provides data for the Formula One series, from the beginning of the world championships in 1950. Please read the terms and conditions of use. The Ergast Developer API is an experimental web service which provides a historical record of motor racing data for non-commercial purposes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |