> 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 # Read # Package: siteProperties # Namespace: SitePropertiesV4 # Method link: https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties.md ## Permission Scopes: Manage Your App: SCOPE.DC.MANAGE-YOUR-APP ## Introduction Retrieves a current snapshot of a site's properties. --- ## REST API ### Schema ``` Method: read Description: Retrieves a current snapshot of a site's properties. URL: https://www.wixapis.com/site-properties/v4/properties Method: GET Method parameters: query param name: fields | type: fields | description: List of fields to return. If omitted, all fields are returned. Return type: PropertiesReadResponse - name: version | type: string | description: Current version of the stored property site. For internal use. - name: properties | type: Properties | description: Properties for the requested site. - name: categories | type: Categories | description: Site categories. - name: primary | type: string | description: Primary site category. - name: secondary | type: array | description: Secondary site category. - name: businessTermId | type: string | description: Business Term Id - name: locale | type: Locale | description: Site locale. - name: languageCode | type: string | description: Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. - name: language | type: string | description: Site language. Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. - name: paymentCurrency | type: string | description: Site currency format used to bill customers. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. - name: timeZone | type: string | description: Timezone in `America/New_York` format. - name: email | type: string | description: Email address. - name: phone | type: string | description: Phone number. - name: fax | type: string | description: Fax number. - name: address | type: Address | description: Address. - name: street | type: string | description: Street name. - name: city | type: string | description: City name. - name: country | type: string | description: Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. - name: state | type: string | description: State. - name: zip | type: string | description: Zip or postal code. - name: hint | type: AddressHint | description: Extra information to be displayed in the address. - name: text | type: string | description: Extra text displayed next to, or instead of, the actual address. - name: placement | type: PlacementType | description: Where the extra text should be displayed. - enum: BEFORE, AFTER, REPLACE - name: isPhysical | type: boolean | description: Whether this address represents a physical location. - name: googleFormattedAddress | type: string | description: Google-formatted version of this address. - name: streetNumber | type: string | description: Street number. - name: apartmentNumber | type: string | description: Apartment number. - name: coordinates | type: GeoCoordinates | description: Geographic coordinates of location. - name: latitude | type: number | description: Latitude of the location. Must be between -90 and 90. - name: longitude | type: number | description: Longitude of the location. Must be between -180 and 180. - name: siteDisplayName | type: string | description: Site display name. - name: businessName | type: string | description: Business name. - name: logo | type: string | description: Path to the site's logo in Wix Media (without Wix Media base URL). - name: description | type: string | description: Site description. - name: businessSchedule | type: BusinessSchedule | description: Business schedule. Regular and exceptional time periods when the business is open or the service is available. __Note:__ Not supported by Wix Bookings. - name: periods | type: array | description: Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. - name: openDay | type: DayOfWeek | description: Day of the week the period starts on. - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY - name: openTime | type: string | description: Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents midnight at the end of the specified day. - name: closeDay | type: DayOfWeek | description: Day of the week the period ends on. - name: closeTime | type: string | description: Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents midnight at the end of the specified day. __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`. - name: specialHourPeriod | type: array | description: Exceptions to the business's regular hours. The business can be open or closed during the exception. - name: startDate | type: string | description: Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). - name: endDate | type: string | description: End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). - name: isClosed | type: boolean | description: Whether the business is closed (or the service is not available) during the exception. Default: `true`. - name: comment | type: string | description: Additional info about the exception. For example, "We close earlier on New Year's Eve." - name: multilingual | type: Multilingual | description: Supported languages of a site and the primary language. - name: supportedLanguages | type: array | description: Supported languages list. - name: languageCode | type: string | description: Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. - name: locale | type: Locale | description: Locale. - name: isPrimary | type: boolean | description: Whether the supported language is the primary language for the site. - name: countryCode | type: string | description: Language icon. - name: resolutionMethod | type: ResolutionMethod | description: How the language will be resolved. For internal use. - enum: QUERY_PARAM, SUBDOMAIN, SUBDIRECTORY - name: isVisitorPrimary | type: boolean | description: Whether the supported language is the primary language for site visitors. - name: autoRedirect | type: boolean | description: Whether to redirect to user language. - name: consentPolicy | type: ConsentPolicy | description: Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). - name: essential | type: boolean | description: Whether the site uses cookies that are essential to site operation. Always `true`. - name: functional | type: boolean | description: Whether the site uses cookies that affect site performance and other functional measurements. - name: analytics | type: boolean | description: Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). - name: advertising | type: boolean | description: Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. - name: dataToThirdParty | type: boolean | description: CCPA compliance flag. - name: businessConfig | type: string | description: Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`. Site business type. - name: externalSiteUrl | type: string | description: External site URL that uses Wix as its headless business solution. - name: trackClicksAnalytics | type: boolean | description: Track clicks analytics. - name: companyId | type: string | description: Company GUID issued to the business by local authorities. Appears on invoices and price quotes. Possible Errors: HTTP Code: 401 | Status Code: UNAUTHENTICATED | Application Code: META_SITE_NOT_FOUND | Description: Couldn't find the site. HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: PERMISSION_DENIED | Description: The [identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md) used to call the method doesn't have the required permissions. ``` ### Examples ### Example with Fieldmask ```curl curl -X GET \ 'https://www.wixapis.com/site-properties/v4/properties?fields.paths=locale&fields.paths=businessName' -H 'Authorization: ' ``` ### Read ```curl ~~~cURL curl -X GET \ 'https://www.wixapis.com/site-properties/v4/properties' -H 'Authorization: ' ~~~ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.siteProperties.SitePropertiesV4.read(options) Description: Retrieves a current snapshot of a site's properties. Method parameters: param name: options | type: ReadOptions none - name: fields | type: array | description: List of fields to return. If omitted, all fields are returned. Return type: PROMISE - name: version | type: string | description: Current version of the stored property site. For internal use. - name: properties | type: Properties | description: Properties for the requested site. - name: categories | type: Categories | description: Site categories. - name: primary | type: string | description: Primary site category. - name: secondary | type: array | description: Secondary site category. - name: businessTermId | type: string | description: Business Term Id - name: locale | type: Locale | description: Site locale. - name: languageCode | type: string | description: Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. - name: language | type: string | description: Site language. Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. - name: paymentCurrency | type: string | description: Site currency format used to bill customers. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. - name: timeZone | type: string | description: Timezone in `America/New_York` format. - name: email | type: string | description: Email address. - name: phone | type: string | description: Phone number. - name: fax | type: string | description: Fax number. - name: address | type: Address | description: Address. - name: street | type: string | description: Street name. - name: city | type: string | description: City name. - name: country | type: string | description: Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. - name: state | type: string | description: State. - name: zip | type: string | description: Zip or postal code. - name: hint | type: AddressHint | description: Extra information to be displayed in the address. - name: text | type: string | description: Extra text displayed next to, or instead of, the actual address. - name: placement | type: PlacementType | description: Where the extra text should be displayed. - enum: BEFORE, AFTER, REPLACE - name: isPhysical | type: boolean | description: Whether this address represents a physical location. - name: googleFormattedAddress | type: string | description: Google-formatted version of this address. - name: streetNumber | type: string | description: Street number. - name: apartmentNumber | type: string | description: Apartment number. - name: coordinates | type: GeoCoordinates | description: Geographic coordinates of location. - name: latitude | type: number | description: Latitude of the location. Must be between -90 and 90. - name: longitude | type: number | description: Longitude of the location. Must be between -180 and 180. - name: siteDisplayName | type: string | description: Site display name. - name: businessName | type: string | description: Business name. - name: logo | type: string | description: Path to the site's logo in Wix Media (without Wix Media base URL). - name: description | type: string | description: Site description. - name: businessSchedule | type: BusinessSchedule | description: Business schedule. Regular and exceptional time periods when the business is open or the service is available. __Note:__ Not supported by Wix Bookings. - name: periods | type: array | description: Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. - name: openDay | type: DayOfWeek | description: Day of the week the period starts on. - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY - name: openTime | type: string | description: Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents midnight at the end of the specified day. - name: closeDay | type: DayOfWeek | description: Day of the week the period ends on. - name: closeTime | type: string | description: Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents midnight at the end of the specified day. __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`. - name: specialHourPeriod | type: array | description: Exceptions to the business's regular hours. The business can be open or closed during the exception. - name: startDate | type: string | description: Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). - name: endDate | type: string | description: End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). - name: isClosed | type: boolean | description: Whether the business is closed (or the service is not available) during the exception. Default: `true`. - name: comment | type: string | description: Additional info about the exception. For example, "We close earlier on New Year's Eve." - name: multilingual | type: Multilingual | description: Supported languages of a site and the primary language. - name: supportedLanguages | type: array | description: Supported languages list. - name: languageCode | type: string | description: Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. - name: locale | type: Locale | description: Locale. - name: isPrimary | type: boolean | description: Whether the supported language is the primary language for the site. - name: countryCode | type: string | description: Language icon. - name: resolutionMethod | type: ResolutionMethod | description: How the language will be resolved. For internal use. - enum: QUERY_PARAM, SUBDOMAIN, SUBDIRECTORY - name: isVisitorPrimary | type: boolean | description: Whether the supported language is the primary language for site visitors. - name: autoRedirect | type: boolean | description: Whether to redirect to user language. - name: consentPolicy | type: ConsentPolicy | description: Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). - name: essential | type: boolean | description: Whether the site uses cookies that are essential to site operation. Always `true`. - name: functional | type: boolean | description: Whether the site uses cookies that affect site performance and other functional measurements. - name: analytics | type: boolean | description: Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). - name: advertising | type: boolean | description: Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. - name: dataToThirdParty | type: boolean | description: CCPA compliance flag. - name: businessConfig | type: string | description: Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`. Site business type. - name: externalSiteUrl | type: string | description: External site URL that uses Wix as its headless business solution. - name: trackClicksAnalytics | type: boolean | description: Track clicks analytics. - name: companyId | type: string | description: Company GUID issued to the business by local authorities. Appears on invoices and price quotes. Possible Errors: HTTP Code: 401 | Status Code: UNAUTHENTICATED | Application Code: META_SITE_NOT_FOUND | Description: Couldn't find the site. HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: PERMISSION_DENIED | Description: The [identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md) used to call the method doesn't have the required permissions. ``` ### Examples ### Get Site Properties (with elevated permissions) @description: ```javascript import { siteProperties } from '@wix/business-tools'; import { auth } from '@wix/essentials'; export async function myGetSitePropertiesFunction() { try { const elevatedGetSiteProperties = auth.elevate(siteProperties.getSiteProperties); const mySiteProperties = await elevatedGetSiteProperties(); console.log('Success! Site properties:', mySiteProperties); return mySiteProperties; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "properties": { * "address": { * "apartmentNumber": "", * "city": "Radlett", * "coordinates": { * "latitude": 51.6855755, * "longitude": -0.3241171999999999 * } * "country": "GB", * "googleFormattedAddress": "10 Watford Road, Radlett, UK", * "hint": { * "placement": "BEFORE", * "text": "Located on the ground floor" * }, * "isPhysical": true, * "state": "Greater London", * "street": "Watford Road", * "streetNumber": "10", * "zip": "WD7 8LD", * }, * "businessConfig": "UNKNOWN", * "businessName": "Kids Clothes For You", * "businessSchedule": { * "periods": [ * { * "closeDay": "MONDAY", * "closeTime": "18:00", * "openDay": "MONDAY", * "openTime": "08:00" * }, * { * "closeDay": "TUESDAY", * "closeTime": "18:00", * "openDay": "TUESDAY", * "openTime": "08:00" * }, * { * "closeDay": "WEDNESDAY", * "closeTime": "18:00", * "openDay": "WEDNESDAY", * "openTime": "08:00" * }, * { * "closeDay": "THURSDAY", * "closeTime": "18:00", * "openDay": "THURSDAY", * "openTime": "08:00" * }, * { * "closeDay": "FRIDAY", * "closeTime": "18:00", * "openDay": "FRIDAY", * "openTime": "08:00" * } * ], * "specialHourPeriod": [ * { * "comment": "Half price in the lead up to Christmas!", * "endDate": "2023-12-24T23:59:00Z", * "isClosed": false, * "startDate": "2023-12-01T00:00:00Z" * } * ] * }, * "categories": { * "businessTermId": "38194ba8-1218-431c-a007-09c26c75ee0d" * "primary": "other", * "secondary": [ * "Local Business" * ], * }, * "consentPolicy": { * "advertising": true, * "analytics": true, * "dataToThirdParty": true, * "essential": true, * "functional": true * }, * "description": "Clothes for little people, for a little price!", * "email": "kidsclothes@example.com", * "fax": "011-44-20-12345678", * "language": "en", * "locale": { * "languageCode": "en", * "country": "GB" * }, * "logo": "a8a52b_bf5596e614d8484e9f1d429ac256e1ad~mv2.jpeg", * "paymentCurrency": "GBP", * "phone": "0208 123 4569", * "siteDisplayName": "Business Tools", * "timeZone": "Europe/London", * "trackClicksAnalytics": false * }, * "version": "60" * } */ ``` ### Get Site Properties @description: ```javascript import { siteProperties } from '@wix/business-tools'; export async function myGetSitePropertiesFunction() { try { const mySiteProperties = await siteProperties.getSiteProperties(); console.log('Success! Site properties:', mySiteProperties); return mySiteProperties; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "properties": { * "address": { * "apartmentNumber": "", * "city": "Radlett", * "coordinates": { * "latitude": 51.6855755, * "longitude": -0.3241171999999999 * } * "country": "GB", * "googleFormattedAddress": "10 Watford Road, Radlett, UK", * "hint": { * "placement": "BEFORE", * "text": "Located on the ground floor" * }, * "isPhysical": true, * "state": "Greater London", * "street": "Watford Road", * "streetNumber": "10", * "zip": "WD7 8LD", * }, * "businessConfig": "UNKNOWN", * "businessName": "Kids Clothes For You", * "businessSchedule": { * "periods": [ * { * "closeDay": "MONDAY", * "closeTime": "18:00", * "openDay": "MONDAY", * "openTime": "08:00" * }, * { * "closeDay": "TUESDAY", * "closeTime": "18:00", * "openDay": "TUESDAY", * "openTime": "08:00" * }, * { * "closeDay": "WEDNESDAY", * "closeTime": "18:00", * "openDay": "WEDNESDAY", * "openTime": "08:00" * }, * { * "closeDay": "THURSDAY", * "closeTime": "18:00", * "openDay": "THURSDAY", * "openTime": "08:00" * }, * { * "closeDay": "FRIDAY", * "closeTime": "18:00", * "openDay": "FRIDAY", * "openTime": "08:00" * } * ], * "specialHourPeriod": [ * { * "comment": "Half price in the lead up to Christmas!", * "endDate": "2023-12-24T23:59:00Z", * "isClosed": false, * "startDate": "2023-12-01T00:00:00Z" * } * ] * }, * "categories": { * "businessTermId": "38194ba8-1218-431c-a007-09c26c75ee0d" * "primary": "other", * "secondary": [ * "Local Business" * ], * }, * "consentPolicy": { * "advertising": true, * "analytics": true, * "dataToThirdParty": true, * "essential": true, * "functional": true * }, * "description": "Clothes for little people, for a little price!", * "email": "kidsclothes@example.com", * "fax": "011-44-20-12345678", * "language": "en", * "locale": { * "languageCode": "en", * "country": "GB" * }, * "logo": "a8a52b_bf5596e614d8484e9f1d429ac256e1ad~mv2.jpeg", * "paymentCurrency": "GBP", * "phone": "0208 123 4569", * "siteDisplayName": "Business Tools", * "timeZone": "Europe/London", * "trackClicksAnalytics": false * }, * "version": "60" * } */ ``` ### getSiteProperties() with choice of fields (with $w) This code is an example of a webpage where the user uses checkboxes to indicate which of the site's details they want to view. ```javascript /************************************************ * Backend code - get-site-properties.web.js/ts * ***********************************************/ import { Permissions, webMethod } from '@wix/web-methods'; import { siteProperties } from '@wix/business-tools'; import { auth } from '@wix/essentials'; export const displaySiteProperties = webMethod(Permissions.Anyone, async (options) => { try { const elevatedGetSiteProperties = auth.elevate(siteProperties.getSiteProperties); const mySiteProperties = await elevatedGetSiteProperties(options); console.log('Success! Site properties:', mySiteProperties); return mySiteProperties; } catch (error) { console.error(error); throw new Error(error); } }); /************* * Page code * ************/ import { displaySiteProperties } from 'backend/get-site-properties.web'; $w.onReady(() => { $w('#submit').onClick(async () => { const checkedFields = getFields(); if (!checkedFields.length) { $w('#chooseAFieldsMsg').show(); setTimeout(() => { $w('#chooseAFieldsMsg').hide(); }, 10000); } else { const fieldOptions = { fields: checkedFields } const mySiteProperties = await displaySiteProperties(fieldOptions); console.log('Chosen site properties are being displayed on the page:', mySiteProperties); $w('#siteProperties').text = mySiteProperties; } }); }); function getFields() { const checkedFields = []; if ($w('#address').checked) { checkedFields.push('address'); } if ($w('#businessConfig').checked) { checkedFields.push('businessConfig'); } if ($w('#businessSchedule').checked) { checkedFields.push('businessSchedule'); } if ($w('#categories').checked) { checkedFields.push('categories'); } if ($w('#consentPolicy').checked) { checkedFields.push('consentPolicy'); } if ($w('#description').checked) { checkedFields.push('description'); } if ($w('#email').checked) { checkedFields.push('email'); } if ($w('#fax').checked) { checkedFields.push('fax'); } if ($w('#language').checked) { checkedFields.push('language'); } if ($w('#locale').checked) { checkedFields.push('locale'); } if ($w('#logo').checked) { checkedFields.push('logo'); } if ($w('#paymentCurrency').checked) { checkedFields.push('paymentCurrency'); } if ($w('#phone').checked) { checkedFields.push('phone'); } if ($w('#siteDisplayName').checked) { checkedFields.push('siteDisplayName'); } if ($w('#timeZone').checked) { checkedFields.push('timeZone'); } if ($w('#trackClicksAnalytics').checked) { checkedFields.push('trackClicksAnalytics'); } return checkedFields; } ``` ### Get Business Name and Description from Site Properties (with elevated permissions) @description: ```javascript import { siteProperties } from '@wix/business-tools'; import { auth } from '@wix/essentials'; /* Sample options value: * { * fields: [ * 'businessName', * 'description' * ] * } */ export async function myGetSitePropertiesFunction(options) { try { const elevatedGetSiteProperties = auth.elevate(siteProperties.getSiteProperties); const mySiteProperties = await elevatedGetSiteProperties(options); console.log('Success! Site properties:', mySiteProperties); return mySiteProperties; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "properties": { * "businessName": "Kids Clothes For You", * "description": "Clothes for little people, for a little price!", * "trackClicksAnalytics": false * }, * "version": "60" * } */ ``` ### Get Business Name and Description from Site Properties @description: ```javascript import { siteProperties } from '@wix/business-tools'; /* Sample options value: * { * fields: [ * 'businessName', * 'description' * ] * } */ export async function myGetSitePropertiesFunction(options) { try { const mySiteProperties = await siteProperties.getSiteProperties(options); console.log('Success! Site properties:', mySiteProperties); return mySiteProperties; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "properties": { * "businessName": "Kids Clothes For You", * "description": "Clothes for little people, for a little price!", * "trackClicksAnalytics": false * }, * "version": "60" * } */ ``` ### getSiteProperties (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { siteProperties } from '@wix/business-tools'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { siteProperties }, // Include the auth strategy and host as relevant }); async function getSiteProperties(options) { const response = await myWixClient.siteProperties.getSiteProperties(options); }; ``` ---