# How to get latest Haproxy version string via curl?

**URL:** <https://discourse.haproxy.org/t/how-to-get-latest-haproxy-version-string-via-curl/12260>\
**Category:** Site Feedback\
**Created:** [June 28, 2026, 12:25pm UTC](https://discourse.haproxy.org/t/how-to-get-latest-haproxy-version-string-via-curl/12260 "2026-06-28T12:25:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![den-is](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@den-is](https://discourse.haproxy.org/u/den-is)\
**Post date:** [June 28, 2026, 12:25pm UTC](https://discourse.haproxy.org/t/how-to-get-latest-haproxy-version-string-via-curl/12260/1 "2026-06-28T12:25:15Z")

</div>

TLDR: How to get latest HAproxy release version using curl? Without web scraping.

I have my own opinionated and minimalistic Ansible collection to install dozens of various “devops” tools and services. [GitHub - den-is/ansible-collection-tools: Minimalistic ansible collection to deploy 70+ common devops tools · GitHub](https://github.com/den-is/ansible-collection-tools)

I have to constantly update versions with help of a simple bash script and automation. 99% of cases are solved except for HAProxy.

Examples for other products:

- Golang
  - 

```bash
curl -s "https://go.dev/dl/?mode=json" | jq -r '.[0].version'

```

- Hashicorp products
  - 

```bash
curl -s 'https://api.releases.hashicorp.com/v1/releases/terraform/latest' | jq -r '.version'

```

- Kubernetes
  - 

```bash
curl -Ls 'https://dl.k8s.io/release/stable.txt'

```

- Github releases
  - 

```bash
curl -s 'https://api.github.com/repos/kubernetes/kubernetes/releases/latest' | jq -r '.tag_name'

```

- Helm
  - 

```bash
curl -s "https://get.helm.sh/helm4-latest-version"

```

So … It would be really nice to have some URL to fetch the latest, Stable or LTS, version of Haproxy using a simple `curl` request. Maybe there already is such a thing, I was not able to find. Without “hacks” such as [haproxy.org](http://haproxy.org) page src parsing, etc. I think the above examples are very clear.

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [June 30, 2026, 9:05pm UTC](https://discourse.haproxy.org/t/how-to-get-latest-haproxy-version-string-via-curl/12260/2 "2026-06-30T21:05:05Z")

</div>

You can find json files on the webserve for specific release trains:

`https://www.haproxy.org/download/3.4/src/releases.json`

You may also just use the external service endoflife.date :

`https://endoflife.date/haproxy`

Using their API you can use the one liner:

```
curl -s "https://endoflife.date/api/v1/products/haproxy/releases/latest" | \
jq '.["result"]["latest"]["name"]'

```

---

<div class="post-metadata">

**Author:** ![den-is](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@den-is](https://discourse.haproxy.org/u/den-is)\
**Post date:** [August 28, 2026, 7:18am UTC](https://discourse.haproxy.org/t/how-to-get-latest-haproxy-version-string-via-curl/12260/3 "2026-08-28T07:18:36Z")

</div>

Did not get notification on this great reply. First of all, thanks!

I prefer to use native source of data, before relying on external services. Did not know about `releases.json` - this is great! It would be nice to also have a top level json too, but this is just my thoughts aloud. 🙂
