This topic explains how to use the API features for queries from the Risk module.
More:
View Risk Query Results
View Risk Query Details
Count Risk Queries