The Java linode API allows you to programmatically create and control Linode resources. Thie API provides you access to:

  1. Linodes
  2. NodeBalancers
  3. StackScripts
  4. DNS
  5. Account
  6. Utility


To keep the calls synchronised with the live API documents, all of the api calls are automatically generated from the https://www.linode.com/api pages so that they are kept in sync.


  1. A linode Account - sign up/sign in for one here: www.linode.com
  2. A linode API Access key - once you are logged in, go here to create one https://manager.linode.com/profile/api
  3. that's it!


Single Requests

// create a  linodeApi object
LinodeApi linodeApi = new LinodeApi("<YOUR_SUPER_SECRET_API_KEY>");

// create a single request to get the available datacentres
LinodeResponse linodeResponse = linodeApi.execute(Avail.datacenters());

// the response should look something like this:

         "LOCATION":"Dallas, TX, USA",
         "LOCATION":"Fremont, CA, USA",
         "LOCATION":"Atlanta, GA, USA",
         "LOCATION":"Newark, NJ, USA",
         "LOCATION":"London, England, UK",
         "LOCATION":"Tokyo, JP",
          "LOCATION":"Singapore, SG",
          "LOCATION":"Frankfurt, DE",

Multiple Requests

// create a  linodeApi object
LinodeApi linodeApi = new LinodeApi("<YOUR_SUPER_SECRET_API_KEY>");

// create an list of requests to perform
List<LinodeRequest> linodeRequests = new ArrayList<LinodeRequest>();

// add in the requests

// perform the requests and get back the responses
List<LinodeResponse> linodeResponses = linodeApi.execute(linodeRequests);

Available API calls

have a look at https://github.com/synapticloop/linode-api/blob/master/src/main/java/synapticloop/linode/LinodeApi.java for the list of available API classes.

Dependency Management

Note that the latest version can be found https://bintray.com/synapticloop/maven/linode-api/

Include the dependency


this comes from the jcenter bintray, to set up your repository:

<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>

And now for the dependency




repositories {
    maven {
        url  "http://jcenter.bintray.com" 

or just

repositories {

and then include the dependency:

runtime(group: 'synapticloop', name: 'linode-api', version: 'latest', ext: 'jar')compile(group: 'synapticloop', name: 'linode-api', version: 'latest', ext: 'jar')


runtime 'synapticloop:linode-api:latest'

compile 'synapticloop:linode-api:latest'


You may either download the files from https://bintray.com/synapticloop/maven/linode-api/ or from https://github.com/synapticloop/linode-api/releases

You will also need the dependencies:

  • org.json json 20090211
  • org.apache.httpcomponents httpclient 4.3.4