> 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: Setup

## Article: Setup

## Article Link: https://dev.wix.com/docs/sdk/data-items-sdk/data/items/setup.md

## Article Content:

@package_metadata:@wix/data

<blockquote class="important">

**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](https://dev.wix.com/docs/velo/apis/wix-data/introduction.md). If you are using an earlier version of this API, updating to the new version requires significant changes to your code.

</blockquote>

To use the Items API, install the `@wix/data` package.

## Install the package

To install the package, follow the instructions below based on your development environment.

### Wix sites and Blocks apps

When developing with:

+ Editor or Wix IDE: Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md).
+ Local IDE: Use the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md). Run the following command:
    ```bash
    npm install @wix/data
    ```
    or
    ```bash
    yarn add @wix/data
    ```

### Wix apps and Headless

When developing CLI or self-hosted apps, as well as headless apps or sites, run the following command:
```bash
npm install @wix/data
```
or
```bash
yarn add @wix/data
```

## Import the package

To import the package in your code:
```js
import { items } from "@wix/data";
```