draft R file for getting API information