Overview

Download the latest version listed on the nodejs.org website for your chosen platform using this simple API, as illustrated by the examples below:

Curl

[user@host]$ curl -JOL 'http://latest-nodejs.org/download/lts/linux/binary/64-bit'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    81  100    81    0     0     81      0  0:00:01 --:--:--  0:00:01 13500
100 10.8M  100 10.8M    0     0  2225k      0  0:00:05  0:00:05 --:--:-- 2757k
curl: Saved to filename 'node-v8.9.3-linux-x64.tar.xz'

Wget

wget --trust-server-names 'http://latest-nodejs.org/download/current/linux/binary/ARMv8'
--2017-12-24 14:48:44--  http://latest-nodejs.org/download/current/linux/binary/64-bit
Resolving latest-nodejs.org (latest-nodejs.org)...
Connecting to latest-nodejs.org (latest-nodejs.org)... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://nodejs.org/dist/v9.3.0/node-v9.3.0-linux-arm64.tar.xz [following]
--2017-12-24 14:55:26--  https://nodejs.org/dist/v9.3.0/node-v9.3.0-linux-arm64.tar.xz
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2400:cb00:2048:1::6814:162e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10704696 (10M) [application/x-xz]
Saving to: ‘node-v9.3.0-linux-arm64.tar.xz’

node-v9.3.0-linux-a 100%[===================>]  10.21M  3.11MB/s    in 4.1s

2017-12-24 14:55:32 (2.50 MB/s) - ‘node-v9.3.0-linux-arm64.tar.xz’ saved [10704696/10704696]


Guide

The API is simply:

http://latest-nodejs.org/download/{channel}/{os}/{distribution}/{arch}

or assuming lts as the channel and binary as the distribution:

http://latest-nodejs.org/download/{os}/{arch}

with the full options:

http://latest-nodejs.org/download/{lts|current}/{windows|macos|linux}/{binary|installer}/{32-bit|64-bit|ARMv6|ARMv7|ARMv8}

or to download the latest source:

http://latest-nodejs.org/download/{lts|current}

Equally, you can request the link and other metadata on the latest distributions using the following form:

http://latest-nodejs.org/link/{channel}/{os}/{distribution}/{arch}

For example:

[user@host]$ curl http://latest-nodejs.org/link/lts
{
    "url": "https://nodejs.org/dist/v8.9.3/node-v8.9.3.tar.gz",
    "filename": "node-v8.9.3.tar.gz",
    "version": "8.9.3"
}

or:

[user@host]$  curl http://latest-nodejs.org/link/current/windows/binary/32-bit
{
    "url": "https://nodejs.org/dist/v9.3.0/node-v9.3.0-win-x86.zip",
    "filename": "node-v9.3.0-win-x86.zip",
    "version": "9.3.0"
}

When using curl or wget, you can request this home page and receive a text-formatted view of this documentation

[user@host]$ wget -O - http://latest-nodejs.org

or:

[user@host]$ curl http://latest-nodejs.org
LATEST-NODEJS.ORG
API for fetching the latest Node.js binaries from the official nodejs.org
website

 * Overview
 * Guide
 * FAQ
 * Swagger API Docs [/docs]

Node.js is a trademark of Joyent, Inc. and is used with its permission. This
service is not endorsed by or affiliated with Joyent.
OVERVIEW
Download the latest version listed on the nodejs.org [https://nodejs.org]
website for your chosen platform using this simple API, as illustrated by the
examples below:

CURL
[user@host]$ curl -JOL 'http://latest-nodejs.org/download/lts/linux/binary/64-bit'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    81  100    81    0     0     81      0  0:00:01 --:--:--  0:00:01 13500
100 10.8M  100 10.8M    0     0  2225k      0  0:00:05  0:00:05 --:--:-- 2757k
curl: Saved to filename 'node-v8.9.3-linux-x64.tar.xz'

...

FAQ

Is this an official website of the Node.js Foundation?

No. This website is a personal project of Damien Clark and is provided as-is without any warranty.

Is the source code for this service freely available?

Yes. The source code is licenced under the terms of the Apache Licence and is available from Github.

Why did you create this service for what may be only fringe cases?

This service basically scratches an itch, and solves a problem for me. If you find value in it, then all the better.

How do I contact the author?

You can email me at latest.nodejs.org@gmail.com.