> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Introduction ## Article: Introduction ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/introduction.md ## Article Content: # About the Data Items API > **Note for app developers:** Wix Data APIs require the site's [code editor](https://dev.wix.com/docs/develop-websites/articles/get-started/development-environments.md) to be enabled. If you are building a Wix app, add a [data collections extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/data-collections/about-data-collections-extensions.md) 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: - Create and manage data items in a site's collections. - Retrieve data items from a collection individually or with filtering and sorting queries. - Create and manage reference fields. - Perform aggregations and calculations on data in collections. - Run advanced aggregation pipelines for complex data transformations. - Truncate a data collection, removing all its contents. The Data Items API only works with existing collections. To create and manage data collections, use the [Data Collections API](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections.md). ## Before you begin It's important to note the following points before starting to code: - The maximum size of an item you can save to a collection is 500 kb. - We don't recommend updating a data item more than once per second. - When using data retrieval endpoints such as [Query Data Items](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/query-data-items.md) or [Get Data Item](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/get-data-item.md) 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](https://dev.wix.com/docs/api-reference/business-solutions/cms/eventual-consistency.md) for more information and instructions for overriding this. - When querying [Wix app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md), check which fields can be filtered in the relevant collection field article. - Updating a data item replaces the existing item entirely. If the existing item had fields with values and those fields aren't included in the updated item, the values in those properties are lost. - Aggregations can't be performed on [Wix app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md). - After connecting external database collections to a Wix site using the [External Database Connections API](https://dev.wix.com/docs/api-reference/business-solutions/cms/external-databases/external-database-connection.md), you can use the Data Items API to manage and retrieve data from those collections as if they were Wix Data collections. ## Use cases + [Populate a collection with content.](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/sample-flows.md) + [Query data items by category.](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/sample-flows.md) + [Get statistics for data item by category.](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/sample-flows.md)