Latest phantom-develop release?

I’m not sure where to post this, please move it into appropriate forum.

Is there a way to programatically obtain the latest phantom-develop version, using services.sonarr.tv or other URL? I’m only interested into version, so after that I can decide what type of tarball I need to download. I know I could see it into Sonarr updates, but what if Sonarr is not installed. Ideally, I would like to see the version in Github, but you only have the v2 releases.

Thank you for your help.

From sonarr.tv: https://services.sonarr.tv/v1/download/phantom-develop/latest?version=3&os=linux

Edit: sorry, misunderstood, you only want the version number, not the actual download, sorry.

You could use curl or similar to extract the contents/listing of
http://download.sonarr.tv/v3/phantom-develop/

And then extract the version from the row with the latest date

Or remove the dots from the first column which will reduce the version to a number
ie 3.0.4.1131 becomes 3041131, then the highest number is the latest version

That should be relatively simple

Don’t crawl the download repository site, or we will block it.

Use this https://services.sonarr.tv/v1/update/phantom-develop?os=linux