Add APIError script and input files