Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get latest release version number for chrome browser

I am trying to figure out a rather stable way to programmatically determine the latest release version number of the chrome browser.

It doesn't have to be failproof as it's only a nice-to-have-feature I can blend out whenever the result looks "suspicious".

  • There seems to be no API (is there?).
  • I dont want to rely on third parties handling that stuff manually.
  • I dont want to parse any website output.

So I ended up fetching git files.

My first approach was to fetch this file:

https://chromium.googlesource.com/chromium/src.git/+/master/chrome/VERSION?format=TEXT

Which gives the latest version number.
From there on the solution is just a preg_match_all away ... Unfortunately its not the latest release version but the latest dev version.

There seems to be no "release" branch nor a "release" tag or something else I can think of neither.

You might answer "why?"... I know about feature detection, I know browser sniffing can be fooled and I am aware of the fact that (every) browser will notify their users when it's time to update. Still makes sense in my case. On the other hand its solely for display purposes. Nothing is going to depend on it later on – promise :-)

Any – even the faintest – ideas are highly appreciated!

like image 763
Hafenkranich Avatar asked Jan 31 '16 13:01

Hafenkranich


People also ask

What number is the latest Chrome version?

Hi everyone! We've just released Chrome Beta 108 (108.0. 5359.38) for Android. It's now available on Google Play.

Is this version of Chrome up to date?

Open Google Play store on your Android, click the three-line icon at the top-left corner, and tap My apps & games. Tap Updates and check if Google Chrome is in the list, if yes, tap Update button next to it to get the latest version of Chrome.


3 Answers

I've found the following endpoints from OmahaProxy that give the latest stable versions of the respective OS.

  • Windows: https://omahaproxy.appspot.com/win

  • Linux: https://omahaproxy.appspot.com/linux

  • Mac: https://omahaproxy.appspot.com/mac

like image 167
umut Avatar answered Oct 13 '22 22:10

umut


The Chrome team uses the OmahaProxy dashboard to keep track of current versions in stable/beta/dev/canary. If you can scrape that you can get whatever version number you're looking for.

like image 15
David Bokan Avatar answered Oct 23 '22 07:10

David Bokan


Feel free to use my online service vergrabber to get latest versions of different kind of software in json format. It's available at http://vergrabber.kingu.pl/vergrabber.json

like image 5
twk Avatar answered Oct 23 '22 08:10

twk