Epicollect5 User Guide
  • What is Epicollect5
  • About
    • Projects and Entries Syncing
    • Our Community
    • Privacy Policy
    • Cookie Policy
    • News & Papers
    • Epicollect5 Citation
  • Web Application
    • Intro
    • Create a Project
    • Project Info & Privacy
    • Delete Projects (Web)
    • View Projects
    • Search Projects
    • Viewing Entries
    • Print Entries
    • Add & Edit Entries
    • Manage Entries
      • Entries Limits
      • Entries Bulk Deletion
      • Entries Bulk Uploads
      • Entries Ownership & Metadata
    • Manage Users
    • Transfer Ownership
    • Manage Entries
    • Data Mapping
    • Downloading Data
    • Downloading Media
    • Metadata
    • Clone Project
    • Rename Projects
    • Import & Export Projects
    • Web Link to Add Entries
  • Formbuilder
    • Intro
    • Languages and Translations
    • Question Types
    • Add Questions
    • Edit Questions
    • Linking Forms
    • Rename Forms
    • Print Forms
    • Remove Forms
    • Search
    • Jumps (If-Else)
    • Branches
    • Groups
    • Title
    • Uniqueness
    • Double-entry Verification
    • Import & Export Forms
    • Import & Export Possible Answers
    • Edit Possible Answers
  • Mobile Application
    • Intro
    • Platforms and Media
    • Mobile App Authentication
    • Mobile App Permissions
    • Add Projects
    • Add Entries (Single Form)
    • Add Entries (Multiple Forms)
    • Edit Entries
    • Re-use answers
    • Save & Resume Entries
    • Upload Entries
      • Upload Errors
      • Incomplete Entries
      • Missing required aswers
      • Unsync entries
    • Entries Limits
    • Download Entries
    • Delete Entries
    • Delete Projects (App)
    • Location Questions
    • Add Bookmarks
    • Project Info
    • Share Media Files
    • Adjust Font Size
    • Filter Entries
    • Beta updates (Android)
    • Xiaomi Troubleshooting
  • Developers
    • Intro
    • API
    • Apps
  • Integrations
    • Google Maps
    • Google Earth
    • Microreact
    • Survey Toolkit
    • Google Sheets
  • Common Use Cases
    • Matrix Style Questions
    • Consolidate data
    • Jumps 101
    • Other, Please Specify
    • Non-Hierarchical Forms
    • Users Working Groups
    • Excel and UTF-8
    • Excel All Data in One Cell
    • Barcodes
    • Child Forms vs Branches
    • Dependent Dropdowns
    • Referencing Parent Form Responses
  • Extra
    • Useful Links
    • Demo Projects
    • FAQ
    • How-to Videos
    • Known Issues
Powered by GitBook
On this page
  1. Integrations

Microreact

PreviousGoogle EarthNextSurvey Toolkit

Last updated 7 months ago

is a tool for open data visualization and sharing for genomic epidemiology.

It is possible to integrate Epicollect5 with Microreact using as a bridge between the two platforms.

We are going to use the as an example. The project must be public.

Using the Epicollect5 API endpoints, we can get all the entries (1000 at a time) for that project using the following URL: ()

https://five.epicollect.net/api/export/entries/ec5-demo-project?format=csv&headers=false&per_page=1000

We are passing a few parameters:

format=csvas we need the entries in csv format.

headers=false as we do not want the column headers. We are going to use custom headers to fit .

per_page=1000 to get the maximum number of entries on a single request (1000)as export responses are paginated. Google Sheets could give an error if requesting too many entries though.

If your project has more than 1000 entries, multiple requests need to be made adding an incremental page parameter specifying the next page on each request (page=1, page=2, page=3 and so on).

A single Google Sheets spreadsheet can have up to 50 IMPORTDATA() calls () therefore the integration will work with projects up to 50.000 entries.

We created a public viewable spreadsheet .

The first thing to do is to leave the first row empty for the time being, and click on cell A2.

We are going to use the following formula in that cell:

=IMPORTDATA("https://five.epicollect.net/api/export/entries/ec5-demo-project?format=csv&headers=false&per_page=1000")

passing the URL described above. \

Now it is time to add the custom headers. Microreact requires a column id to uniquely identify each row. With data coming from Epicollect5, that will always be the most left column.

You can use a downloaded csv from Epicollect5 as a reference if you do not remember your headers. After adding them manually, we have:

Important: if you have Date or Time questions, you have to set the format for those columns, otherwise by default they get converted to numbers (Google trying to be smart here).

To do that, select the Date or Time columns, click on Format > Number and pick Date or Time.

Now the sheet is ready to be published. Go to File > Publish to the web...

It needs to be published as comma-separated values (csv) and we need to grab the generated link to use on Microreact

To refresh the data set automatically (so when new entries are added to Epicollect5, they appear on the sheet) we can set an auto refresh to one minute or one hour. Go to File > Spreadsheet settings

On the calculation tab, select "On change and every minute" (or hour)

We are ready to head off to Microreact with the url we just generated:

https://docs.google.com/spreadsheets/d/1akzXZRR-aQYwv12d0TMKtWGeWPrOajFGp3QzLQttZwE/pub?output=csv

Please notice the "output=csv". If your url does not have that, check your publish settings.

Paste the project url where it says CSV file and click on "Continue (without tree)"

Enter some basic project details and click on "Create Project"

The project is generated!

The URL to get the entries for a public project is always the same, just the project slug will be different. For another project, we would just need to replace theec5-demo-projectslug with the new one. You can find each project slug in the of your project details page, or by just looking at the URL in your browser on your project home page.

We also need to specify latitude and longitude columns if we want to view the data on a map.

On the , click Upload:

The project is currently hosted at

API section
More info on Microreact headers
Microreact home page
https://microreact.org/project/rJTVCyTE-
Microreact
Google Spreadsheet
EC5 Demo Project
Open in browser
Microreact requirements
more info
here
Learn more about how to create a Google Sheet to use with Microreact.