top of page

Technical Support

Public·326 members

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
Membro desconhecido
26 de nov. de 2024

This API is very simple and can be easily "hacked" with browser dev tool. Just in example:

{"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

Members

  • Piter Freide
    Piter Freide
  • Will Smith
    Will Smith
  • Rohit Rajput
    Rohit Rajput
  • Andrew Zarudnyi
    Andrew Zarudnyi
  • Tommy Cooper
    Tommy Cooper
bottom of page