├── index.html
├── LICENSE
└── README.md
/index.html:
--------------------------------------------------------------------------------
1 |
Loading...
2 |
3 |
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 qwk
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CURRENTLY OUT OF DATE, AS I HAVENT ADDED ANY SKINS FROM THE ARMORY UPDATE ONWARDS
2 | # WILL UPDATE SOON (eventually)
3 |
4 | # JSON LINKS: [V2](https://raw.githubusercontent.com/qwkdev/csapi/main/data2.json), [V1](https://raw.githubusercontent.com/qwkdev/csapi/main/data.json)
5 |
6 | # V2 or V1?
7 |
8 | **If you have used other apis for cs skins, V2 is what you will be used to.**
9 |
10 | ### V2 HAS AN ELEMENT FOR EACH SKIN'S POSSIBLE EXTERIOR AND TYPE
11 |
12 | V2 is useful for projects like games, that need a separate item for each exterior and type (such as "AWP | Dragon Lore (Factory New)", "StatTrak™ AWP | Dragon Lore (Factory New)", "AWP | Dragon Lore (Minimal Wear)", etc...)
13 |
14 |
15 |
16 | ### V1 JUST HAS AN ELEMENT FOR EACH SKIN
17 |
18 | V1 is useful for projects that just need data for a skin (eg: float caps, gen code, etc...) although you can still get all the data for each element in V1, in V2. (You aren't missing out on anything by using V2)
19 |
20 |
21 |
22 | # CSAPI
23 |
24 | # V2
25 |
26 | ### Layout
27 |
28 | The JSON is layed out like this: (example for an **Souvenir AWP | Dragon Lore (Factory New)**)
29 |
30 |
31 |
32 | **full name of item** ("Souvenir AWP | Dragon Lore (Factory New)"): {
33 |
34 | "type": **type of item** ("Souvenir"),
35 |
36 | "exterior": **exterior of item** ("Factory New"), [^1]
37 |
38 | "image": **link to image of item** ("https://steam..."), [^2]
39 |
40 | "inspect": {
41 |
42 | "gen": **gen code of item** ("!gen 9 344"),
43 |
44 | "link": **in-game inspect link** ("steam://rungame/...") [^3]
45 |
46 | },
47 |
48 | "phase": **phase** ("Emerald"), **!!! ONLY EXISTS FOR DOPPLERS !!!**
49 |
50 | "full-name": **name of item** ("Souvenir AWP | Dragon Lore (Factory New)"),
51 |
52 | "name": **name of skin** ("AWP | Dragon Lore"),
53 |
54 | "weapon": **weapon name** ("AWP"),
55 |
56 | "weapon-catalog": **in-game ID of weapon** (9),
57 |
58 | "csgostash-id": **the id on csgostash.com/skin/[ID]** (422),
59 |
60 | "finish": **the skin** ("Dragon Lore"),
61 |
62 | "is-doppler": **if the skin is a doppler/gamma doppler** (false),
63 |
64 | "finish-catalog": **in-game ID of finish** (344),
65 |
66 | "finish-style": **style of finish** ("Custom Paint Job"), [^4]
67 |
68 | "rarity": **rarity of skin** ("Covert"),
69 |
70 | "color": **color of rarity** ("#eb4b4b"),
71 |
72 | "float-caps": **list of float caps [min, max]** ([0, 0.7]), [^4]
73 |
74 | "possible": **list of each possible item** (["Factory New", "Minimal Wear", ..., "Souvenir Factory New", ...]), [^1]
75 |
76 | "types": **list of each possible type of item** (["Normal", "Souvenir"]),
77 |
78 | "date-added": {
79 |
80 | "text": **date added text** ("1 July 2014"),
81 |
82 | "date": **date added** ("1/7/2014"),
83 |
84 | "unix": **date added in unix** (1404172800)
85 |
86 | }
87 |
88 | }
89 |
90 | **FULL EXAMPLE**
91 |
92 | ```json
93 | "Souvenir AWP | Dragon Lore (Factory New)": {
94 | "type": "Souvenir",
95 | "exterior": "Factory New",
96 | "image": "https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot621FAR17P7NdTRH-t26q4SZlvD7PYTQgXtu5Mx2gv2PrdSijAWwqkVtN272JIGdJw46YVrYqVO3xLy-gJC9u5vByCBh6ygi7WGdwUKTYdRD8A/512fx384f",
97 | "inspect": {
98 | "gen": "!gen 9 344",
99 | "link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198299749713A7013114583D3180113772518061157"
100 | },
101 | "full-name": "Souvenir AWP | Dragon Lore (Factory New)",
102 | "name": "AWP | Dragon Lore",
103 | "weapon": "AWP",
104 | "weapon-catalog": 9,
105 | "csgostash-id": 422,
106 | "finish": "Dragon Lore",
107 | "is-doppler": false,
108 | "finish-catalog": 344,
109 | "finish-style": "Custom Paint Job",
110 | "rarity": "Covert",
111 | "color": "#eb4b4b",
112 | "float-caps": [
113 | 0,
114 | 0.7
115 | ],
116 | "possible": [
117 | "Factory New",
118 | "Minimal Wear",
119 | "Field-Tested",
120 | "Well-Worn",
121 | "Battle-Scarred",
122 | "Souvenir Factory New",
123 | "Souvenir Minimal Wear",
124 | "Souvenir Field-Tested",
125 | "Souvenir Well-Worn",
126 | "Souvenir Battle-Scarred"
127 | ],
128 | "types": [
129 | "Normal",
130 | "Souvenir"
131 | ],
132 | "date-added": {
133 | "text": "1 July 2014",
134 | "date": "1/7/2014",
135 | "unix": 1404172800
136 | }
137 | }
138 | ```
139 |
140 | # MORE EXAMPLES
141 |
142 | ### GAMMA DOPPLER
143 |
144 | ```json
145 | "★ StatTrak™ Karambit | Gamma Doppler Emerald (Factory New)": {
146 | "type": "StatTrak™",
147 | "exterior": "Factory New",
148 | "image": "https://csgostash.com/storage/img/skin_variants/s782_emerald.png?id=413d1a4e2a1bd899954ecb26eea10096",
149 | "inspect": {
150 | "gen": "!gen 507 568",
151 | "link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198001812949A6599931946D14334573342458081943"
152 | },
153 | "phase": "Emerald",
154 | "full-name": "★ StatTrak™ Karambit | Gamma Doppler Emerald (Factory New)",
155 | "name": "★ Karambit | Gamma Doppler",
156 | "weapon": "Karambit",
157 | "weapon-catalog": 507,
158 | "csgostash-id": 782,
159 | "finish": "Gamma Doppler",
160 | "is-doppler": true,
161 | "finish-catalog": 568,
162 | "finish-style": "Anodized Multicolored",
163 | "rarity": "Covert",
164 | "color": "#eb4b4b",
165 | "float-caps": [
166 | 0,
167 | 0.08
168 | ],
169 | "possible": [
170 | "StatTrak™ Factory New",
171 | "StatTrak™ Minimal Wear",
172 | "Factory New",
173 | "Minimal Wear"
174 | ],
175 | "types": [
176 | "Normal",
177 | "StatTrak™"
178 | ],
179 | "date-added": {
180 | "text": "16 June 2016",
181 | "date": "16/6/2016",
182 | "unix": 1466035200
183 | }
184 | }
185 | ```
186 |
187 | ### VANILLA
188 |
189 | ```json
190 | "★ Butterfly Knife | Vanilla (Factory New)": {
191 | "type": "Normal",
192 | "exterior": "Factory New",
193 | "image": "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/weapons/base_weapons/weapon_knife_butterfly.794147e84a4e9426202d45145910cbb007797ce5.png",
194 | "inspect": {
195 | "gen": "!gen 515",
196 | "link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M633137629095046309A6485249749D328415975175144145"
197 | },
198 | "full-name": "★ Butterfly Knife | Vanilla (Factory New)",
199 | "name": "★ Butterfly Knife | Vanilla",
200 | "weapon": "Butterfly Knife",
201 | "weapon-catalog": 515,
202 | "csgostash-id": 452,
203 | "finish": "Vanilla",
204 | "is-doppler": false,
205 | "finish-catalog": 0,
206 | "finish-style": null,
207 | "rarity": "Covert",
208 | "color": "#eb4b4b",
209 | "float-caps": null,
210 | "possible": [
211 | "Factory New",
212 | "StatTrak™ Factory New"
213 | ],
214 | "types": [
215 | "Normal",
216 | "StatTrak™"
217 | ],
218 | "date-added": {
219 | "text": "1 July 2014",
220 | "date": "1/7/2014",
221 | "unix": 1404172800
222 | }
223 | }
224 | ```
225 |
226 |
227 |
228 | # V1
229 |
230 | ### Layout
231 |
232 | The JSON is layed out like this: (example for an **AWP | Dragon Lore**)
233 |
234 |
235 |
236 | **name of skin** ("AWP | Dragon Lore"): {
237 |
238 | "name": **name of skin** ("AWP | Dragon Lore"),
239 |
240 | "weapon": **weapon name** ("AWP"),
241 |
242 | "weapon-catalog": **in-game ID of weapon** (9),
243 |
244 | "csgostash-id": **the id on csgostash.com/skin/[ID]** (422),
245 |
246 | "finish": **the skin** ("Dragon Lore"),
247 |
248 | "is-doppler": **if the skin is a doppler/gamma doppler** (false), [^5]
249 |
250 | "finish-catalog": **in-game ID of finish** (344), [^6]
251 |
252 | "finish-style": **style of finish** ("Custom Paint Job"), [^4]
253 |
254 | "rarity": **rarity of skin** ("Covert"),
255 |
256 | "color": **color of rarity** ("#eb4b4b"),
257 |
258 | "float-caps": **list of float caps [min, max]** ([0, 0.7]), [^4]
259 |
260 | "images": **JSON of each wear and it's image** ({"Factory New": "https://steam...", "Minimal Wear": "https://steam...", etc...}), [^7] [^1]
261 |
262 | "possible": **list of each possible item** (["Factory New", "Minimal Wear", ..., "Souvenir Factory New", ...]), [^1]
263 |
264 | "types": **list of each possible type of item** (["Normal", "Souvenir"]),
265 |
266 | "inspect": {
267 |
268 | "gen": **gen code** ("!gen 9 344"), [^8]
269 |
270 | "links": **each wears in-game link** ({"Factory New": "steam://rungame...", "Minimal Wear": "steam://rungame...", etc...}) [^3] [^9]
271 |
272 | },
273 |
274 | "date-added": {
275 |
276 | "text": **date added text** ("1 July 2014"),
277 |
278 | "date": **date added** ("1/7/2014"),
279 |
280 | "unix": **date added in unix** (1404172800)
281 |
282 | }
283 |
284 | }
285 |
286 | **FULL EXAMPLE**
287 |
288 | ```json
289 | "AWP | Dragon Lore": {
290 | "name": "AWP | Dragon Lore",
291 | "weapon": "AWP",
292 | "weapon-catalog": 9,
293 | "csgostash-id": 422,
294 | "finish": "Dragon Lore",
295 | "is-doppler": false,
296 | "finish-catalog": 344,
297 | "finish-style": "Custom Paint Job",
298 | "rarity": "Covert",
299 | "color": "#eb4b4b",
300 | "float-caps": [
301 | 0,
302 | 0.7
303 | ],
304 | "images": {
305 | "Factory New": "https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot621FAR17P7NdTRH-t26q4SZlvD7PYTQgXtu5Mx2gv2PrdSijAWwqkVtN272JIGdJw46YVrYqVO3xLy-gJC9u5vByCBh6ygi7WGdwUKTYdRD8A/512fx384f",
306 | "Minimal Wear": "https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot621FAR17P7NdTRH-t26q4SZlvD7PYTQgXtu5Mx2gv2PrdSijAWwqkVtN272JIGdJw46YVrYqVO3xLy-gJC9u5vByCBh6ygi7WGdwUKTYdRD8A/512fx384f",
307 | "Field-Tested": "https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot621FAR17P7NdTRH-t26q4SZlvD7PYTQgXtu5cB1g_zMu9Wk2ATh_0tkMWrzLY7BIQM2NArQq1O9kL_qgJTt6Ziam3Bh6SR3sHfD30vgriIWFx4/512fx384f",
308 | "Well-Worn": "https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot621FAR17P7NdTRH-t26q4SZlvD7PYTQgXtu5cB1g_zMu9Wk2ATh_0tkMWrzLY7BIQM2NArQq1O9kL_qgJTt6Ziam3Bh6SR3sHfD30vgriIWFx4/512fx384f",
309 | "Battle-Scarred": "https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot621FAR17P7NdTRH-t26q4SZlvD7PYTQgXtu4MBwnPCPoYqtjFHsqEE5Zj-gddDGegZsMwnVrwW8wbzv0cXptMyayXZnvHJ0tGGdwUIocz3_kQ/512fx384f"
310 | },
311 | "possible": [
312 | "Factory New",
313 | "Minimal Wear",
314 | "Field-Tested",
315 | "Well-Worn",
316 | "Battle-Scarred",
317 | "Souvenir Factory New",
318 | "Souvenir Minimal Wear",
319 | "Souvenir Field-Tested",
320 | "Souvenir Well-Worn",
321 | "Souvenir Battle-Scarred"
322 | ],
323 | "types": [
324 | "Normal",
325 | "Souvenir"
326 | ],
327 | "inspect": {
328 | "gen": "!gen 9 344",
329 | "links": {
330 | "Factory New": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198299749713A7013114583D3180113772518061157",
331 | "Minimal Wear": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198254145867A7013781737D3026562455898750633",
332 | "Field-Tested": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198254162479A6987335927D346401843859193579",
333 | "Well-Worn": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198251568662A7013590656D10098769016625060393",
334 | "Battle-Scarred": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198253336261A6934848330D12289449051849505839"
335 | }
336 | },
337 | "date-added": {
338 | "text": "1 July 2014",
339 | "date": "1/7/2014",
340 | "unix": 1404172800
341 | }
342 | }
343 | ```
344 |
345 |
346 |
347 | # MORE EXAMPLES:
348 |
349 | ### GAMMA DOPPLER
350 |
351 | ```json
352 | "★ Karambit | Gamma Doppler": {
353 | "name": "★ Karambit | Gamma Doppler",
354 | "weapon": "Karambit",
355 | "weapon-catalog": 507,
356 | "csgostash-id": 782,
357 | "finish": "Gamma Doppler",
358 | "is-doppler": true,
359 | "finish-catalog": {
360 | "Phase 1": 569,
361 | "Phase 2": 570,
362 | "Phase 3": 571,
363 | "Phase 4": 572,
364 | "Emerald": 568
365 | },
366 | "finish-style": "Anodized Multicolored",
367 | "rarity": "Covert",
368 | "color": "#eb4b4b",
369 | "float-caps": [
370 | 0,
371 | 0.08
372 | ],
373 | "images": {
374 | "Phase 1": "https://csgostash.com/storage/img/skin_variants/s782_phase1.png?id=40a8ac36051bedd881fda234f9afe9ba",
375 | "Phase 2": "https://csgostash.com/storage/img/skin_variants/s782_phase2.png?id=3e27528bcd6721c50647b83edc1cab44",
376 | "Phase 3": "https://csgostash.com/storage/img/skin_variants/s782_phase3.png?id=7c36d22a6f119f27b845365a967b2afb",
377 | "Phase 4": "https://csgostash.com/storage/img/skin_variants/s782_phase4.png?id=4d9633cb3d5ac7927bf1c2f4c63d46d3",
378 | "Emerald": "https://csgostash.com/storage/img/skin_variants/s782_emerald.png?id=413d1a4e2a1bd899954ecb26eea10096"
379 | },
380 | "possible": [
381 | "StatTrak™ Factory New",
382 | "StatTrak™ Minimal Wear",
383 | "Factory New",
384 | "Minimal Wear"
385 | ],
386 | "types": [
387 | "Normal",
388 | "StatTrak™"
389 | ],
390 | "inspect": {
391 | "gen": {
392 | "Phase 1": "!gen 507 569",
393 | "Phase 2": "!gen 507 570",
394 | "Phase 3": "!gen 507 571",
395 | "Phase 4": "!gen 507 572",
396 | "Emerald": "!gen 507 568"
397 | },
398 | "links": {
399 | "Phase 1": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198120045401A6643376124D9685096593643756275",
400 | "Phase 2": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561197981264868A6626619635D2894165744253391101",
401 | "Phase 3": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198148995613A6614952442D7971969508545099517",
402 | "Phase 4": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198013327613A6608802478D2742248576393351871",
403 | "Emerald": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198001812949A6599931946D14334573342458081943"
404 | }
405 | },
406 | "date-added": {
407 | "text": "16 June 2016",
408 | "date": "16/6/2016",
409 | "unix": 1466035200
410 | }
411 | }
412 | ```
413 |
414 | ### VANILLA
415 |
416 | ```json
417 | "★ Butterfly Knife | Vanilla": {
418 | "name": "★ Butterfly Knife | Vanilla",
419 | "weapon": "Butterfly Knife",
420 | "weapon-catalog": 515,
421 | "csgostash-id": 452,
422 | "finish": "Vanilla",
423 | "is-doppler": false,
424 | "finish-catalog": 0,
425 | "finish-style": null,
426 | "rarity": "Covert",
427 | "color": "#eb4b4b",
428 | "float-caps": null,
429 | "images": {
430 | "Factory New": "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/weapons/base_weapons/weapon_knife_butterfly.794147e84a4e9426202d45145910cbb007797ce5.png"
431 | },
432 | "possible": [
433 | "Factory New",
434 | "StatTrak™ Factory New"
435 | ],
436 | "types": [
437 | "Normal",
438 | "StatTrak™"
439 | ],
440 | "inspect": {
441 | "gen": "!gen 515",
442 | "links": {
443 | "Factory New": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M633137629095046309A6485249749D328415975175144145"
444 | }
445 | },
446 | "date-added": {
447 | "text": "1 July 2014",
448 | "date": "1/7/2014",
449 | "unix": 1404172800
450 | }
451 | }
452 | ```
453 |
454 |
455 |
456 | [^1]: vanilla knifes are classed as "Factory New"
457 |
458 | [^2]: image is hosted on csgostash for dopplers
459 |
460 | [^3]: a link may be null for some edge cases
461 | eg: {"Factory New": null, "Minimal Wear": "steam://rungame/...", etc.}
462 |
463 | [^4]: becomes null for vanilla knifes
464 |
465 | [^5]: this is useful because "finish-catalog" becomes a list of the finish catalogs for each phase rather than being just an integer
466 |
467 | [^6]: changes to include phases (and gems) for dopplers
468 | eg: {"Phase 1": 569, "Phase 2": 570, etc.}
469 |
470 | [^7]: becomes images of each phase (and gem) for dopplers, rather than exterior
471 | eg: {"Phase 1": "https://...", "Phase 2": "https://...", etc.}
472 |
473 | [^8]: changes to include phases (and gems) for dopplers
474 | eg: {"Phase 1": "!gen ...", "Phase 2": "!gen ...", etc.}
475 |
476 | [^9]: becomes links of each phase (and gem) for dopplers, rather than exterior
477 | eg: {"Phase 1": "steam://rungame...", "Phase 2": "steam://rungame...", etc.}
478 |
--------------------------------------------------------------------------------