📘 Get all Warframe items directly from Warframe's API. No more messy wikia scraping.
Fetches all items available on Warframe's mobile API endpoints while also adding images, drop rates, patch logs and related rivens.
The aim of this library is to create a complete collection of data for every item in Warframe based on the game's own data. This repo will be automatically updated on every new release, drop rate change or image change.
Because this gives you literally every item in Warframe, many of which can't even be found on the wikia. We also make sure to include every other data aspect that you could possibly need. To give you some idea:
And tons more item specific data. Check out /data/json to get an idea.
You can also rest assured that this repository will be maintained for as long as Warframe stays alive, as it is has been built to provide all item data for NexusHub.
npm install warframe-items
const Items = require('warframe-items') const items = new Items(options, ...items)
In this example,
itemsis an Array with all items. The
...itemsparam allows you to add your own items before our gathered ones.
| Option | Default | Description | |:------------- |:------------- |:------------- | | category |
['All']| Array of item categories to retrieve. Parallel to file names in /data/json. Useful if you don't wanna load lots and lots of MB of data into memory.
| Categories | Description| |:--- | :---- | | All | All categories in one file | | Arcanes | Operator, Zaw, and some Warframe Arcanes | | Archwing | Archwings.... nuff said | | Arch-Gun | Archwing Guns | | Arch-Melee | Archwing Melee weapons | | Enemy | NPCs | | Fish | Fish that you fish| | Gear | Things you equip in your gear wheel | Glyphs | Glyphs from partners, etc. | | Melee | Melee weapons | | Misc | Uncategorized items | | Mods | Modifications for weapons, warframes, archwings, etc. | | Node | Mission nodes | | Pets | Companions, just the beasts | | Primary | Primary slot weapons | | Quests | Quests that you adventure on | | Relics | Things you get prime parts from | | Resources | For building stuff | | Secondary | Secondary slot weapons | | Sentinels | Mechanical companions | | Sigils | Chest & back art | | Skins | Henna for your frame | | Warframes | Warframes...|
You can find all automatically compiled data in
/data/json. Images are stored in
/data/img. You can find every item's image name stored in
item.imageName.
Since there are so many images, and we can't publish them on npm due to the size, we've set up a CDN to get you images at
https://cdn.warframestat.us/img/${item.imageName}that provides a linkable resource for you.
We're always happy to see contributions to this project, so here's some basic setup information to get you started.
build-essentialson linux should be enough, on windows run
npm i -g windows-build-tools)
All relevant scripts are found in
/build/with
build.js
The entrypoint for the build script. Here we also save JSON, image and cache data.
scraper.js
Fetches all external data and returns it to the parser.
parser.js
Parses the external data to match our schema and returns it to the build script.
You can run the build script with
npm run build. Once built, you can verify the data with
npm test.