get api uri from dom instead of hard coded