Api for script downloading