Fetching data through api


I am trying to fetch data through the API in PHP from Metabase, but I am not able to retrieve it. Previously, I fetched data using a query, but now I want to fetch data solely through the API. Can someone help with this?

which api do you want to hit? or which information do you want to retrieve?