# Where to get latest version number?

**URL:** <https://help.nextcloud.com/t/where-to-get-latest-version-number/51440>\
**Category:** ℹ️ Support\
**Created:** [April 11, 2019, 6:18pm UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440 "2019-04-11T18:18:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![thelamer](https://help.nextcloud.com/letter_avatar/thelamer/32/6_22734026db12803ebb3e059622ac3534.png) [@thelamer](https://help.nextcloud.com/u/thelamer)\
**Post date:** [April 11, 2019, 6:18pm UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/1 "2019-04-11T18:18:53Z")

</div>

Hello from the [Linuxserver.io](http://Linuxserver.io) team, do you have a solid endpoint we can use to determine the latest version of Nextcloud to ingest and build?

We used to manually parse your installer using this command, but it was always a stop gap hoping for a sane endpoint.

`curl -s https://download.nextcloud.com/server/installer/setup-nextcloud.php | awk -F \' '/NC_VERSION/{print \$4;exit}'`

---

<div class="post-metadata">

**Author:** ![SmallOne](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smallone/32/5326_2.png) [@SmallOne](https://help.nextcloud.com/u/SmallOne)\
**Post date:** [April 11, 2019, 7:43pm UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/2 "2019-04-11T19:43:26Z")

</div>

I haven’t found one for my stuff. This is what i use in my ansible:

[https://download.nextcloud.com/server/releases/latest.tar.bz2](https://download.nextcloud.com/server/releases/latest.tar.bz2)

But i havent found an endpoint to check for a version number. @jospoortvliet would this be something that you can implement on the website?

---

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [April 11, 2019, 10:33pm UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/3 "2019-04-11T22:33:08Z")

</div>

```auto
curl -SsL https://github.com/nextcloud/server/releases | awk '/\/tag\//' | grep -v no-underline | head -n 1 | cut -d '"' -f 2 | awk '{n=split($NF,a,"/");print a[n]}' | sed s/v//g

```

gives you the latest release on github.

nevertheless you have to filter for your preferred major release because v14, v15 and v16 are all mixed.

```auto
curl -SsL https://github.com/nextcloud/server/releases | awk '/\/tag\//'
      <a href="/nextcloud/server/releases/tag/v16.0.0RC1">
      <a href="/nextcloud/server/releases/tag/v15.0.7">
      <a href="/nextcloud/server/releases/tag/v14.0.10">
      <a href="/nextcloud/server/releases/tag/v16.0.0beta3">
      <a href="/nextcloud/server/releases/tag/v15.0.6">
      <a href="/nextcloud/server/releases/tag/v14.0.9">
      <a href="/nextcloud/server/releases/tag/v15.0.6RC1">
      <a href="/nextcloud/server/releases/tag/v14.0.9RC1">
      <a href="/nextcloud/server/releases/tag/v16.0.0beta2">
      <a href="/nextcloud/server/releases/tag/v16.0.0beta1">

```

---

<div class="post-metadata">

**Author:** ![thelamer](https://help.nextcloud.com/letter_avatar/thelamer/32/6_22734026db12803ebb3e059622ac3534.png) [@thelamer](https://help.nextcloud.com/u/thelamer)\
**Post date:** [April 12, 2019, 12:39am UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/4 "2019-04-12T00:39:32Z")

</div>

I mean Github Tags has an API endpoint: (no need to parse through html use json)

[https://api.github.com/repos/nextcloud/server/tags](https://api.github.com/repos/nextcloud/server/tags)

Let me rephrase my question, I am not looking for help from the community unless someone here knows what endpoint I can hit to get the latest stable release version. I assure you we have been down all the workaround paths.

If this truly does not exist then I want to recommend to the Nextcloud team that when they are pushing a stable release they also push something like `https://download.nextcloud.com/server/releases/stable.json` containing either a download URL or a version.

Or if you want to keep this in Github then publish real github releases for your current stable releases and pre-releases for your betas/old major tags, so people can consume this stuff in a sane manner. (Github Tags are not guaranteed to be returned in order and all blend together as is)

Even if this is semi manual, we on the build side really need a simple file with a version number in it.

---

<div class="post-metadata">

**Author:** ![jospoortvliet](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jospoortvliet/32/3_2.png) [@jospoortvliet](https://help.nextcloud.com/u/jospoortvliet)\
**Post date:** [April 12, 2019, 10:02am UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/5 "2019-04-12T10:02:32Z")

</div>

This is what our updater server is for - that is what Nextcloud systems use to get the latest version. There is no other service we (intend to) offer.

See [https://github.com/nextcloud/updater\_server](https://github.com/nextcloud/updater_server)

Alternatively, you can check what our website offers. We put the latest version number always in this file: [https://github.com/nextcloud/nextcloud.com/blob/master/strings.php#L6](https://github.com/nextcloud/nextcloud.com/blob/master/strings.php#L6) but at some point we’ll rewrite our website (I hope) and then that will stop working.

---

<div class="post-metadata">

**Author:** ![thelamer](https://help.nextcloud.com/letter_avatar/thelamer/32/6_22734026db12803ebb3e059622ac3534.png) [@thelamer](https://help.nextcloud.com/u/thelamer)\
**Post date:** [April 13, 2019, 4:33am UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/6 "2019-04-13T04:33:43Z")

</div>

Thanks for the info, I will setup something to grab out of that file in github.

The setup you have requires the client passes a long complex string to the update server which specifies the exact version the client is running.  
Why not take simple strings also for external consumption vs just in app IE:  
`version=stable` or `version=15.x`

---

<div class="post-metadata">

**Author:** ![jospoortvliet](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jospoortvliet/32/3_2.png) [@jospoortvliet](https://help.nextcloud.com/u/jospoortvliet)\
**Post date:** [May 22, 2019, 10:32am UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/7 "2019-05-22T10:32:18Z")

</div>

The updater server is open source, you could totally do a pull request that enables it to send simply the latest stable version to the request 😉

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 5:10pm UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/8 "2024-09-23T17:10:44Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:47pm UTC](https://help.nextcloud.com/t/where-to-get-latest-version-number/51440/9 "2024-12-11T14:47:52Z")

</div>


