How to get metric values via API

Hello,

How can I get metric values in any format via API?

I looked at the documentation, but did not find anything.

Best regards