If you are writing a personal Python script, Home Assistant integration, or Raspberry Pi automation, you can fetch your data directly without setting up a complex OAuth application.
Prerequisites
You do not need to generate API keys for this. You will use your standard iON email and password that you use to log into the consumer app.
The Script
Copy the Python script below. It uses our public DIY Client ID to automatically authenticate your account and fetch a 1-hour id_token to use for API requests.
Security Note: Because this script uses your real username and password,
it should only be used in secure, local environments (like your own Raspberry
Pi). Never put this script on a public web server.