How to fetch ServiceNow Instance version using a REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-31-2019 11:17 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-31-2019 11:27 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-31-2019 11:33 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-31-2019 11:53 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-01-2019 12:05 AM
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.