Oura API Complete Export
Use this skill to set up OAuth auth for Oura and export all available Oura data into JSON.
Folder structure
SKILL.mdREADME.mdscripts/auth_oura_oauth.pyscripts/export_oura_data.pyscripts/run_full_export.shreferences/endpoints.md
Workflow
- Run OAuth auth once:
python3 scripts/auth_oura_oauth.py --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET> --redirect-uri http://localhost:8765/callback - Run export:
python3 scripts/export_oura_data.py --start 2020-01-01 --end $(date +%F) --out ./oura_export - For convenience:
./scripts/run_full_export.sh 2020-01-01 $(date +%F) ./oura_export
Behavior
- Refresh token automatically before/when needed.
- Follow paginated endpoints automatically.
- Continue export on per-endpoint failures and log errors.
- Keep raw payloads in endpoint-specific JSON files for downstream tools.