CLiREN-LMS
Data Cleaning and Preparation in R

Importing and Exporting Data Through the REDCap API

Overview

30-45 minutes Applied Step 1 of 8
Overview

Overview

1 / 8
Manual exports are useful for learning, but many routine workflows benefit from automated export. The REDCap application programming interface, or API, allows approved users and scripts to request data directly from a REDCap project. In R, an API workflow can reduce repetitive manual downloading, ensure that the same export options are used each time, and support scheduled data quality reporting. However, API use introduces security and governance responsibilities. API tokens grant access to project data and must be protected carefully [@harris2009redcap; @harris2019redcap; @kenya2019dataprotection].