Emoncms API

Post data from your own devices and scripts, read back recorded data and configuration.

Your API keys

There are two API keys: a read only key, safe to use in dashboards and shared links, and a read & write key that lets devices post data to your account.

Log in or create an account to get your keys.

Three ways to authenticate

RECOMMENDED POST body: apikey=APIKEY
HEADER Authorization: Bearer APIKEY
URL &apikey=APIKEY

No HTTPS on your device? Emoncms also supports AES-128-CBC encrypted posting using your API key as a pre-shared key. See the reference below.

Send your first data

Three steps, nothing to install, just your browser

1

Copy this URL

It posts a value of 100 to an input called power1 on a device named emontx. Log in and your write key is filled in automatically.

https://emoncms.org/input/post?node=emontx&fulljson={"power1":100}&apikey=APIKEY
2

Open it in a new tab

The server replies to confirm your data was received:

{"success": true}
3

Watch it arrive

Your new input appears on the Inputs page, ready to log to a feed.

EMONTX
power1 100 2s ago

Then go further

Each guide opens the relevant part of the API reference below

API reference

Full input, feed, device and process API reference

/
{{ module.name.toUpperCase() }} API {{ group.name }}
KEY REQUIRED
read write public ok

No endpoints match your filter

Using an AI assistant to write API client code? Point it at the machine readable reference: site/api.md · site/api.json · llms.txt