The Data Items API allows you to access and manage items in a Wix site's data collections.
Warning: This API has been deprecated as of version 1.0.179. It has been replaced by a new version that includes significant functionality changes. Learn more about the new data items 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.
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:
queryDataItems() or getDataItem() 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.