Opportunities metric

Hello,

I am trying get total amount of opportunities per Ads using hubspot APIs.
Which APIs can I find it? If it don’t exist, how can I do to calculate it?

I tried use supermetrics to get this metric, but it just return the total amount of opportunities of clients that sent first form submission.

att,