Custom question, native query with json in Analytics

I need to split the Metric Duration session or convert to date, to help me?
{
“ids”: “ga:---------”,
“start-date”: “30daysAgo”,
“end-date”: “today”,
"metrics": “ga:sessionDuration”,
“dimensions”: “ga:yearMonth”,
“sort”: “ga:yearMonth”,
“include-empty-rows”: false,
“max-results”: 10000
},
example:

ga:sessionDuration / 60

how can i use?

Hi @fmoreno
You should look into Calculated Metrics. You can create your own in GA and then make a query to it’s custom name. But it looks like you can also make them dynamically:

...
"metrics":[
{
  "expression":"ga:sessionDuration/60",
  "formattingType":"FLOAT",
  "alias":"My Split Session Duration Metric"
}],
...

References:
https://developers.google.com/analytics/devguides/reporting/core/v4/samples#metric_expressions
https://support.google.com/analytics/answer/6121409?hl=en