Is there a way to get iCloud Notes with CloudKit? I have looked at the documentation :
https://developer.apple.com/documentation/cloudkit
But no way to find how to access Notes data.
Is there a way to get iCloud Notes with CloudKit? I have looked at the documentation :
https://developer.apple.com/documentation/cloudkit
But no way to find how to access Notes data.
I don't think there's a public API for accessing iCloud Notes. This answer by test links to this project that uses Apple's private iCloud API.
However, Apple iCloud Terms Section VBi forbids "accessing the Service through any automated means, like scripts or web crawlers", and Section VIIB says:
Apple may at any time, under certain circumstances and without prior notice, immediately terminate or suspend all or a portion of your Account and/or access to the Service. Cause for such termination shall include: (a) violations of this Agreement . . .
If you'd like to understand how Apple's private API works, I don't think—although don't quote me on this—that their terms forbid you from observing the network traffic that occurs during your authorized use of iCloud Notes.
For example, from your desktop or laptop computer, you could use Google Chrome to inspect the network activity of iCloud Notes:
There's probably also a way to inspect the network traffic of the macOS (or iOS) Notes app.
Are you referring to Apple's Notes app? https://support.apple.com/guide/notes/welcome/mac
If so, then no, there aren't APIs for accessing that data. It's in one of Apple's CloudKit containers and can only be accessed by the Notes app.