About the Site Info API

The Site Info API tells you the display name, revision number, and ID of the site your code runs on. Use it to show the site's name to site visitors, or to tag your own error reports with the site's revision.

With the Site Info API, you can:

  • Retrieve the site's display name.
  • Retrieve the site's revision number.
  • Retrieve the site's ID.

Use cases

Terminology

  • Revision: A saved or published version of the site, as listed in its site history.

SDK setup

@wix/site-service-site-info

To use the API, install the @wix/site-service-site-info package:

Copy

Import the package

Copy

Resolve the service

In a React component, resolve the service with the useService hook:

Copy

Last updated: 19 October 2026

Did this help?