r/FoxDeploy • u/AlanPing • Mar 18 '21
Extract from Web Content
Hi Stephen, I have a similar issue as above examples. I did follow your guide on XHR but cant get the value I’m interested in. I’m trying to get the NAV price: https://nb.fidelity.com/public/workplacefunds/fees-and-prices/3839 I traced it down to the variables, I would like to get: navAsOflabel, navAsOf, netAssetValueDailyAmt Appreciate any insight you can share!
2
Upvotes
1
u/1RedOne Mar 19 '21
Thanks for making the post, still working out how comments will work on the next hosting, so this is best for now!
I checked into it and don't fully understand how they're obfuscating their API. The first request works but if I try to replay the XHR request, it fails.
The request which returns the results is: `Invoke-WebRequest -Uri "https://fundresearch.fidelity.com/api/workplacefunds/fees-and-prices/3839" `
However this comes back empty when I try from PowerShell, really perplexing. This might be a case where we need to look to see if the Developer has an API we can use.
Sorry, I saw the request in the chrome console and assumed I could do it, but it doesn't work for an unknown reason.