Wix Code APIs empower you to take full control of your site’s functionality. Use the APIs to interact with page elements, your site’s database content, and external services. The APIs also give you access to information about your site, its users, and more.
The following APIs are available:
$w namespace contains everything you need in order to work
with your site's components. It contains all of the UI elements, nodes, and
events that make up your site. It also includes the
The APIs in
$w can only be used in front-end code.
You do not need to import
The wix-crm module contains functionality for working with your site's contacts from client-side code.
The wix-crm-backend module contains functionality for working with your site's contacts from backend code.
wix-dataThe wix-data module contains functionality for working with data in collections.
wix-datasetA dataset connects page elements to a set of items in a data collection.
wix-http-functionsHTTP functions are used to expose an API of your site's functionality.
The wix-location module contains functionality for getting information about the URL of the current page and for navigating to other pages.
The wix-pay module contains functionality for working with payments from client-side code.
The wix-pay-backend module contains functionality for working with payments from backend code.
wix-routerThis module contains the APIs for code routers and data binding router hooks.
wix-siteThe wix-site module contains functionality for obtaining information about your site and its pages.
The wix-storage module contains functionality for the persistent storage of key/value data in the user's browser.
The wix-stores module contains functionality for working with your site's store from from client-side code.
The wix-stores-backend module contains functionality for working with your site's store from backend code.
The wix-users module contains functionality for working with your site's users from client-side code.
The wix-users-backend module contains functionality for working with your site's users from backend code.
The wix-window module contains functionality that pertains to the current browser window.