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

Jennifer Leigh Vendetti vendetti at
Thu Sep 30 16:26:24 PDT 2021

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:3217752D-CBD5-43F8-BA8C-92D82CB0C19B at lan]

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: Screen Shot 2021-09-30 at 4.12.46 PM.png
Type: image/png
Size: 165861 bytes
Desc: Screen Shot 2021-09-30 at 4.12.46 PM.png
URL: <>

More information about the bioontology-support mailing list