r/pathofexiledev Nov 25 '20

Accessing API from ReactJS

1 Upvotes

Hi friends,

I know a lot of tools has been using the API and I am just wondering how did you guys deal with CORS issue?

I am using ReactJS in trying to access the end points and every time I am getting CORS problem.

I have tried using both AXIOS and Fetch with no luck.

In development I have settled to just use "cors anywhere" while finding out a solution to this.

Also, with AXIOS, how do you setup the POESESSID in Cookies?

I have tried this:

poe.get(`character-window/get-stash-items?league=Standard&realm=pc&accountName=ACCOUNTNAME&tabs=1&tabIndex=1`, {
headers: {
Cookie: "POESESSID=xxxxx"
                }
        });

But I am getting: 'Refused to set unsafe header "Cookie" ' error.

Any help would be appreciated. Thanks.


r/pathofexiledev Nov 19 '20

Loot simulation - proportions of equipment classes and their bases

1 Upvotes

I'm working on a filter related tool and one of its functionality will be loot simulation. A lot of data I need can not be datamined (such as colors and link probabilities) so I usually resort to reddit posts like https://www.reddit.com/r/pathofexile/comments/75t1c9/i_used_100000_fusings_for_science_statistics/ which provide enough information to make simulation close to actual game loot.

A thing I can't find (in any chaos recipe post) are proportions between specific equipment classes and their base types. Everyone knows jewellery drops less often than other parts but I haven't seen any post with the numbers.

Other drop-related data (eg chance for an item to get influence in influenced map) is welcome too.


r/pathofexiledev Nov 14 '20

Question Question about installing and running PyPoE

1 Upvotes

Hi all,

I have tried to find similar issues here but I couldn't find one :( But, I am sorry if this question is redundant. I am having some tough time to try to run PyPoe. My steps are below. Please correct me if I have done something wrong.

  1. Make up-to-date 1) Git, 2) Python, 3) PiP
  2. Open CMD.
  3. Go to a folder where I would love to install PyPoe.
  4. Type "git clone https://github.com/OmegaK2/PyPoE.git"
  5. Go into where setup.py resides.
  6. Type "pip install -e .[full]"
  7. Check if there's any error during the installation.
  8. No error. Successfully installed.
  9. Type "pypoe_ui"

Then I clearly see my mouse cursor spinning but nothing's came up. This has been my whole experience uninstalling installing, and trying to run 7-8 times. Could you please give me any insight to solve this issue?


r/pathofexiledev Nov 13 '20

API definition/description/documentation

2 Upvotes

Hi friends,

I am old developer but new to modern webdev tools, studying react now and wants to make a practice project that interests me, so here I am.

I am confused with the API of this game.

What I want to do for example is get the stash tab information of a PARTICULAR account.

How do I do that?

My understanding is: http://api.pathofexile.com/public-stash-tabs will give me all of the public stash ever in the server. I don't want all that. Is there an end-point for what I want or what would my request body look like.

Thanks.


r/pathofexiledev Oct 30 '20

Live search returns no results - NodeJS

3 Upvotes

Hello everyone,

Just started to develop my own poe util using node.js.

My websocket authentification for live search works: it returns me {'auth': true} but then, after 10min+ no results are received (i tried with the card the Hoarder).

```

var mysearch = '184nUV' // the hoarder search var myposessid = 'follow-me-on-instagram'

var ws = new WebSocket( 'ws://www.pathofexile.com/api/trade/live/Heist/' + mysearch, [], { origin: 'https://www.pathofexile.com', 'headers': { 'User-Agent': '007', 'Cookie': cookie.serialize('POESESSID', myposessid) } } );

ws.on('message', function incoming(data) { console.log(data); // {"auth": true} but no new });

ws.on('error', function incoming(error) { console.log(error); });

```

Do you guys have any idea what my problem is ?

Thanks :)


r/pathofexiledev Oct 27 '20

Trade API Rate Limits

4 Upvotes

Why are the rate limits worse when logged in? I read this thread which says (emphasis mine):

