Review analytics via api

hi.
Is there a way to use REST/GraphQL API or any other means to obtain code review information.
Basically I would like to see something like “Review Analytics” in grafana.
Specifically, I’d like to info about a given merge request:

  • was it approved before merge? (I know it is a repository setting, but it is possible a repository would be re-configured, so if today it has a setting, maybe in the past it did not)
  • how long did the review take? (time since the 1st reviewer comment to the last approval)
  • how many people approved it? (I think I know how to get this via REST API, but maybe the ideas here would be better)

Maybe somebody has already done this?

Thanks in advance :pray:

It looks as somebody already asked a similar question, but no answer there.