Forum - API call for Analytics data available timestamp

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #63209
    Jesse Russell
    Participant

    Is there an API call or any way to display when your Analytics data was last updated? Much like you see right in Alma:

    Data available as of:
    09/27/2019 01:12:39 EDT
    Data updated as of:
    09/26/2019 20:00:00 EDT

    I am displaying a report via an API call and want to let the user know how current the data they are seeing is.

    Thanks

    #63210
    Brandon Uhlman
    Participant

    I took a look at the HTML source for the Alma interface to see where that data was getting pulled from.

    I don’t know if this is officially supported by Ex Libris (or has any guarantee of remaining stable or available), but at least right now, you can get JSON output of the current Analytics refresh status by visiting https://YOUR.ALMA.BASE.URL/infra/general/analytics_refresh_dateUXP.jsp.

    Authentication to Alma doesn’t appear to be required.

    #63211
    Jesse Russell
    Participant

    Interesting find. Thanks!

    #63213
    Jesse Russell
    Participant

    Executing a CURL request on this URL ends up providing a different data than if you open it in your browser, so perhaps it is passing login info along in the header, because even the time zone is correct and converted from UTC, whereas the CURL request results are not.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.