> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Method name: items()

# Method package: wixPricingPlansBackend

# Method menu location: wixPricingPlansBackend --> PublicPlansQueryResult --> items

# Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/public-plans-query-result/items.md

# Method Description:

Returns the items that match the query.

The current page of items retrieved by the query.

 The page size is defined by the [`limit()`](https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/public-plans-query-builder/limit.md)
 function, can be retrieved using the [`pageSize`](#pageSize) property, and
 navigating through pages is done with the [`prev()`](#prev) and
 [`next()`](#next) functions.

 When no items match the query, the `items` array is empty.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## Perform a query and get the public pricing plan items from the result

```javascript
import wixPricingPlansBackend from 'wix-pricing-plans-backend';

// ...
wixPricingPlansBackend.queryPublicPlans()
  .find()
  .then((results) => {
    if (results.items.length > 0) {
      const items = results.items; // see below
    } else {
      // handle case where no matching items found
    }
  })
  .catch((error) => {
    const queryError = error;
  });


/* items:
 * [
 *  {
 *    "plan": {
 *      "_id": "5269ddde-a3a6-7c32-abc1-fe8af8331097",
 *      "name": "Basic",
 *      "description": "This plan provides the basics.",
 *      "pricing": {
 *        "singlePaymentUnlimited": true,
 *        "price": {
 *          "value": "50",
 *          "currency": "USD"
 *        }
 *      },
 *      "primary": false,
 *      "_createdDate": "2021-01-01T15:33:34.860Z",
 *      "_updatedDate": "2021-01-14T10:30:30.870Z",
 *      "slug": "basic",
 *      "allowFutureStartDate": false,
 *      "buyerCanCancel": true,
 *      "termsAndConditions": "",
 *      "perks": [
 *        "Essentials only",
 *        "For beginners"
 *      ]
 *    }
 *  },
 *  {
 *    "plan": {
 *      "_id": "31c26520-a3a6-7c32-abc1-d4b11e509a92",
 *      "name": "Intermediate",
 *      "description": "This plan provides intermediate capabilities",
 *      "pricing": {
 *        "subscription": {
 *          "cycleDuration": {
 *            "count": 1,
 *            "unit": "MONTH"
 *          },
 *          "cycleCount": 2
 *        },
 *        "price": {
 *          "value": "25",
 *          "currency": "USD"
 *        },
 *        "freeTrialDays": 3
 *      },
 *      "primary": false,
 *      "_createdDate": "2020-02-14T15:33:34.977Z",
 *      "_updatedDate": "2021-01-14T10:30:30.970Z",
 *      "slug": "intermediate",
 *      "allowFutureStartDate": false,
 *      "buyerCanCancel": true,
 *      "termsAndConditions": "",
 *      "perks": [
 *        "Cool templates you can reuse",
 *        "Includes the Basic plan"
 *      ]
 *    }
 *  },
 *  {
 *    "plan": {
 *      "_id": "6e01c2ae-b3b6-7a33-abc1-b7daf0fd125c",
 *      "name": "Advanced",
 *      "description": "This plan provides advanced capabilities",
 *      "pricing": {
 *        "subscription": {
 *          "cycleDuration": {
 *            "count": 1,
 *            "unit": "YEAR"
 *          },
 *          "cycleCount": 0
 *        },
 *        "price": {
 *          "value": "100",
 *          "currency": "USD"
 *        }
 *      },
 *      "primary": false,
 *      "_createdDate": "2020-12-14T15:33:35.677Z",
 *      "_updatedDate": "2021-01-14T11:33:11.677Z",
 *      "slug": "advanced",
 *      "allowFutureStartDate": false,
 *      "buyerCanCancel": true,
 *      "perks": [
 *        "Extra utilities, plug-ins",
 *        "Includes the Intermediate Plan"
 *      ]
 *    }
 *  },
 *  {
 *    "plan": {
 *      "_id": "a7fff6ae-b3b6-7a33-abc1-2b9f8b39e6c5",
 *      "name": "Advanced VIP",
 *      "description": "This plan provides a lot of extras that are really cool in addition to the regular Advanced plan",
 *      "pricing": {
 *        "singlePaymentUnlimited": true,
 *        "price": {
 *          "value": "125",
 *          "currency": "USD"
 *        }
 *      },
 *      "primary": false,
 *      "_createdDate": "2021-01-14T15:33:35.782Z",
 *      "_updatedDate": "2021-01-14T15:33:35.782Z",
 *      "slug": "advanced-vip",
 *      "allowFutureStartDate": false,
 *      "buyerCanCancel": true,
 *      "termsAndConditions": "",
 *      "perks": [
 *        "Free beer and champagne sent to your home when you purchase the plan",
 *        "Discount on our merchandise",
 *        "Includes the Advanced plan"
 *      ]
 *    }
 *  }
 * ]
 */
```

---