install api script