Use your script to get the data. First fetch:
{{url}}/device/devices/659/devicedatasources
to get list of devicedatasources (with IDs), from which you can grab the one you’re interested in. Let’s call this hdsId. Then call:
{{url}}/device/devices/659/devicedatasources/:hdsId/instances
to get the list of instances (with IDs), from which you can grab one or all of the instances you’re interested in. Let’s call this the instanceId. Then call (in a loop if you want):
{{url}}/device/devices/659/devicedatasources/:hdsId/instances/:instanceId/data
to get your data.