Http API usage

Hi folks,

I’m just beginning to use the RESTful API and have managed to get responses from the (MacOS) command line to the following command:

curl -X GET -H "Authorization: Bearer <API_key>" http://homeassistant.local:8123/api/states/sensor.sr_ms_frontporch_temperature

Is there any way to issue a cURL command like this from a web browser via a URL? I’ve migrated from Homeseer and used to query one of my sensors from an ESP32 with the following URL (getting a JSON return).

http://<ip_address>:42400/JSON?request=getstatus&ref=615

where 615 was the device ID.

Grateful for any help.

Aljrob