How to get complete local folder synchronization?

I used REST API /rest/db/completion parameter : device=myID&folder=foldername it always get {“completion”: 0} and other /rest/events?since=0&limit=1 get last event, search for “type”: “FolderCompletion” in result and search “completion”: it’s value always 100 and “device”: value is not local device id

how to get sync complete or out of sync in rest api?

You can use /rest/db/status and check the bytes needed.

how to calculate complete percentage ?

Have bytes/Global bytes * 100

Thank you for answer my problen have been resolved, thanks