API%3ATrade
Old: chuanhsing#2097 2025-08-14 19:21:35
New: chuanhsing#2097 2025-09-07 17:12:48
Old | New | Differences | |
---|---|---|---|
1 | - | # | |
1 | + | # Official Trade Search | |
2 | 2 | ||
3 | - | Boss | Normal | Uber | |
4 | - | - | - | - | |
5 | - | [[The Searing Exarch]] | [[Dawnbreaker]]<br>[[Dawnstrider]]<br>[[Dissolution of the Flesh]]<br>[[Forbidden Flame]] | [[Forbidden Flame]]<br>[[Annihilation's Approach]]<br>[[The Annihilating Light]]<br>[[Crystallised Omniscience]]<br>[[The Celestial Brace]]<br>[[Curio of Absorption]] | |
6 | - | [[The Eater of Worlds]] | [[The Gluttonous Tide]]<br>[[Inextricable Fate]]<br>[[Melding of the Flesh]]<br>[[Forbidden Flesh]] | [[Forbidden Flesh]]<br>[[Nimis]]<br>[[Ashes of the Stars]]<br>[[Ravenous Passion]]<br>[[Curio of Consumption]] | |
7 | - | [[The Maven]] | [[Doppelgänger Guise]]<br>[[Legacy of Fury]]<br>[[Graven's Secret]]<br>[[Arn's Anguish]]<br>[[Olesya's Delight]]<br>[[Echoforge]] | [[Progenesis]]<br>[[Viridi's Veil]]<br>[[Impossible Escape]]<br>[[Grace of the Goddess]]<br>[[Curio of Potential]] | |
8 | - | Uber [[The Elder]] | [[Mark of the Shaper]]<br>[[Mark of the Elder]]<br>[[Indigon]]<br>[[Voidfletcher]]<br>[[Disintegrator]]<br>[[Watcher's Eye]](3 詞綴) | [[Watcher's Eye]](3 詞綴)<br>[[Impresence]](2 詛咒)<br>[[Soul Ascension]]<br>[[Sublime Vision]]<br>[[Voidforge]]<br>[[The Eternity Shroud]]<br>[[Call of the Void]]<br>[[The Devourer of Minds]]<br>[[Curio of Decay]] | |
9 | - | [[Sirus, Awakener of Worlds]] | [[Crown of the Inward Eye]]<br>[[Hands of the High Templar]]<br>[[Thread of Hope]]<br>[[The Burden of Truth]] | [[Thread of Hope]](Massive)<br>[[Oriath's End]]<br>[[The Saviour]]<br>[[The Tempest Rising]] | |
10 | - | [[The Shaper]] | [[Shaper's Touch]]<br>[[Voidwalker]]<br>[[Dying Sun]]<br>[[Solstice Vigil]] | [[Sublime Vision]]<br>[[Entropic Devastation]]<br>[[Echoes of Creation]]<br>[[Starforge]]<br>[[The Tides of Time]] | |
11 | - | [[維那利斯]] | [[Perepiteia]]<br>[[Offering to the Serpent]]<br>[[Garb of the Ephemeral]]<br>[[Bottled Faith]] | [[Rational Doctrine]]<br>[[Nebulis]]<br>[[Mask of the Tribunal]]<br>[[Circle of Ambition]]<br>[[The Apostate]] | |
12 | - | ||
3 | + | For query options, you can use Chrome, Press F12 into dev tool, choose Network tab, and enable Fetch/XHR filter. | |
4 | + | ||
5 | + |  | |
6 | + | ||
7 | + | **NOTE: Use POESESSID for better rate limiting.** | |
8 | + | ||
9 | + | ## Fetch league endpoint and get id, item_ids | |
10 | + | ||
11 | + | Endpoint: `https://www.pathofexile.com/api/trade/search/Settlers`, POST JSON to or GET ?q=JSON | |
12 | + | Request: | |
13 | + | ``` | |
14 | + | { | |
15 | + | "query":{ | |
16 | + | "status":{ | |
17 | + | "option":"online" | |
18 | + | }, | |
19 | + | "stats":[ | |
20 | + | { | |
21 | + | "type":"and", | |
22 | + | "filters":[ | |
23 | + | { | |
24 | + | "id":"explicit.stat_3299347043", | |
25 | + | "value":{ | |
26 | + | "min":100 | |
27 | + | }, | |
28 | + | "disabled":false | |
29 | + | } | |
30 | + | ] | |
31 | + | } | |
32 | + | ], | |
33 | + | "filters":{ | |
34 | + | "type_filters":{ | |
35 | + | "filters":{ | |
36 | + | "category":{ | |
37 | + | "option":"accessory.belt" | |
38 | + | }, | |
39 | + | "rarity":{ | |
40 | + | "option":"rare" | |
41 | + | } | |
42 | + | } | |
43 | + | }, | |
44 | + | "misc_filters":{ | |
45 | + | "filters":{ | |
46 | + | "ilvl":{ | |
47 | + | "min":85 | |
48 | + | }, | |
49 | + | "corrupted":{ | |
50 | + | "option":"false" | |
51 | + | } | |
52 | + | } | |
53 | + | } | |
54 | + | } | |
55 | + | }, | |
56 | + | "sort":{ | |
57 | + | "price":"asc" | |
58 | + | } | |
59 | + | } | |
60 | + | ``` | |
61 | + | ||
62 | + | Response: | |
63 | + | ||
64 | + | ``` | |
65 | + | { | |
66 | + | "id":"OQMzdqQUE", | |
67 | + | "complexity":11, | |
68 | + | "result":[ | |
69 | + | "c66708d98d350298186753096dbe9bed7dedbcd6d02d740e32b161c0c5d0c49d", | |
70 | + | "b56bcae791c0ecad463fafed58722fcbf6fd6c501066fb80700289d8507acd3c", | |
71 | + | "62e432ab385a23c62f05484061be15d557b66bc4cff42e549e90031f0ceb0723", | |
72 | + | ... | |
73 | + | ], | |
74 | + | "total":258 | |
75 | + | } | |
76 | + | ``` | |
77 | + | ||
78 | + | ## Fetch items | |
79 | + | ||
80 | + | GET the items by endpoint `https://www.pathofexile.com/api/trade/fetch/` and the items are separated with `,`. | |
81 | + | Request Format: | |
82 | + | ``` | |
83 | + | https://www.pathofexile.com/api/trade/fetch/{item_id1},{item_id2}?query={id} | |
84 | + | ``` | |
85 | + | Example Request: | |
86 | + | ``` | |
87 | + | https://www.pathofexile.com/api/trade/fetch/c66708d98d350298186753096dbe9bed7dedbcd6d02d740e32b161c0c5d0c49d?query=OQMzdqQUE | |
88 | + | ``` | |
89 | + | ||
90 | + | * [Item Format Schema](https://www.pathofexile.com/developer/docs/reference#type-Item) | |
91 | + | ||
92 | + | ## Reversing PoE trade site URLs to get JSON request data | |
93 | + | ||
94 | + | for https://www.pathofexile.com/trade/search/Settlers/NK6Ec5 , You can resolve it to JSON request with these https://www.pathofexile.com/api/trade/search/Settlers/NK6Ec5 |