forked from 42bytes-team/wfm-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-doc.yml
2192 lines (2155 loc) · 64.1 KB
/
api-doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.2
info:
title: Warframe.market API
description: |
## Documentation is under very slow and heavy development
This document will gradually be supplemented and updated over some extended period of time.
## Unstable endpoints
Endpoint that is not stable and probably will be changed in the future will be marked with exclamation sign -> ⚠
version: 1.14.0
servers:
- url: https://api.warframe.market/{apiVersion}
description: Production server
variables:
apiVersion:
default: v1
enum:
- v1
description: Version of WFM API.
components:
securitySchemes:
Cookie Auth:
type: apiKey
in: cookie
name: JWT
JWT Header:
type: apiKey
name: Authorization
in: header
description: |
Value should be: `JWT <your jwt_code>`
parameters:
language:
name: Language
description: |
Asks the server to return content translated into the specified language, default: `en`.
in: header
schema:
type: string
enum:
[
"en",
"ru",
"ko",
"de",
"fr",
"pt",
"zh-hans",
"zh-hant",
"es",
"it",
"pl",
]
required: false
platform:
name: Platform
description: |
Asks the server to return content for specified platform, default: `pc`.
in: header
schema:
type: string
enum: ["xbox", "pc", "ps4", "switch"]
required: false
url_name:
name: url_name
in: path
description: url_name of an item
required: true
schema:
type: string
example: mirage_prime_systems
auction_id:
name: auction_id
in: path
description: ObjectId of auction
required: true
schema:
type: string
format: ObjectId
buyout_policy:
name: buyout_policy
in: query
description: "auction type, if not specified implied: all"
schema:
type: string
enum: [with, direct]
required: false
schemas:
element:
type: string
enum:
[
"impact",
"heat",
"cold",
"electricity",
"toxin",
"magnetic",
"radiation",
]
rarities:
type: string
description: How rare something can be considered
enum: ["very_common", "common", "uncommon", "rare", "legendary"]
currentUser:
type: object
properties:
id:
type: string
format: ObjectId
anonymous:
type: boolean
verification:
type: boolean
ingame_name:
type: string
check_code:
type: string
role:
type: string
enum:
- anonymous
- user
- moderator
- admin
patreon_profile:
type: object
properties:
patreon_founder:
type: boolean
subscription:
type: boolean
patreon_badge:
type: string
enum:
- bronze
- gold
- silver
- platinum
platform:
type: string
enum:
- ps4
- pc
- xbox
region:
type: string
banned:
type: boolean
ban_reason:
type: string
avatar:
type: string
description: Path to user avatar in static folder.
background:
type: string
description: Path to user background in static folder.
linked_accounts:
type: object
properties:
steam_profile:
type: boolean
patreon_profile:
type: boolean
xbox_profile:
type: boolean
has_email:
type: boolean
written_reviews:
type: integer
description: how much reviews user wrote today.
unread_messages:
type: integer
userShort:
type: object
properties:
id:
type: string
format: ObjectId
example: 54e0cdf8e77989024a1e34b2
ingame_name:
type: string
example: KycKyc
status:
type: string
example: online
enum:
- ingame
- online
- offline
region:
type: string
example: en
reputation:
type: integer
example: 12
avatar:
type: string
nullable: true
example: user/avatar/54e0cdf8e77989024a1e34b2.png?0148cdbc2f95ae09d1b7dc863bbff8a9
default: null
last_seen:
type: string
example: 2021-03-15T15:53:16.133+00:00
nullable: true
format: date-time
rivenItem:
type: object
properties:
id:
type: string
format: ObjectId
example: 5cf5724f9597e1019b1678c7
url_name:
type: string
example: falcor
group:
type: string
description: |
Group of the item, like shotgin, rifle, melee, etc.
Used for grouping within UI elements.
enum:
[
"primary",
"secondary",
"melee",
"zaw",
"sentinel",
"archgun",
"kitgun",
]
riven_type:
type: string
description: Type of the riven mod, to restrict certain attributes to specific types.
enum: ["shotgun", "rifle", "pistol", "melee", "zaw", "kitgun"]
icon:
type: string
description: path to the icon asset file
icon_format:
type: string
enum:
- land
- port
thumb:
type: string
item_name:
type: string
description: Name of the weapon, depends on the requested language (headers)
rivenAttribute:
type: object
properties:
id:
type: string
format: ObjectId
example: 5c5ca81a96e8d2003834fe63
url_name:
type: string
example: ammo_maximum
group:
type: string
description: |
Group of the attribute, like top, melee, etc.
Used for grouping within UI elements.
example: default
enum: ["default", "melee", "top"]
prefix:
type: string
example: Ampi
suffix:
type: string
example: Bin
positive_is_negative:
type: boolean
description: Negative value of this attribute indicate that attribute is positive, e.g. `Recoil`.
example: false
exclusive_to:
type: string
nullable: true
description: |
This attribute is only available on specific types of items, check item property: `riven_type`
If `null`, then this attribute can be selected on every item.
enum: ["kitgun", "pistol", "rifle", "shotgun", "melee", "zaw", null]
effect:
type: string
description: Name of the attribute, depends on the requested language (headers)
example: Ammo Maximum
units:
type: string
description: measurement units
example: seconds
nullable: true
enum:
- percent
- seconds
- null
negative_only:
type: boolean
description: This attribute occurs only as a negative.
example: false
search_only:
type: boolean
description: used only while searching for auctions
example: true
rivenAuction:
type: object
properties:
type:
type: string
description: type of the item, in this case it's `riven`
example: riven
attributes:
type: array
items:
type: object
properties:
positive:
type: boolean
value:
type: integer
url_name:
type: string
minItems: 1
maxItems: 4
name:
type: string
description: Riven mod name
example: conci-hexacron
mastery_level:
type: integer
description: Mastery level requirennment for that mod.
minimum: 8
maximum: 16
re_rolls:
type: integer
weapon_url_name:
type: string
description: weapon name in url format.
polarity:
type: string
enum:
- "madurai"
- "vazarin"
- "naramon"
- "zenurik"
mod_rank:
type: integer
minimum: 0
maximum: 10
lichWeapon:
type: object
properties:
id:
type: string
format: ObjectId
example: 5e98559a3d9f64005cd702eb
url_name:
type: string
example: kuva_bramma
icon:
type: string
description: |
it's a part of url, if you want to get an image you need to prepend assets root dirrectory: `http://warframe.market/static/assets/`
example: icons/en/kuva_bramma.eaf6bd5d4a8f1413764771719ca2cc27.png
icon_format:
type: string
enum:
- land
- port
thumb:
type: string
example: icons/en/thumbs/kuva_bramma.eaf6bd5d4a8f1413764771719ca2cc27.128x128.png
description: thumb of an icon
item_name:
type: string
description: Name of the weapon
lichEphemera:
type: object
properties:
id:
type: string
format: ObjectId
example: 5e9854b93d9f64004f9136bd
url_name:
type: string
example: vengeful_shockwave
icon:
type: string
description: |
it's a part of url, if you want to get an image you need to prepend assets root dirrectory: `http://warframe.market/static/assets/`
example: icons/en/vengeful_shockwave.6020e14eb5e9516d4bc6ccf5023c864c.png
icon_format:
type: string
enum:
- land
- port
example: port
thumb:
type: string
description: thumb of an icon
example: icons/en/thumbs/vengeful_shockwave.6020e14eb5e9516d4bc6ccf5023c864c.128x128.png
animation:
type: string
description: Path to the GIF animatgion of ephemera
example: animations/vengeful_shockwave.971437bf48dec307ed268285b8798228.gif
animation_format:
type: string
enum:
- land
- port
element:
$ref: "#/components/schemas/element"
item_name:
type: string
description: Name of the ephemera
example: Vengeful Shockwave Ephemera
lichQuirk:
type: object
properties:
id:
type: string
format: ObjectId
example: 5e9855a43d9f6400697e895c
url_name:
type: string
example: poor_sense_of_balance
item_name:
type: string
description: Name of the quirk
example: Poor Sense of Balance
description:
type: string
description: Description of the quirk
example: The lich will retreat after kneeling down and without stabbing
group:
type: string
description: which group this element belongs to, is used to display specific groups on the frontend.
example: default
lichAuction:
type: object
properties:
type:
type: string
description: type of the item, in this case it's `lich`
example: lich
weapon_url_name:
type: string
description: url_name of any Kuva weapon
example: "kuva_ogris"
element:
$ref: "#/components/schemas/element"
damage:
type: integer
minimum: 25
maximum: 60
ephemera:
type: boolean
description: Lich having Kuva ephemera (based on element)
example: true
default: false
quirk:
type: string
description: url_name of any Kuva quirk
example: "fear_of_kubrows"
default: undefined
name:
type: string
description: Will not be used for now (?)
kubrowAuction:
type: object
properties:
type:
type: string
description: type of the item, in this case it's `kubrow`
example: kubrow
name:
type: string
auctionEntry:
type: object
properties:
id:
type: string
format: ObjectId
minimal_reputation:
type: integer
default: 0
description: Minimal amount of reputation that is required to participate in this auction.
winner:
type: string
format: ObjectId
description: If winner is set, auction is in the paused state. While on pause, bids can't be added, but can be removed.
nullable: true
default: null
private:
type: boolean
visible:
type: boolean
note_raw:
type: string
description: Raw format string, use it inside textarea, for editing purposes.
note:
type: string
description: It's safe to inject this into html, this is refined, formatted string from MD processor.
owner:
type: string
format: ObjectId
starting_price:
type: integer
minimum: 1
buyout_price:
type: integer
nullable: true
default: null
description: if `buyout_price` is set to null, that means ∞
minimal_increment:
type: integer
default: 1
description: Minimum bid increase value
is_direct_sell:
type: boolean
description: Shortcut to `starting_price` == `buyout_price`, means that auction is not an auction, but an order.
top_bid:
type: integer
nullable: true
default: null
created:
type: string
format: date-time
updated:
type: string
format: date-time
description: Last time auction was updated, eighter by owner or by placing a bid.
platform:
type: string
enum:
- switch
- pc
- ps4
- xbox
closed:
type: boolean
description: Auction is closed, and was marked for removal or archiving, no one can add or remove bids now.
is_marked_for:
type: string
description: Auction will be removed or archivated after `marked_operation_at`
nullable: true
default: null
enum:
- null
- removing
- archiving
marked_operation_at:
type: string
format: date-time
nullable: true
default: null
item:
oneOf:
- $ref: "#/components/schemas/rivenAuction"
- $ref: "#/components/schemas/lichAuction"
- $ref: "#/components/schemas/kubrowAuction"
auctionEntryExpanded:
description: |
`owner` will contain `userShort` model.
***
allOf:
- $ref: "#/components/schemas/auctionEntry"
- type: object
properties:
owner:
$ref: "#/components/schemas/userShort"
bid:
type: object
properties:
id:
type: string
format: ObjectId
auction:
type: string
format: ObjectId
user:
type: string
format: ObjectId
value:
type: integer
created:
type: string
format: date-time
updated:
type: string
format: date-time
langInItem:
type: object
properties:
item_name:
type: string
example: "Axi A1 Relic"
description:
type: string
example: "An artifact containing Orokin secrets. It can only be opened through the power of the Void."
wiki_link:
type: string
nullable: true
example: "https://warframe.fandom.com/wiki/Void_Relic"
drop:
type: array
items:
type: object
properties:
name:
type: string
description: 'translated name of the location \\ item'
link:
type: string
nullable: true
description: "link to the internal or extarnal source with information about that location"
ItemCommon:
type: object
properties:
id:
type: string
format: ObjectId
example: 604f697f7bdb09603b885d1e
url_name:
type: string
description: "[a-z] snake case name of the item"
example: axi_a1_relic
icon:
type: string
example: icons/en/axi_a1_relic.a74c06f0cae21bdb8933685c867385f8.png
description: |
it's a part of url, if you want to get an image you need to prepend assets root dirrectory: `http://warframe.market/static/assets/`
thumb:
type: string
example: /icons/en/thumbs/axi_a1_relic.a74c06f0cae21bdb8933685c867385f8.128x128.png
description: "Thumb of an icon"
sub_icon:
type: string
example: sub_icons/systems_128x128.png
description: |
Usually, if item is part of set and not set itself, it will have `sub_icon`
like: **Mirage Blueprint** is part of **Mirage Set**, therefore the `icon` will be the **Mirage warframe** icon, and the `sub_icon` will be the **blueprint** icon
mod_max_rank:
type: integer
example: 10
description: "in the next api version will be renamed to `max_rank`"
subtypes:
type: array
items:
type: string
example: ["intact", "exceptional", "flawless", "radiant"]
description: "relics and fishes are having this field"
tags:
type: array
items:
type: string
example: ["relic", "axi"]
cyan_stars:
type: integer
description: "will be introduced in update 1.8.3 and will replace rank for sculptures"
amber_stars:
type: integer
description: "will be introduced in update 1.8.3 and will replace rank for sculptures"
ducats:
type: integer
example: 45
ItemInOrder:
type: object
description: "same as ItemFull, but with dried up lang related fields and without rarity, set_root, MR, trading tax"
allOf:
- $ref: "#/components/schemas/ItemCommon"
- type: object
properties:
en:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Axi A1 Relic
ru:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Реликвия Акси A1
ko:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: 액시 A1 성유물
fr:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Relique Axi A1
de:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: "Axi-relikt: A1"
sv:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Axi A1 Relic
zh_hant:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: 後紀 A1 遺物
zh_hans:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: 后纪 A1 遗物
pt:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Relíquia Axi A1
es:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Reliquia Axi A1
pl:
type: object
properties:
item_name:
type: string
description: "Name of the item"
example: Relikt Axi A1
ItemFull:
type: object
description: "same as ItemInOrder, but lang related fields contain more infos, + rarity, set_root, MR, trading tax."
allOf:
- $ref: "#/components/schemas/ItemCommon"
- type: object
properties:
set_root:
type: boolean
example: false
description: This item represents set itself
mastery_rank:
type: integer
example: 12
description: Mastery requirenment fro this item
rarity:
type: integer
description: Item rarity
example: rare
enum:
- common
- uncommon
- rare
- legendary
- peculiar
trading_tax:
type: integer
example: 8000
en:
type: object
$ref: "#/components/schemas/langInItem"
ru:
type: object
$ref: "#/components/schemas/langInItem"
ko:
type: object
$ref: "#/components/schemas/langInItem"
fr:
type: object
$ref: "#/components/schemas/langInItem"
de:
type: object
$ref: "#/components/schemas/langInItem"
sv:
type: object
$ref: "#/components/schemas/langInItem"
zh_hant:
type: object
$ref: "#/components/schemas/langInItem"
zh_hans:
type: object
$ref: "#/components/schemas/langInItem"
pt:
type: object
$ref: "#/components/schemas/langInItem"
es:
type: object
$ref: "#/components/schemas/langInItem"
pl:
type: object
$ref: "#/components/schemas/langInItem"
ItemShort:
type: object
properties:
id:
type: string
format: ObjectId
example: 5a2feeb1c2c9e90cbdaa23d2
url_name:
type: string
example: mirage_prime_systems
thumb:
type: string
example: icons/en/thumbs/Mirage_Prime_Set.e7f8f484dd6ae6c35f0767fff35a5109.128x128.png
description: "Small icon"
item_name:
type: string
example: Mirage Prime Systems
description: "depends on you `Language` header"
OrderCommon:
type: object
properties:
id:
type: string
format: ObjectId
example: 604f83027bdb097a7567b75d
platinum:
type: integer
example: 2
quantity:
type: integer
example: 12
order_type:
type: string
enum:
- sell
- buy
platform:
type: string
enum: ["xbox", "pc", "ps4", "switch"]
region:
type: string
description: will be deprecated eventually
creation_date:
type: string
format: date-time
example: 2021-03-15T15:53:38.000+00:00
last_update:
type: string
format: date-time
example: 2021-03-15T15:53:38.000+00:00
subtype:
type: string
description: "subtyppe oof an item, all valid subtypes defined inside Item model `subtypes` field"
example: exceptional
visible:
type: boolean
example: true
description: |
Is this order visible?
All public orders will be visible, and only orders in your profile could be invisible.
OrderRow:
type: object
allOf:
- $ref: "#/components/schemas/OrderCommon"
- type: object
properties:
user:
$ref: "#/components/schemas/userShort"
OrderFull:
type: object
allOf:
- $ref: "#/components/schemas/OrderCommon"
- type: object
properties:
user:
$ref: "#/components/schemas/userShort"
item:
$ref: "#/components/schemas/ItemInOrder"
Droptable:
type: object
properties:
missions:
type: array
items:
type: object
properties:
mission_id:
type: string
example: 5a2feeb1c2c9e90cbdaa23d2
node_id:
type: string
example: 5a2feeb1c2c9e90cbdaa23d2
rarity:
type: string
description: How rare item is
enum: ["very_common", "common", "uncommon", "rare", "legendary"]
rate:
type: number
item_subtype:
type: string
enum: ["intact", "exceptional", "flawless", "radiant", "small", "medium", "large", "basic", "adorned", "magnificent"]
rotation:
type: string
enum: ["a", "b", "c"]
stage:
type: string
description: openworld missions only
enum: ["1", "2", "3", "4", "final"]
relics:
type: array
items:
type: object
properties:
id:
type: string
format: ObjectId
example: 5a2feeb1c2c9e90cbdaa23d2
rarity:
type: string
description: How rare item is
enum: ["common", "uncommon", "rare"]
rate:
type: object
properties:
intact:
type: number
example: 11.0
exceptional:
type: number
example: 13.0
flawless:
type: number
example: 17.0
radiant:
type: number
example: 20.0
npc:
type: array
items:
type: object
description: item drop from enemy
properties:
id:
type: string
format: ObjectId
example: 5a2feeb1c2c9e90cbdaa23d2
rarity:
type: string
description: How rare item is
enum: ["very_common", "common", "uncommon", "rare", "legendary"]
rate:
type: number
example: 4.42
description: the droprate of the item being dropped from the enemy's drop list, the final droprate should be multipled with chance
NpcDropData:
type: object
description: What you can get from this npc
properties:
type:
type: string
enum: ['npc']
item:
type: string
description: id of an item
format: ObjectId
example: 5a2feeb1c2c9e90cbdaa23d2
npc:
type: string
description: id of an npc
format: ObjectId
example: 5a2feeb1c2c9e90cbdaa23d2
rate:
type: number
example: 4.5
description: Chance to get item on kill
rarity:
$ref: '#/components/schemas/rarities'
MissionDropData:
type: object
description: What you can get from this mission as reward
properties:
type:
type: string
enum: ['mission']
item:
type: string
description: id of an item