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.0.2.1

  $ latestver get java:jdk8 -p downloads.rpm
  http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-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/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-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": "8u241-b07",
  "version_parsed": {
    "major": "8",
    "minor": "241",
    "build": "07",
    "uuid": "1f5b5a70bf22433b84d0e960903adac8"
  },
  "version_segments": [
    "8",
    "241",
    "07"
  ],
  "version_updated": "2020-01-14",
  "version_checked": "2020-01-27",
  "downloads": {
    "rpm": "http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.rpm",
    "tgz": "http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz",
    "dmg": "http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-macosx-x64.dmg",
    "exe": "http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-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/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-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/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.rpm'"
  },
  "catalog_type": "Catalog::OracleJava",
  "api_revision": 20170202
}