The WEBSERVICE function returns data from an Internet or Intranet web service using machine-readable formats like XML or JSON. WEBSERVICE supports the HTTP and HTTPS protocols.
Syntax: =WEBSERVICE(URL)Â where URL is a web address or service to call.Â
For example:Â =WEBSERVICE("https://contoso.com/serviceEndpoint?searchString=Excel")
A #VALUE! error is returned if:
- 
                        The arguments result in a non-valid string or it contains more than 32767 characters. 
- 
                        The URL string contains more than 2048 characters that are allowed for a GET request. 
- 
                        Unsupported protocols such as ftp:// or file://. 
For best results, encode the URL for WEBSERVICE using the ENCODEURL function before including in a function. For more info, see ENCODEURL function.
The WEBSERVICE function isn't currently supported in Excel for the web. You can, however, use the WEBSERVICE function in the Excel desktop app.
- 
                    To open the desktop app, select Editing and choose Open in Desktop App at the top of the ribbon. 
Don't have the Excel desktop app? Try or buy Microsoft 365.
The WEBSERVICE function isn't currently supported in Excel for the Mac.
 
                         
				 
				