This debug statement can probably be removed, in favor of moving a debug statement with all of the details of the api request to right before the return.