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
  6.1.3

  $ latestver get java:jdk8 -p downloads.rpm
  http://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-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/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-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": "8u281-b09",
  "version_parsed": {
    "major": "8",
    "minor": "281",
    "build": "09",
    "uuid": "89d678f2be164786b292527658ca1605"
  },
  "version_segments": [
    "8",
    "281",
    "09"
  ],
  "version_updated": "2021-01-19",
  "version_checked": "2021-02-27",
  "downloads": {
    "rpm": "http://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-linux-x64.rpm",
    "tgz": "http://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-linux-x64.tar.gz",
    "dmg": "http://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-macosx-x64.dmg",
    "exe": "http://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-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/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-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/8u281-b09/89d678f2be164786b292527658ca1605/jdk-8u281-linux-x64.rpm'"
  },
  "catalog_type": "Catalog::OracleJava",
  "api_revision": 20170202
}