Retrieving issues and measures data file for a component for given history date

  • Community Edition
  • Version 7.9.2 (build 30863)

Hi all,
I’m a beginner in this field and I’m trying to retrieve sonar issues and measures data files of a component for a given date (eg: 06/07/2022).
so far I’m downloading weekly snapshots of the data files starting from august. What should I do to retrieve past data with a single api call? (i. e. with a given parameter to date so that I can get backdated data files for all the components)

I’m using
“api/issues/search?” to retrieve issues data
“api/measures/component?” to retrieve measures data



Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.2 → 8.9.9 → 9.6 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.


1 Like

Hi Ann,

Thank you so much for the reply. I’m an intern and don’t have any admin rights. my task is to find a way to retrieve issues and measures data available for a given date of sonar components.

I tried the guide you provided and couldn’t get what I’m looking for.
Thanks again for your kind support


Hi Lelani,

I urge you to notify your SQ admins that the version you’re using is woefully out of date.


1 Like

Hi Ann,

Sure will inform about this matter.

Lelani :slight_smile:

1 Like