Introduction

To use the generalInfo API, import wixSiteBackend from the wix-site-backend module:

Copy
Did this help?

getAddress( )


Gets the physical address of the site's business.

The getAddress() function returns a Promise that resolves to the site's corresponding physical address information.

The retrieved address is the address that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoAddress>
Get site's corresponding physical address information
JavaScript
Did this help?

getBusinessName( )


Gets the site business name.

The getBusinessName() function returns a Promise that resolves to the site's business name information.

The retrieved business name is the name that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the site business name
JavaScript
Did this help?

getBusinessSchedule( )


Gets the business hours of the site's business.

The getBusinessSchedule() function returns a Promise that resolves to the site's corresponding business hours information.

The retrieved schedule is the schedule that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoSchedule>
Get site business hours
JavaScript
Did this help?

getCategories( )


Gets the site category information.

The getCategories() function returns a Promise that resolves to the site's category information.

The retrieved category information is the information that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoCategories>
Get site category information
JavaScript
Did this help?

getDescription( )


Gets the site description.

The getDescription() function returns a Promise that resolves to the site's description information.

The retrieved description is the description that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the site description
JavaScript
Did this help?

getEmail( )


Gets the email address used for notifications of activities on your site.

The getEmail() function returns a Promise that resolves to the site's email information.

The retrieved email address is the address that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the email address used for notifications of activities on your site
JavaScript
Did this help?

getFax( )


Gets the fax number used for notifications of activities on your site.

The getFax() function returns a Promise that resolves to the site's fax number information.

The retrieved fax number is the fax number that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the fax number used for notifications of activities on your site
JavaScript
Did this help?

getLanguage( )


Gets site language information.

The getLanguage() function returns a Promise that resolves to the site's language information.

The retrieved language information is the information that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
function getLanguage(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get site language information
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getLanguage = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getLanguage(); // "en" });
Did this help?