If you want to display latest version on your site, you can use our JSON file to display data you need. To save our transfer it's reccomended that you also create a cronjob task, which is downloading that file for example every 30 minutes to your server, and you use that cached file to display info. It will also make your website work faster.
If you got questions, OR USED THIS API please contact me at: gny
sek (at) gmail (dot) comTo get the latest versions of GameMaker products, use one of this links:
gm2ide gm2runtime gm2ide-beta gm2runtime-beta gmrt-beta lts-ide lts-runtime gmstudio gm4win All versions at once• Usage example in PHP [with file_get_contents (slower)]
<?php $resultFile = json_decode(file_get_contents('https://gms-updates.gmclan.org/version/all'), true); echo $resultFile['gm4win']['version']; //will output 8.1.141
• Usage example in PHP [with CURL]
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, 'https://gms-updates.gmclan.org//version/all'); $resultFile = json_decode(curl_exec($ch), true); curl_close($ch); echo $resultFile['gm4win']['version']; //will output 8.1.141
• Returned data - example 1 https://gms-updates.gmclan.org/version/gm4win
{ "gm4win": { "version": "8.1.141", "released": "Thu, 24 Mar 2011 12:21:53 Z", "releasedUT": 1300982400, "fetchedByApi": 1300982400, "daysAgo": 4991 } }
• Returned data - example 2 https://gms-updates.gmclan.org/version/all
{ "gm2ide": { "version": "2024.8.1.171", "released": "Mon, 09 Sep 2024 11:00:34 Z", "releasedUT": 1725879634, "fetchedByApi": 1725973803, "daysAgo": 72 }, "gm2runtime": { "version": "2024.8.1.218", "released": "Mon, 09 Sep 2024 10:40:53 Z", "releasedUT": 1725878453, "fetchedByApi": 1725974406, "daysAgo": 72 }, "gm2ide-beta": { "version": "2024.1100.0.686", "released": "Thu, 14 Nov 2024 17:36:14 Z", "releasedUT": 1731605774, "fetchedByApi": 1731673209, "daysAgo": 6 }, "gm2runtime-beta": { "version": "2024.1100.0.707", "released": "Thu, 14 Nov 2024 08:23:53 Z", "releasedUT": 1731572633, "fetchedByApi": 1731673209, "daysAgo": 6 }, "gmrt-beta": { "version": "0.13.0", "released": "2024-09-30T10:09:10.659Z", "releasedUT": 1727690950, "fetchedByApi": 1727691005, "daysAgo": 52 }, "lts-ide": { "version": "2022.0.2.51", "released": "Fri, 13 Oct 2023 10:28:53 Z", "releasedUT": 1697192933, "fetchedByApi": 1697540412, "daysAgo": 401 }, "lts-runtime": { "version": "2022.0.2.49", "released": "Wed, 11 Oct 2023 10:57:34 Z", "releasedUT": 1697021854, "fetchedByApi": 1697540412, "daysAgo": 401 }, "gmstudio": { "version": "1.4.9999", "released": "Thu, 30 Aug 2018 12:22:21 Z", "releasedUT": 1535631741, "fetchedByApi": 1535631741, "daysAgo": 2275 }, "gm4win": { "version": "8.1.141", "released": "Thu, 24 Mar 2011 12:21:53 Z", "releasedUT": 1300982400, "fetchedByApi": 1300982400, "daysAgo": 4991 } }