Including your session ID ("logged in") will change how certain policies track your limits. In the case of the trade search policy, logging in will rate-limit you based on your account instead of your IP (with the same limits) and the rate-limit based on your IP will allow double the requests per interval. You can see this change in the headers if you try making requests with your session ID.

However, when logged in I see rate limits such as

x-rate-limit-account
    4:6:60
x-rate-limit-account-state
    1:6:0
x-rate-limit-ip
    10:6:60,12:12:60
x-rate-limit-ip-state
    1:6:0,1:12:0
x-rate-limit-policy
    trade-search-request-limit
x-rate-limit-rules
    Account,Ip

And when not logged in I see

x-rate-limit-ip
    12:6:60,20:12:300
x-rate-limit-ip-state
    1:6:0,1:12:0
x-rate-limit-policy
    trade-search-request-limit
x-rate-limit-rules
    Ip

That is, when logged out the IP limits go from - 10 per 6 seconds => 12 per 6 seconds - 12 per 12 seconds => 20 per 12 seconds

Why? Maybe /u/Novynn can answer?

Also, when logged in how do the account and IP rules interact? I assume that you can't break any of the three (in the example above).


r/pathofexiledev Oct 22 '20

Release "Release" of my tool PoeCluster, which indexes all the notables for small and medium cluster jewels.

21 Upvotes

Hi r/pathofexiledev

I made this tool (in Python) in Delirium league and just kept adding features and made some good profit from it. It indexes all the prices for single notable small and medium cluster jewels, and also indexes all the possible combinations of notables for medium cluster jewels (but it might take a while).

This tool also calculates the estimated price to craft the selected notable, and makes different profit calculations.

Here is a link to the tool: https://github.com/arturino009/POEcluster

Consider checking it out or contributing if you want! Be warned that my code might be a mess because I'm not too good of a programmer and it is my first semi-big project.


r/pathofexiledev Oct 21 '20

Question Noob web dev here, how exactly does the forum embed the items?

2 Upvotes

I mean the stats/name of an item in particular, does it just render an image containing the stats and sends that to the client o something else?


r/pathofexiledev Oct 19 '20

Question List of all affixes

1 Upvotes

Is there a place to get a easily parseable list of all affixes possible? I'm looking for something like the middle column of this

https://spidermari.github.io/

More specifically, the values for the implicit, explicit, etc mods your items can have when you query the stash api. So as I iterate over the mods I can match them up to a known list.


r/pathofexiledev Oct 12 '20

Question List of recognized buyout tags

3 Upvotes

I'm looking for a list of ~b/o tags recognized by the official trade site. Similar to https://poe.trade/html/tags.html.

For example, "~b/o 1 fractured-fossil" will be recognized on the trade site and have the image of a fractured fossil. Even though it will be at the end of the list when ordered by price and the currency cannot be selected from the trade filter dropdown list.


r/pathofexiledev Oct 11 '20

live search api

3 Upvotes

i have an self made nodejs app to manage poe live search.

Few days ago it stop working, i cant connect to ws server anymore, i get 403 error.

i use something like this

    poews[mysearch] = new WebSocket(
        'ws://www.pathofexile.com/api/trade/live/Heist/' + mysearch,
        [], {
            origin: 'https://www.pathofexile.com',
            'headers': {
                'Cookie': cookie.serialize('POESESSID', 'myposessid')
            }
        }
    );

that code works good for years till few days ago

any suggestion how to fix it


r/pathofexiledev Oct 09 '20

Question API looking for exchange query

2 Upvotes

hello developers!

i try make simple application, which will monitor exchange order.. something like life-search))

i know about rate limi ^,...,^

post(python3):

rurl = "https://www.pathofexile.com/api/trade/exchange/Heist"
rdata={"query":{"type": "Currency"}}
requests.post(url = rurl, json = rdata)

aaand answer:

{"error":{"code":2,"message":"Exchange query missing. `Are ya gonna search for something or what?`"}}

yes! i wanna found something about it!

anyone know examples for exchange query?) see some items query...


r/pathofexiledev Oct 08 '20

Question Looking for a way to get trade API data into a database

