The Data Items API allows you to access and manage items in a Wix site's data collections.
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 significant changes to your code.
For previous versions, refer to the documentation for the deprecated API.
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.