Downloading data directly through an API

OK. FYI please be informed that we do have a features request for this that should solve your issue: