SunSunk API
Hi, does anyone have the details on how to request access to Sunsynk's open API? They have a document for the Token. But support does not respond to any email if you request an API key and Secret?
Thanks
140 Views

Hi, does anyone have the details on how to request access to Sunsynk's open API? They have a document for the Token. But support does not respond to any email if you request an API key and Secret?
Thanks
This API is very simple and can be easily "hacked" with browser dev tool. Just in example:
Get a token: HTTP POST https://api.sunsynk.net/oauth/token with body(JSON)
{"username":"your_email@example.com","password":"your password","grant_type":"password","client_id":"csp-web","source":"sunsynk"}How to get info the same as "Operational Data": (authorisation is Bearer token from previous call)
HTTP GET https://api.sunsynk.net/api/v1/workdata/dynamic?page=1&limit=10&sn=<your_serialN>&dateRange=2024-10-25,2024-10-25&type=1&lan=en&nextStartPrimaryKey=<some_string>where:
your_serialN - serial number of your invertor
page, limit - required, but doesn't impact to anything
dateRange - 1 day only
NextStartPrimaryKey is empty for the first page and the last parameter in response for the next page.
But I agree with recommendation to get it from modbus:
The data on site is refreshed once per 5 minute
The stability of the site can be better
It is possible, that some interested parameters are missed on the site