# Programmatic access to latest data version

**URL:** <https://community.opentargets.org/t/programmatic-access-to-latest-data-version/968>\
**Category:** Data downloads\
**Tags:** data\
**Created:** [24 February 2023 08:15 UTC](https://community.opentargets.org/t/programmatic-access-to-latest-data-version/968 "2023-02-24T08:15:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vthawfeek](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/vthawfeek/32/306_2.png) [@vthawfeek](https://community.opentargets.org/u/vthawfeek)\
**Post date:** [24 February 2023 08:15 UTC](https://community.opentargets.org/t/programmatic-access-to-latest-data-version/968/1 "2023-02-24T08:15:50Z")

</div>

I’m trying to download the OpenTargets data using scripts. I’m using the FTP links to do this. When there is a new release I’m unable to get the latest data. Is there a way to get the latest data version number programmatically, so that I can replace the version in the FTP link? Thanks.

---

<div class="post-metadata">

**Author:** ![dsuveges](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/dsuveges/32/30_2.png) [@dsuveges](https://community.opentargets.org/u/dsuveges)\
**Post date:** [24 February 2023 09:08 UTC](https://community.opentargets.org/t/programmatic-access-to-latest-data-version/968/2 "2023-02-24T09:08:16Z")

</div>

Hi Thawfeek,

You can use the `ftp://ftp.ebi.ac.uk/pub/databases/opentargets/platform/latest` address, which is a symlink always pointing to the most recent release. If you are interested in the actual version, you can get it from the resolved address which is `ftp://ftp.ebi.ac.uk/pub/databases/opentargets/platform/23.02` at the moment.

Please let me know if this answer doesn’t address your question completely.

---

<div class="post-metadata">

**Author:** ![vthawfeek](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/vthawfeek/32/306_2.png) [@vthawfeek](https://community.opentargets.org/u/vthawfeek)\
**Post date:** [24 February 2023 09:34 UTC](https://community.opentargets.org/t/programmatic-access-to-latest-data-version/968/3 "2023-02-24T09:34:51Z")

</div>

Hi Daniel,

Just what I was looking for. Thanks 🙂
