An API for Nike Run Club
const Nike = require('node-nikerunclub');
const nike = new Nike({
ux_id: '',
client_id: ''
});
nike.signIn(email, password);
/* Since it relies on Puppeteer, you need a GUI environment for now and it might not be a reliable long-term solution */
nike.getAccessTokenFromRefreshToken(refreshToken);
nike.getProfile();
nike.getRecords();
nike.getAchievements((sportType = 'RUNNING'));
nike.getShoesInfos((includeDeleted = true));
nike.getActivities(time = new Date().valueOf(), limit = 25, includeDeleted = true)
See example.json for result
nike.getActivity(activityId, metrics = 'ALL')
nike.getAggregatedData();
nike.getAggregatedDataByYear((year = '2018'));
nike.convertToGPX(activityId)