Latestver API Usage
The catalog may also be accessed using command-line tools, or through a simple HTTP API.

CLI Tools

  $ gem install latestver

  $ latestver get rails
  5.2.2

  $ latestver get java:jdk8 -p downloads.rpm
  http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm

  $ latestver --help         # for other commands

HTTP API


Entry Single Field

If you need a specific value from the catalog entry, query it directly to avoid parsing. Refer to the JSON example below for field paths.

GET/catalog-api/name/tag.txt?p=path
curl -s https://lv.binarybabel.org/catalog-api/java/jdk8.txt?p=downloads.rpm
http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm

Entry JSON

Tip: Click an entry in the Catalog to see its specific output.

GET/catalog-api/name/tag.json
curl -s https://lv.binarybabel.org/catalog-api/java/jdk8.json
{
  "name": "java",
  "tag": "jdk8",
  "version": "8u191-b12",
  "version_parsed": {
    "major": "8",
    "minor": "191",
    "build": "12",
    "uuid": "2787e4a523244c269598db4e85c51e0c"
  },
  "version_segments": [
    "8",
    "191",
    "12"
  ],
  "version_updated": "2018-11-30",
  "version_checked": "2018-12-10",
  "downloads": {
    "rpm": "http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm",
    "tgz": "http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz",
    "dmg": "http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-macosx-x64.dmg",
    "exe": "http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-windows-x64.exe"
  },
  "external_links": [
    {
      "name": "Releases",
      "href": "http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
    }
  ],
  "command_samples": {
    "curl_download": "curl -LOH 'Cookie: oraclelicense=accept-securebackup-cookie' 'http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm'",
    "wget_download": "wget --no-check-certificate --no-cookies --header 'Cookie: oraclelicense=accept-securebackup-cookie' 'http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm'"
  },
  "catalog_type": "Catalog::OracleJava",
  "api_revision": 20170202
}