How to Get Cart price rules data by id Magento 2?

You can get Sales rule (Cart Price rules) data by id in Magento 2 to fetch all the Cart rules related information.

You required Sales Rule id to retrieve the data of sales rule.

Just refer the below code snippet,

You can get the data of sales rule by id,
$ruleId = 1;
$salesRuledata = $this->getRuledata($ruleId);

echo $salesRuledata->getName();