Hi,
Welcome to the community!
You’re better off using the APIs to download the rules directly from your SonarQube instance.
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.
HTH,
Ann