Pipeline usage stats

We are using self-managed Gitlab v12, with one runner and we are considering to move to Gitlab.com, but before doing so, I’d like to know how many minutes of pipeline we currently use before picking plan.

Is there an endpoint or something like this we can use to retrieve this info ?