Added API script that gets data
added miles wip