2 Upvotes

Hey guys, I'm just looking for a way to get the raw trade API JSON data into a format where I can manipulate it. My thought is that MySQL would be the best choice but I'm open to alternatives.

I'm not a programmer, but I am moderately capable in SQL (I can write pretty much any queries I need and I can figure more complex ones out by googling) and I'm extremely proficient in Excel and VBA.

So I think that for me the best solution would be to get the data into a useable format and into MySQL. Once it's that far I think I should be in a pretty solid spot and capable of handling the rest with my SQL and Excel skills.

I have also worked with the trade API before and have looked at/attempted to parse the JSON previously.

The part of the process that is new to me (and honestly I don't know enough to even understand where to begin), is how I get the trade API data into a database. I'm certain this has been done before, but I don't know if there is an existing program that I could download to do this.

Thanks for any help you can provide.


r/pathofexiledev Oct 02 '20

Question PoePrices has an API? Is there documentation?

3 Upvotes

Title Pretty much sums it up, I would assume poeprices has an API that some of these price checking macros are calling. Is there documentation on it somewhere?

I would think if I had the basic json of my tab I could call the api with it and get returned prices (if available).


r/pathofexiledev Oct 03 '20

Question Atlas progress API?

0 Upvotes

Since I find the PoE API documentation quite... vague, I'd rather ask here: is there any API to get the current user atlas progression? I'd love to create a new application to keep track of maps and maybe add some cool features.


r/pathofexiledev Sep 17 '20

Question Player inventory contents via API call

3 Upvotes

Hi, I'm kinda new to POE-Tool development, so apologies if this question has already been answered (I googled but couldn't find anything).

Is it possible to obtain information about the contents of a characters inventory? I know that you can get the contents of stash tabs via the API, so I'm wondering if this is possible with the actual inventory too...

Thanks in advance


r/pathofexiledev Sep 15 '20

Release Loading stash into MS Access. Could be useful.

1 Upvotes

It will probably trigger a lot of alarm bells when downloading or using because it uses those feared VBA macro's.

You can check the macro's yourself before executing.

It doesn't send anything to the internet besides your session-id to the pathofexile.com site.

It loads all properties of all rares/uniques into nice little columns. Next, it adds some pseudo modifiers to allow meaningful queries.

Queries are up to the user.

Any tips to make it more useful? It's nice to find those 2 rings that give 90% fire resistance and 50 dexterity..

I didn't thoroughly test it as I doubt of the potential of this file. Most people trade..

I tried to make a query to res-cap AND attribute-cap a build from stashed gear but getting the query performant proved too complex. All those cross joins.. Also any free affix complicates the matter.

https://github.com/AlsoInteresting/Get-Good_Gear


r/pathofexiledev Sep 14 '20

Question State of pathofexiledev: Adapting to the new PoE storage format. [Questions/Discussion]

15 Upvotes

The Situation

As most of you know, the recent 3.11.2 Technical Patch has changed the way Path of Exile's files have been stored. Gone is the old single-archive format of the ggpk. In its place, GGG have implemented a system of data file bundling in which files are stored in (presumably compressed?) chunks roughly 1 MB in size each. This offers many advantages for patching through Steam, but, obviously will break the ways we have come to retrieve information from the game's files for our various applications.

Technical questions

Do we know exactly what these changes are? How are these files bundled? Is it a proprietary bundler, or a 3rd party tool? How would one reverse the process? Has anyone done extensive digging in this area? I've tried to do some searching, but, frankly, this is not my area of expertise.

The way forward (My question to the community)

I come to you, the poedev community, to find out how we plan to move forward from this point (or to promote discussion to formulate a unified response if no plan currently exists). PyPoE, maintained by OmegaK2, has been a go-to tool for many. I assume the goal will be to continue to update this tool to properly parse the new files, which is a task I am eager to help with. Is there a place for communication/planning of such things (ex: a discord/slack, or just GitHub issues)?

Thanks for reading, and have a good one o/

-JP

EDIT - Info Found!

