warframe-status icon indicating copy to clipboard operation
warframe-status copied to clipboard

WFINFO_FILTERED_ITEMS and WFINFO_PRICES

Open cmaranes opened this issue 1 year ago • 5 comments

Hi!

I've noticed that WFINFO_FILTERED_ITEMS and WFINFO_PRICES are set as environment variables in the code, likely pointing to external API URLs. I'm facing challenges running the code locally due to these unset environment variables.

Would it be possible to provide the URLs or guidance on how to set these environment variables to point to the appropriate APIs? Alternatively, if there's any API documentation or original code related to these variables that I could run locally, that would be helpful as well.

Thank you for your assistance!

cmaranes avatar Apr 18 '24 15:04 cmaranes

what issues are you having running the project without them? they should be ignored in the hydration if you don't have them populated.

TobiTenno avatar Apr 18 '24 20:04 TobiTenno

Currently, I can run the project without issues. However, when attempting to query the /wfinfo/prices endpoint, I receive a { code: 503, error: 'WFInfo Data Services Unavailable' } response. It seems that the WFINFO_PRICES environment variable is not defined, which might be causing this error.

I would like to set up the WFINFO_PRICES environment variable correctly as I'm interested in obtaining the prices for Mods as well. Thanks in advance!

cmaranes avatar Apr 18 '24 21:04 cmaranes

this isn't an error, if you read where that return code is issued from, you'll see this is to protect against actual errors.

I have no plans to publish the values I use for those variables, and are intentionally not hard-coded or shared.

Those 2 endpoints have specific usages and provide nothing unique from the rest of the server, you can find generally the same data elsewhere, those 2 are exposed for, as named, WFInfo, and you can query them from the live server if you need to get an example of what their structure is

TobiTenno avatar Apr 18 '24 22:04 TobiTenno

Thank you for your prompt response. I'm also interested in retrieving market prices for Mods in the same manner as the equipment prices. While I attempted to use the live server URL as suggested, I noticed that it already returns the filtered items along with their respective prices, excluding the mods (source).

Would it be necessary for me to create a custom API to scrape the mods' prices, or is there a more straightforward method to obtain this information? I apologize for my limited understanding on this matter.

Thank you for your guidance!

cmaranes avatar Apr 19 '24 11:04 cmaranes

you'd have to write something for yourself, because that data is generated externally, we don't do any data processing on it (as you can see in our server code)

TobiTenno avatar Apr 19 '24 15:04 TobiTenno

Oh what a pity, thanks for the information!

cmaranes avatar Apr 24 '24 18:04 cmaranes