API%3ATrade
Old: chuanhsing 2024-08-17 10:00:54
New: chuanhsing 2024-11-06 09:04:37
| Old | New | Differences | |
|---|---|---|---|
| 1 | - | # | |
| 1 | + | # Official Trade Search | |
| 2 | 2 | ||
| 3 | - | ||
| 3 | + | For query options, you can use Chrome, Press F12 into dev tool, choose Network tab, and enable Fetch/XHR filter. | |
| 4 | 4 | ||
| 5 | - | ||
| 5 | + |  | |
| 6 | 6 | ||
| 7 | - | * Ores and bars are interchangeable. Bars count 5x to the Port Quota cap compared to their ore versions and contribute approximately 4x to Shipment Value. | |
| 8 | - | * Fulfilling quotas will also add an additional reward, typically a unique item. | |
| 9 | - | * Port Quotas can be completed over several shipments and do not expire. | |
| 10 | - | * Port Quotas refresh once completed, randomizing the requested resource type, quantity, and multiplier. | |
| 11 | - | * Kalguuran Ports (Riben Fell, Pondium, Kalguur) can additionally reward runes | |
| 12 | - | * Karui Ports (Ngakanu, Te Onui) can additionally reward tattoos | |
| 7 | + | **NOTE: Use POESESSID for better rate limiting.** | |
| 13 | 8 | ||
| 14 | - | Resource |Shipment Value |Reward (Riben Fell) |Reward (Ngakanu) |Reward (Pondium) |Reward (Te Onui) |Reward (Kalguur) | |
| 15 | - | - | - | - | - | - | - | - | |
| 16 | - | Crimson Iron Ore<br>Crimson Iron Bar | 4<br>16 | Random Armour | Str Armour (Armour) | Int Armour (Energy Shield) | Dex Armour (Evasion) | All Armour | |
| 17 | - | Orichalcum Ore<br>Orichalcum Bar | 5<br>19 | Random Weapons | Str Weapons | Int Weapons | Dex Weapons | Random Weapons | |
| 18 | - | Petrified Amber Ore<br>Petrified Amber Bar | 6<br>24 | Rings | Belts | Amulets | Jewellery with quality | Ring<br>Belt | |
| 19 | - | Bismuth Ore<br>Bismuth Bar | 9<br>37 | Quality/Vaal skill gems | Quality support gems | Flasks | Jewels (can be double corrupted) | Ward Armour | |
| 20 | - | Verisium Ore<br>Verisium Bar | 16<br>64 | Scarabs | Stacked Decks | Fossils<br>Rogue's Marker | Unique Items | Splinters (Breach, Timeless, Simulacrum, Ritual) | |
| 21 | - | Wheat | 12 | Regular currency | |
| 22 | - | Corn | 15 | Regular currency | |
| 23 | - | Pumpkin | 18 | Regular currency | |
| 24 | - | Orgourd | 21 | Regular currency | |
| 25 | - | Blue Zanthimum | 24 | ? currency | |
| 9 | + | ## Fetch league endpoint and get id, item_ids | |
| 26 | 10 | ||
| 27 | - | ### Thaumaturgic dust scaling | |
| 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 | + | ``` | |
| 28 | 61 | ||
| 29 | - | Shipment Value | Dust sent | Calculate | Final Shipment Value | |
| 30 | - | - | - | - | - | |
| 31 | - | 1000 | 500 | | 1000+500 = 1500 | |
| 32 | - | 1000 | 999 | | 1000+999 = 1999 | |
| 33 | - | 1000 | 1000 | sqrt(1000/1000) = 100% more | 1000 * (1 + 100%) = 2000 | |
| 34 | - | 1000 | 4000 | sqrt(4000/1000) = 200% more | 1000 * (1 + 200%) = 3000 | |
| 35 | - | 1000 | 9000 | sqrt(9000/1000) = 300% more | 1000 * (1 + 300%) = 4000 | |
| 62 | + | Response: | |
| 36 | 63 | ||
| 64 | + | ``` | |
| 65 | + | { | |
| 66 | + | "id":"OQMzdqQUE", | |
| 67 | + | "complexity":11, | |
| 68 | + | "result":[ | |
| 69 | + | "c66708d98d350298186753096dbe9bed7dedbcd6d02d740e32b161c0c5d0c49d", | |
| 70 | + | "b56bcae791c0ecad463fafed58722fcbf6fd6c501066fb80700289d8507acd3c", | |
| 71 | + | "62e432ab385a23c62f05484061be15d557b66bc4cff42e549e90031f0ceb0723", | |
| 72 | + | ... | |
| 73 | + | ], | |
| 74 | + | "total":258 | |
| 75 | + | } | |
| 76 | + | ``` | |
| 37 | 77 | ||
| 38 | - | ## | |
| 78 | + | ## Fetch items | |
| 39 | 79 | ||
| 40 | - | * 108 111 110 - Lon | |
| 41 | - | * 103 32 115 - g s | |
| 42 | - | * 101 97 115 - eas | |
| 43 | - | * 1 111 10 - o | |
| 44 | - | * 11 1 110 - n | |
| 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 | + | ``` | |
| 45 | 89 | ||
| 46 | - | [long season](https://www.reddit.com/r/pathofexile/comments/1efncv6/i_decrypted_a_hidden_message_in_the_gold_prices/) | |
| 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 |