Miscellaneous information with the API

This topic guide explains how to retreive miscellaneous information from the Cool Farm Tool.

All URLs start with https://app.coolfarmtool.org/api/v1/.

GET /energy/

Retrieve a list of all energy sources, with the units that are valid for each

The Direct energy type table is also available in this documentation.

Example request

GET /energy/ HTTP/1.1
Host: app.coolfarmtool.org
Accept: application/json
X-APP-Authorization: ...

Example response

HTTP/1.1 200 OK
Content-Type: application/json

[
  {
    "valid_units": [
      [
        15,
        "litre"
      ],
      [
        26,
        "gal"
      ],
      [
        32,
        "m3"
      ],
      [
        40,
        "gal (US)"
      ],
      [
        57,
        "ha-mm"
      ],
      [
        58,
        "ha-cm"
      ],
      [
        59,
        "acre-in"
      ]
    ],
    "_uri": "/api/v0/energy/102/",
    "id": "102",
    "name": "diesel"
  },
  "..."
]
Request Headers