Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to fetch ServiceNow Instance version using a REST API

Shubhrajyoti
Kilo Contributor

Hi,

I need a REST end point using which I can fetch instance version of my ServiceNow instance.

Many people have posted a URL 

https://<instancename>.service-now.com/xmlstats.do

which gives XML output, however due to some reason this URL is not accepting user name/password while calling it from a script or curl call and authentication fails.

 

Anyways a REST api which is documented is better than calling an internal API which might change in future. Can anyone help?

 

Thanks in advance!

6 REPLIES 6

deepak105
Kilo Expert

How about using scripted rest api

https://docs.servicenow.com/bundle/london-application-development/page/integrate/custom-web-services/concept/c_CustomWebServices.html

here you can create whatever you require as rest api.

Thanks Deepak for the answer. I am looking for an API which is already being provided by Service Now. The reason for searching a published API is I am integrating with ServiceNow as a readonly user. Hence I wouldn't have permission to create anything on the instance.

asifnoor
Kilo Patron

Hi

Kindly refer to below link to find information on this. This should help you.

https://community.servicenow.com/community?id=community_question&sys_id=cb7fc725dbdcdbc01dcaf3231f961937

Mark the answer as correct/helpful if this helps.

Thanks Asif for the reply. I had already checked this thread, but is uses https://<instancename>.service-now.com/xmlstats.do which does not work for my case.