If you're new to sheets/prun or just unfamiliar with apps script, a lot of you are probably just using something like =IMPORTDATA("https://rest.fnar.net/csv/prices")
As you may have noticed, sometimes this can error out and cause your sheet to be broken. I'd like to tell you there's another option.
You can use google apps script with a timer to query the same exact data, but only update the sheet if it was successful.
To get to apps script, open a spreadsheet and then go to Extensions then Apps Script. if you've never used it before on this sheet, you'll be greeted with an empty function. You can simply replace the entire file with the prunscript.js file.
In the script, I have commented out the burn and inventory endpoints. If you want to use these, you'll need to uncomment them and:
- Create an appropriate sheet and name it
- Update the name on lines 27 and 33
- Update your API key and username on lines 24 and 30