Important:
Starting from version 1.0.185, the Data Items API was significantly revised to closely match the functionality and syntax of the Velo wix-data API. If you are using an earlier version of this API, updating to the new version requires changes to your code.
For previous versions, refer to the documentation for the deprecated API.
Note for app developers: Wix Data APIs require the site's code editor to be enabled. If you are building a Wix app, add a data collections extension to automatically enable the code editor and create data collections when your app is installed on a site.
The Data Items API allows you to access and manage items in a Wix site's data collections.
With the Data Items API, you can:
The Data Items API only works with existing collections. To create and manage data collections, use the Data Collections API.
It's important to note the following points before starting to code:
query() or get() following an update to a collection's data, the data retrieved may not yet contain the most recent changes. See Wix Data and Eventual Consistency for more information and instructions for overriding this.