Versions API
It can often be useful to determine if you are using the latest version of DataTables or its various extensions. The API presented here gives a JSON feed of the versions and their build date / time stamp so you can check if you are using the latest DataTables software, either in an automated or manual way. We use these feeds for our own build tools and the DataTables debugger.
API
This HTTP API accepts only GET
requests and has a two URL that can be used:
Route: current
This API end point simply provides the current release version for each piece of software in the DataTables suite, at the time of the request. The returned JSON object contains property keys for each piece of software and the value is set to the release version string (in x.y.z format);
Example
Get simple version information:
Request
GET https://api.datatables.net/versions/current
Response
{
"DataTables": "2.0.5",
"AutoFill": "2.7.0",
"Buttons": "3.0.2",
...
}
Route: detail
This end point provides a little more information about the DataTables versions, including information about the release date and also information about the latest nightly builds.
The returned JSON object contains an object for each piece of software in the DataTables suite. These objects contain release
and nightly
properties which in turn contain version
(x.y.z) and date
properties (ISO8601). The release version is the currently tagged release, while the nightly is the latest version of the development code for that library. The nightly may be in-sync with the release version, or it might contain fixes and / or new features.
Example
Get detailed version information:
Request
GET https://api.datatables.net/versions/detail
Response
{
"DataTables": {
"release": {
"version": "1.10.16",
"date": "2017-08-31T14:20:43+01:00"
},
"nightly": {
"version": "1.10.17-dev",
"date": "2018-03-30T13:38:54+01:00"
}
},
"AutoFill": {
"release": {
"version": "2.2.2",
"date": "2017-09-12T12:24:15+01:00"
},
"nightly": {
"version": "2.2.2",
"date": "2018-02-22T16:53:18+00:00"
}
},
"Buttons": {
"release": {
"version": "1.5.1",
"date": "2017-12-22T11:24:38+00:00"
},
"nightly": {
"version": "1.5.1",
"date": "2018-03-28T16:05:48+01:00"
}
},
...
}