How to get insights of Goals, Heatmap and session recordings through API?

Hi Matomo community,
I am using following API to get all type of insights, but goals, heatmap and session recordings related information is not available in this API.
MATOMO_URL/index.php?module=API&format=JSON&idSite=47&period=day&date=2022-03-28,2022-04-26&method=Goals.get&idGoal=1&showAllGoalSpecificMetrics=1&filter_limit=-1&format_metrics=1&expanded=1&token_auth=<Token-Auth>

I also have visited following URL but there is no API available under the Goals section which can be used to get goals conversion or other analytical information related to goals.
https://developer.matomo.org/api-reference/reporting-api#Goals

Can anyone please guide me in this regard?
Best Regards!
Hafiz Naser Aslam

Hi,

Have you tried using the :export: export icon below the report with the data you are looking for? It should always point you to the correct API endpoint.

Hi @Lukas ,
Yes, you are right it shows following API URL.
MATOMO_URL/index.php?module=API&format=JSON&idSite=42&period=day&date=2022-03-29,2022-04-27&method=Goals.get&showAllGoalSpecificMetrics=1&filter_limit=-1&format_metrics=1&expanded=1&token_auth=ENTER_YOUR_TOKEN_AUTH_HERE

But is it possible to add segment in the above API ? I want to get the goals converted by each individual visitor by using visitorsID as segment. Is it possible ? Thanks in advance!

Hi, I also want to get my goal metrics via API, but I am using Matomo for Wordpress. Can you help me to get the metrics?

I tried https://www.mydomain.de/index.php?rest_route=/matomo/v1/api/processed_report&period=date&date=year&filter_limit=10&apiModule=Goals&apiActions=Goals.get

It is not working

@matthieu Can you help us?