iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ergast.com/mrd/wp-json/wp/v2/pages/47
{"id":47,"date":"2009-01-06T21:41:41","date_gmt":"2009-01-06T21:41:41","guid":{"rendered":"http:\/\/ergast.com\/?page_id=47"},"modified":"2024-09-17T14:20:30","modified_gmt":"2024-09-17T14:20:30","slug":"methods","status":"publish","type":"page","link":"http:\/\/ergast.com\/mrd\/","title":{"rendered":"API Documentation"},"content":{"rendered":"

The Ergast API is now DEPRECATED<\/h3>\n

Developers are cordially invited to test the alpha version of its proposed successor which is called Jolpica<\/a> and can be used as a drop-in replacement for the current JSON API.<\/p>\n

The Ergast API will be updated until the end of the 2024 season then shutdown at the end of the calendar year.<\/p>\n

Documentation<\/h3>\n

The Ergast Developer API is an experimental web service<\/a> which provides a historical record of motor racing data for non-commercial purposes. Please read the terms and conditions of use<\/a>. The API provides data for the Formula\u00a0One<\/a> series, from the beginning of the world championships in 1950.
\n<
\nSource code for a wide range of projects using the API can be found on the
Ergast API Topic Page on GitHub<\/a>. Example applications are showcased in the Application Gallery<\/a>.<\/p>\n

Non-programmers can query the database using the manual interface<\/a> or download the database tables in CSV format<\/a> for import into spreadsheets or analysis software.<\/p>\n

If you have any comments or suggestions please post them on the Feedback page<\/a>. If you find any bugs or errors in the data please report them on the Bug Reports page<\/a>. Any enhancements to the API will be reported on the News page<\/a>.<\/p>\n

<\/a>Overview<\/h3>\n

All API queries require a GET request using a URL of the form:<\/p>\n

http[s]:\/\/ergast.com\/api\/<series>\/<season>\/<round>\/...<\/code><\/p>\n

where:<\/p>\n\n\n\n\n\n
<series><\/code><\/td>\nshould be set to “f1”<\/td>\n<\/tr>\n
<season><\/code><\/td>\nis a 4 digit integer<\/td>\n<\/tr>\n
<round><\/code><\/td>\nis a 1 or 2 digit integer<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

For queries concerning a whole season, or final standings, the round element may be omitted. For example:<\/p>\n

http:\/\/ergast.com\/api\/f1\/2008\/...<\/code><\/p>\n

For queries concerning the whole series both the round and the season elements may be omitted. For example:<\/p>\n

http:\/\/ergast.com\/api\/f1\/...<\/code><\/p>\n

To specify the current season the <season><\/code> field may be set to “current”. To specify the previous or next race within a season the <round><\/code> field may be set to “last” or “next” respectively. For example:<\/p>\n

http:\/\/ergast.com\/api\/f1\/2005\/last\/...<\/code>
\nhttp:\/\/ergast.com\/api\/f1\/current\/next\/...<\/code><\/p>\n

For more information about these shortcuts see the FAQ<\/a>.<\/p>\n

The type of information returned by a query is determined by the remainder of the URL. The following options are available:<\/p>\n\n\n\n\n\n\n
Season List<\/a><\/td>\nRace Schedule<\/a><\/td>\nRace Results<\/a><\/td>\n<\/tr>\n
Qualifying\u00a0Results<\/a><\/td>\nStandings<\/a><\/td>\nDriver\u00a0Information<\/a><\/td>\n<\/tr>\n
Constructor\u00a0Information<\/a><\/td>\nCircuit\u00a0Information<\/a><\/td>\nFinishing\u00a0Status<\/a><\/td>\n<\/tr>\n
Lap\u00a0Times<\/a><\/td>\nPit\u00a0Stops<\/a><\/td>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

You can generate valid URLs for the API using the manual interface<\/a>.<\/p>\n

<\/a>Response formats<\/h3>\n

The API supports XML<\/a>, JSON<\/a> and JSONP<\/a> response formats. XML is returned by default or when “.xml<\/code>” is appended to URLs. JSON is obtained by appending “.json<\/code>” to URLs. JSONP is obtained by appending “.json<\/code>” and a query parameter named “callback<\/code>” which must specify a valid Javascript function name or object property function reference. For example:<\/p>\n

http:\/\/ergast.com\/api\/f1\/drivers.json?callback=myParser<\/a><\/code><\/p>\n

XML responses conform to the Ergast Motor Racing XML Schema<\/a>.<\/p>\n

<\/a>Response paging<\/h3>\n

The number of results that are returned can be controlled using a limit<\/code> query parameter, up to a maximum value of 100. Please use the smallest value that your application needs. If not specified, the default value is 30.<\/p>\n

An offset into the result set can also be specified using an offset<\/code> query parameter. If not specified the default offset is zero. For example, the following URL returns the third page of driver information containing ten entries per page:<\/p>\n

http:\/\/ergast.com\/api\/f1\/drivers?limit=10&offset=20<\/a><\/code><\/p>\n

The total number of available results is indicated by a total<\/code> attribute in the root element of the response.<\/p>\n

<\/a>Caching<\/h3>\n

To improve the performance of your applications and to minimise the load on the API server please implement caching, either on your server and\/or in your applications.<\/p>\n

<\/a>Database Image and Runtime<\/h3>\n

The database image<\/a> is published after each race and can be used to run your own server using the Ergast runtime<\/a>. The structure of the database is shown in an Entity Relationship Diagram<\/a> and explained in the Database User Guide<\/a>.<\/p>\n

<\/a>Terms of Use<\/h3>\n

Please abide by the terms and conditions of use<\/a>. Applications which exceed the specified rate limits are automatically blocked for 24 hours to protect other users.<\/p>\n

<\/a>Development Tools<\/h3>\n

A number of people have contributed development tools<\/a> to use with the API.<\/p>\n","protected":false},"excerpt":{"rendered":"

The Ergast API is now DEPRECATED Developers are cordially invited to test the alpha version of its proposed successor which is called Jolpica and can be used as a drop-in replacement for the current JSON API. The Ergast API will be updated until the end of the 2024 season then shutdown at the end of […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"narrow.php","meta":[],"_links":{"self":[{"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/pages\/47"}],"collection":[{"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":258,"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/pages\/47\/revisions"}],"predecessor-version":[{"id":2637,"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/pages\/47\/revisions\/2637"}],"wp:attachment":[{"href":"http:\/\/ergast.com\/mrd\/wp-json\/wp\/v2\/media?parent=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}