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/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-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/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-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": "8u201-b09",
  "version_parsed": {
    "major": "8",
    "minor": "201",
    "build": "09",
    "uuid": "42970487e3af4f5aa5bca3f542482c60"
  },
  "version_segments": [
    "8",
    "201",
    "09"
  ],
  "version_updated": "2019-01-15",
  "version_checked": "2019-02-19",
  "downloads": {
    "rpm": "http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.rpm",
    "tgz": "http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz",
    "dmg": "http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-macosx-x64.dmg",
    "exe": "http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-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/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-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/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.rpm'"
  },
  "catalog_type": "Catalog::OracleJava",
  "api_revision": 20170202
}