Connect to APM services transactions metadata

HI I have java app and need to connect with HTTP to verify url and status code from APM/Services?Transactions/Metadata . This is an additional way to verify our api calls. Is there a tutorial on how to do it? I browsed a lot and didnt find it. Any hints where to start?

From Elasticsearch to Elastic Observability