new data api search script - not working