How should I go about limiting results from range based on index? So for example, just the result with index of 2. My attempts have lead to undefined variable: $index.
{{ range $index, $element := where $myAPI $index eq $var }}
$myAPI uses getJSON. $var represents the desired index to be used (e.g 2) - this value will derive from front-matter.
I saved your JSON file (with a small syntax fix) to a new hugo site at data/myApi.json then used this template code to get the 2nd index. You can adapt it to your needs: