CLiREN-LMS
Data Cleaning and Preparation in R

Importing and Exporting Data Through the REDCap API

Key Idea

30-45 minutes Applied Step 1 of 4
Callout

Key Idea

1 / 4
Callout

Key Idea

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].