Update cookie preferences
PoE
DB
物品
物品
商人物品配方
宝石
技能宝石
辅助宝石
Transfigured Gems
词缀
词缀
圣油
花园工艺
工艺互动
使命
使命
升华职业
天赋树
地图
赞助
PoE2
DB
TW 正體中文
CN 简体中文
US English
KR 한국어
JP Japanese
RU Русский
PO Português
TH ภาษาไทย
FR Français
DE Deutsch
ES Spanish
# Developer API There are 2 api sets, POESESSID and OAuth 2.0. ## POESESSID One works with http cookie header, that used by official site. You can use Chrome browser in Dev Tool (Press F12), click the `Network` tab, click `Fetch/XHR` filter to see how the API used. But note that this api is not officially supported and no documentation. ### Find the POESESSID in Chrome or Edge **Strongly recommend extreme caution with the use of your POESESSID, as providing that information to anyone else may put your account access at risk.** * Login to pathofexile.com * Press F12 to open the Dev Tool * Click the Application tab * Expand the Cookies dropdown and select pathofexile.com * Double click the POESESSID Value and copy  ## Public stash API [Public stash API](https://www.pathofexile.com/developer/docs/reference#publicstashes) doesn't contain any historical data and always returns the current state of stash tabs. Using ajax from a browser got blocked by CORS, you need to setup a basic proxy to fetch it. Every request will return a `next_change_id` and put it on next `id=` parameter. You will fetch the Json by sequence, for example ``` http://www.pathofexile.com/api/public-stash-tabs http://www.pathofexile.com/api/public-stash-tabs?id=342209785-336957592-338826328 http://www.pathofexile.com/api/public-stash-tabs?id=342209792-336957596-338826330 http://www.pathofexile.com/api/public-stash-tabs?id=342209797-336957599-338826336 ``` Using deflate parameter in request header will save a lot of traffic. ### Rate Limit Be aware there is a [rate limit](https://www.pathofexile.com/forum/view-thread/2079853#p15244273). ``` curl -XGET -s -D - http://www.pathofexile.com/api/public-stash-tabs | grep -i 'x-rate-limit' ``` ### Next change id You can get latest change id at https://poe.ninja/stats ## Official Trade Search You can use Chrome, Press F12 into dev tool, choose Network tab, and enable Fetch/XHR filter. ### Fetch league endpoint and get id, item_ids Endpoint: `https://www.pathofexile.com/api/trade/search/Sentinel`, POST JSON to or GET ?q=JSON ``` { "query":{ "status":{ "option":"online" }, "stats":[ { "type":"and", "filters":[ { "id":"explicit.stat_3299347043", "value":{ "min":100 }, "disabled":false } ] } ], "filters":{ "type_filters":{ "filters":{ "category":{ "option":"accessory.belt" }, "rarity":{ "option":"rare" } } }, "misc_filters":{ "filters":{ "ilvl":{ "min":85 }, "corrupted":{ "option":"false" } } } } }, "sort":{ "price":"asc" } } ``` Got return ``` { "id":"OQMzdqQUE", "complexity":11, "result":[ "c66708d98d350298186753096dbe9bed7dedbcd6d02d740e32b161c0c5d0c49d", "b56bcae791c0ecad463fafed58722fcbf6fd6c501066fb80700289d8507acd3c", "62e432ab385a23c62f05484061be15d557b66bc4cff42e549e90031f0ceb0723", ... ], "total":258 } ``` ### Fetch items GET the items by endpoint `https://www.pathofexile.com/api/trade/fetch/` and the items are separated with `,`. ex: ``` https://www.pathofexile.com/api/trade/fetch/{item_id1},{item_id2}?query=OQMzdqQUE ``` ## Data Export The game data does not have any official API, and only possible data can be analyzed from the game files. Almost all data is stored in .dat64 files within Content.ggpk. But they only have data, no headers. You can start with the .dat64 format, the [PoE dat schema](https://github.com/poe-tool-dev/dat-schema) project is the latest format. Or try to parse the .dat format from [PoE Dat Viewer](https://snosme.github.io/poe-dat-viewer/) yourself. [RePoE](https://github.com/brather1ng/RePoE/) collects many common and processed .dat files and exports them to .json format. Site | Description - | - [PyPoE](https://github.com/Project-Path-of-Exile-Wiki/PyPoE) | Collection of Python Tools for Path of Exile, mostly used by wiki [RePoE](https://github.com/brather1ng/RePoE/) | Repository of Path of Exile resources for tool developers. [Poe Dat Viewer](https://snosme.github.io/poe-dat-viewer/) | Web-base Poe Dat Viewer [PoE dat schema](https://github.com/poe-tool-dev/dat-schema) | Source of truth schema for dat files. [Path Of Building Fork schema](https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/dev/src/Export/spec.lua) | Source of Path Of Building Fork schema [LibGGPK2](https://github.com/aianlinb/LibGGPK2) | Windows GUI tool to view Content.ggpk and export ## Development Tool Site | Description - | - [Tooldev Discord Channel](https://discord.gg/pathofexile) | #tooldev-general [PoE API](https://poedb.tw/us/poe-api) | PoEDB collections of official API [Official Website API](https://www.pathofexile.com/developer/docs) | OAuth 2.0 API endpoints of Path of Exile [Skilltree Typescript](https://github.com/EmmittJ/SkillTree_TypeScript) | Best reference for how Skilltree worked [PoeSharp](https://github.com/andreandersen/PoeSharp) | C# Library to deal with PoE stuff [PoE Go](https://github.com/ccbrown/poe-go) | an entry-level guide to writing tools for PoE in the Go programming language. [API:Passive_Skill_Tree](API%3APassive_Skill_Tree) [API:OAuth](API%3AOAuth) [API:Ladder](API%3ALadder)
Update cookie preferences