# Unable to find out information about Ansible releases via GitHub API

**URL:** <https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842>\
**Category:** Ansible Project\
**Created:** [October 20, 2016, 12:13pm UTC](https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842 "2016-10-20T12:13:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinesh\_Choksi](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jinesh\_Choksi](https://forum.ansible.com/u/Jinesh_Choksi)\
**Post date:** [October 20, 2016, 12:13pm UTC](https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842/1 "2016-10-20T12:13:37Z")

</div>

Hi

I was interested in finding out what the latest available Ansible releases were via GitHub’s API.

The following curl command should have showed me all the available “published” releases of Ansible:

curl -s “[https://api.github.com/repos/ansible/ansible/releases](https://api.github.com/repos/ansible/ansible/releases)”

Specifically, GitHub’s API documentation ([https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository](https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository)) states that: “This returns a list of releases, which does not include regular Git tags that have not been associated with a release.”

Currently the above only outputs information for a single release: “tag\_name”: “v2.0.0.1-1”

I was wondering if this was correct since the API call I was looking to use to find the latest release also returns v2.0.0.1-1. (curl -s “[https://api.github.com/repos/ansible/ansible/releases/latest](https://api.github.com/repos/ansible/ansible/releases/latest)”)

I apologise if this isn’t an Ansible issue as it could be something wrong with GitHub since for some reason, I also can’t find out the latest release of git is via GitHub’s API. (Running curl -s “[https://api.github.com/repos/git/git/releases/latest](https://api.github.com/repos/git/git/releases/latest)”, returns a “message”: “Not Found” response)

regards,  
Jinesh

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [October 20, 2016, 6:40pm UTC](https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842/2 "2016-10-20T18:40:59Z")

</div>

Instead of listing releases, list the tags instead:

[https://developer.github.com/v3/repos/#list-tags](https://developer.github.com/v3/repos/#list-tags)

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 20, 2016, 8:11pm UTC](https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842/3 "2016-10-20T20:11:32Z")

</div>

The Github releases only works if the project uses that feature, we tried for a while but did not find it very useful (stopped at 2.0 as you’ve already found out).
