Adds a script and API to get data