Get code coverage using REST API query

Let’s suppose you need to find all the classes or triggers starting with “MY_” and having 0 lines covered. The REST API query we need would be as follows:


Obviously, it will return a JSON string with the classes and triggers which match the criteria. There are a lot of online tools to view the JSON response as a tree view, such as Code beauty and JSON Viewer or even convert it into CSV.