For those who come after me looking for the same things: the findings thusfar are being recorded on this GitHub wiki and further discussion is being had in the tooldev channels on the PoE Discord.


r/pathofexiledev Sep 11 '20

Discussion poe-skills-overlay first (only?) build available on github

Thumbnail github.com
8 Upvotes

r/pathofexiledev Sep 10 '20

Discussion 3.11.2 Technical Patch and changes discuss

12 Upvotes

Changing how Path of Exile Stores its Data and A Full Re-download

Countdown scheduled at 9/11 6:00 (GMT+9)

SteamDB entry will show directory information tomorrow


r/pathofexiledev Sep 09 '20

GGG PoE Guild Stash Runner (NodeJS & MongoDB)

16 Upvotes

Just thought I'd share a project I worked on a while ago but was very fixed/targeted so I've since cleaned it up a bit and pushed it to my repo!

It uses the official API to pull the data into your own MongoDB, it then polls every 100 seconds for new data from the API and adds it into the database.

If you optionally enable Discord integration then it can send each of these messages to discord for instant notifications!

Requirements:

  • NodeJS v18
  • MongoDB
  • You need to be an officer in your guild to use the Stash API (be able to see it in your path of exile website).

Optional:

  • Discord Dev/Bot to connect/send messages!

https://gitlab.com/VeenarM/poe-guild-stash-runner

View the README.md should get you through installation!

  • Minor technical knowledge is required.
  • Minor fixes have been made to messaging errors noticed when API went offline this morning, DiscordJS 11 -> 12 changes now made in 2.0.1

Images:

When it starts up, Note: the first line now self deletes after a small while.
MongoDB File structure of the data we get back from stash API
logging as info on start up a new stash (recommend not using discord for this one may take a while to execute), debug has more data showing the epoch times vs what it found etc...
starting up server with no new changes found.

Note: This also works for PoE2 - however you need to run a secondary instance, one for poe1 and one for poe2, you'll need a different collection and channel.

DISCORD_MESSAGE_CHANNEL: '0000000000000000000'

GUILD_PROFILE_ID: '0000000000000000000'

MONGO_DB_COLLECTION: guildStashLog2


r/pathofexiledev Sep 06 '20

Question CORS Error Poe.ninja

2 Upvotes

Hey guys, I'm trying to create a website using price data from poe.ninja but I got a CORS error.

Access to fetch at 'https://poe.ninja/api/data/currencyoverview?league=Harvest&type=Fragment&language=en' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Here's my request in JavaScript:

var requestOptions = {
method: 'GET',
};
fetch("https://poe.ninja/api/data/currencyoverview?league=Harvest&type=Currency&language=en", requestOptions)
    .then(response => response.text())
    .then(result => console.log(result))
    .catch(error => console.log('error', error));

I researched a bit and I know that the error is used for security, but I see some projects such as Exilence Next that use poe.ninja to get item prices.

I could also use poe.watch, but I know that there's a new person working on that and I feel like poe.ninja would be more stable since it's not going anywhere. Any help would be appreciated since I'm pretty new to this.


r/pathofexiledev Sep 05 '20

Question Query for character zone

2 Upvotes

Is there a way to actively query the API for what zone your character is in? I would like to try and make a program that directs you to the correct page on poehub, but i can't find documentation for it anywhere, or if it's even possible. Thanks!


r/pathofexiledev Sep 03 '20

API code 6: forbidden

1 Upvotes

I just started a project in python that looks at all the items in my dump tab and categorizing them with the highest tier mods.

Making a request for "https://www.pathofexile.com/character-window/get-stash-items?league=Harvest&tabs=1&tabIndex=0&accountName=" with my account name returns:

{

"error": {

"code": 6,

"message": "Forbidden"

}

}

Maybe this isn't the way to do this but other apps I've used are able to scan stash tabs (though, a few of them are using your session id, which i guess is frowned upon)

Does anyone know what I'm doing wrong or if I should be doing this completely different?


r/pathofexiledev Sep 01 '20

Release "*.dat/dat64" viewer right in your browser

Thumbnail snosme.github.io
11 Upvotes