adding api request script