Hi Shutima
A very easy way is to use
https://github.com/prometheus/blackbox_exporter
> The blackbox exporter allows blackbox probing of endpoints over HTTP,
HTTPS, DNS, TCP and ICMP.
We included lots of RESTful APIs in our blackbox config
best regards
Evelyn