Examples and Scripts
Worked examples and reference scripts for interacting with MapSwipe.
Note
Ongoing updates to MapSwipe may render these examples out-of-date. They are intended as a starting point and assume read-only access where applicable.
- Fetch Project Data — read-only download of a project’s public data exports.
- Fetch Global Data — read-only download of the four MapSwipe-wide global exports.
- Create a Project — authenticated example that logs in as a manager and creates a draft project end-to-end.
- Generate COCO File from Google Drive — Google Apps Script that builds the COCO JSON an Assess Images project needs from a public Drive folder.
- Generate COCO File from Dropbox — Python (
uv) script that builds the COCO JSON an Assess Images project needs from a Dropbox folder.