There are 2 main approaches to working with data in your Wix site. You can either use datasets or the Data API. Understanding the strengths and use cases of each approach will help you choose the right tool for your specific needs.
Both approaches work with the same CMS collections and provide access to the same data. The key differences are in how you interact with that data and connect it to page elements.
Note: Data hooks work with both datasets and Data API operations, allowing you to add custom processing logic regardless of which approach you choose.
Datasets are invisible page components that bridge your CMS data with visual elements like repeaters, forms, and input fields. They handle the connection automatically, providing a no-code solution that you can extend with low-code Dataset API customizations when needed.
Choose datasets when you need:
The Data API gives you direct programmatic access to a site's collections. You write code to query, insert, update, and delete data, then manually connect that data to your page elements.
Tip: In addition to functionality for working with data items, the Data API also contains functionality for managing collections, indexes, and more.
Choose the Data API when you need: