API%3ATrade

Old: ga2006467270 2024-08-21 09:45:15

New: chuanhsing 2024-11-06 09:04:37

OldNewDifferences
1-附加等同 2% 最大生命的武器傷害 => 附加等同 2% 最大生命的武器"物理"傷害
1+# Official Trade Search
22
3-copy =>附加等同 2% 最大生命的武器傷害
3+For query options, you can use Chrome, Press F12 into dev tool, choose Network tab, and enable Fetch/XHR filter.
4+
5+![](https://i.imgur.com/W9NNKW4.png)
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+## Reversing PoE trade site URLs to get JSON request data
91+
92+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