Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Help on a small API script

Hu, Zhiliang [AN S] zhu at
Fri Oct 1 08:29:42 PDT 2021

Hi Jennifer,

Thank you for your patience with me. The information are very helpful.
Now I get it to work!

Have a good weekend!


From: Jennifer Leigh Vendetti <vendetti at>
Date: Thu, Sep 30, 2021 at 06:26 PM
To: Zhiliang Hu <zhu at>
Cc: "support at" <support at>
Subject: Re: [bioontology-support] Help on a small API script

Hello Zhiliang,

If you want check the version of the latest submission of a particular ontology, you can use the /latest_submission endpoint, e.g., for VT the REST API call would be the following:

In the JSON results, you can check for the “version” key/value pair:

[cid:image001.png at 01D7B6AF.3CECE890]

You may also be interested in the /submissions endpoint, which would allow you to retrieve all of the submissions for a particular ontology, e.g.:

You can iterate over the collection, looking at the “version” key/value pair for each ontology submission object.

We have some example code for interacting with our REST API in GitHub:

Kind regards,

On Sep 30, 2021, at 3:34 PM, Hu, Zhiliang [AN S] <zhu at<mailto:zhu at>> wrote:


I have a routine to watch the latest versions of a few ontologies (VT/LPT/CMO/etc).
I tried the following:

use LWP::Simple;
use JSON qw( decode_json );
my $bioprtAPIky = "720f4412-5a96-48cc-a39f-961570c9a94b";
my $url = "";
  $url .= "/property_search?";
  $url .= "apikey=$bioprtAPIky";
  $url .= "&ontology=VT";
  $url .= "&q=version";
my $get = get("$url");

and get lost at what to extract for.

I was on your doc but didn't get much. Could you help with this script? (to get just the latest version number).

Thanks in advance,


I used to "get" "" and apparently the scripting "get" is being blocked on your site lately.

bioontology-support mailing list
bioontology-support at<mailto:bioontology-support at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 165862 bytes
Desc: image001.png
URL: <>

More information about the bioontology-support mailing list