These are system variables.
Access to variables - system or otherwise is the same.
prez.variable(“apDetailedResult”);
You probably won’t like the result of this due to the information as a table.
The JavaScript will return the HTML of the table.
You could simply display the results on screen by placing the variable in percentages.
%apDetailedResult2%
This will return the table
If you need to target a specific cell in that table - you could try looking here to see if it gets you further.