zwift-data
Version:
Data about Zwift worlds, routes and segments
89 lines (71 loc) • 1.92 kB
Markdown
[](https://www.npmjs.com/package/zwift-data)
[](https://github.com/andipaetzold/zwift-data/actions/workflows/build-release.yml?query=branch%3Amain)
[](https://www.npmjs.com/package/zwift-data)
[](https://github.com/andipaetzold/zwift-data/blob/main/LICENSE)
[](https://github.com/semantic-release/semantic-release)
# Zwift Data
The `zwift-data` npm package provides data about Zwift:
- Achievements
- Bike Frames
- Bike Front Wheels
- Bike Rear Wheels
- Bike Shoes
- Challenges
- Glasses
- Headgear
- Jerseys
- Paint Job
- Routes
- Run Shirts
- Run Shoes
- Run Shorts
- Segments
- Socks
- Training Plans
- Notable Moment Types
- Unlockable Categories
- Worlds
## Installation
```
npm install zwift-data
```
or
```
yarn add zwift-data
```
## Usage
```javascript
import {
achievements,
bikeFrames,
bikeFrontWheels,
bikeRearWheels,
bikeShoes,
challenges,
glasses,
headgears,
jerseys,
notableMomentTypes
paintJobs
routes
runShirts,
runShoes,
runShorts,
segments,
socks,
trainingPlans,
unlockableCategories,
worlds,
} from "zwift-data";
```
The package also exports TypeScript types.
The data structure is documented [here](https://andipaetzold.github.io/zwift-data).
## Data source
Some data is automatically fetched and updated from Zwift's public API.
Data was also manually collected from
- [Strava](https://strava.com/)
- [What's on Zwift](https://whatsonzwift.com/)
- [ZwiftHub](https://zwifthub.com/)
- [Zwift Power](https://zwiftpower.com/)
## License
[MIT](LICENSE)