GET

List Published Site Urls


Retrieves a list of a site's published URLs. If a site hasn't been published, the call returns an empty array.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Read Site URLs
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/urls-server/v2/published-site-urls

Query Params
filters.urlTypestring

URL type filter. Default: ALL


filters.primaryboolean

Whether to return only the site's primary URL.
Default: true.


filters.multilingualboolean

Whether to return language subdomains hosted by Wix Multilingual.
Default: true.

Response Object
urlsArray <Url>maxItems 1000

List of published site URLs. This array will be empty if the site isn't published.

List Published Site URLs
Request
cURL
curl -X GET \ 'https://www.wixapis.com/urls-server/v2/published-site-urls' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \
Response
JSON
{ urls: [ "urlType" : "Premium", "primary" : true, "url": "https://www.your-domain.com", "multilingualInfo": { "languageCode": "en", "defaultLanguage": true } ]
Errors
400Invalid Argument

There are 3 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?