介绍
欢迎使用非官方的反恐精英2 JSON API。这个API提供了游戏各方面数据的访问,数据已解析成JSON格式,便于集成和使用。
数据来源于此仓库维护的文件。
使用方法
此API支持20多种语言。要访问特定语言的信息,请将URL中的{language}替换为下列支持的语言代码之一。
GET https://bymykel.github.io/CSGO-API/api/{language}
支持的语言:
语言名称 | 语言代码 |
---|---|
保加利亚语 | bg |
捷克语 | cs |
丹麦语 | da |
德语 | de |
希腊语 | el |
英语 | en |
西班牙语(西班牙) | es-ES |
西班牙语(墨西哥) | es-MX |
芬兰语 | fi |
法语 | fr |
匈牙利语 | hu |
意大利语 | it |
日语 | ja |
韩语 | ko |
荷兰语 | nl |
挪威语 | no |
波兰语 | pl |
葡萄牙语(巴西) | pt-BR |
葡萄牙语(葡萄牙) | pt-PT |
罗马尼亚语 | ro |
俄语 | ru |
斯洛伐克语 | sk |
瑞典语 | sv |
泰语 | th |
土耳其语 | tr |
乌克兰语 | uk |
中文(简体) | zh-CN |
中文(繁体) | zh-TW |
越南语 | vi |
所有物品
GET https://bymykel.github.io/CSGO-API/api/en/all.json
包含所有可通过ID访问的物品的对象。
列出皮肤
GET https://bymykel.github.io/CSGO-API/api/en/skins.json
响应示例:
[
{
"id": "skin-65604",
"name": "沙漠之鹰(Desert Eagle) | 都市 DDPAT",
"description": "沙漠之鹰既昂贵又强大,是一把难以掌握但在远距离上出奇精准的标志性手枪。它使用数码迷彩图案(DDPAT)进行了喷涂。\n\n<i>当你近到能注意到像素时,一切已经太晚了</i>",
"weapon": {
"id": "weapon_deagle",
"name": "沙漠之鹰"
},
"category": {
"id": "csgo_inventory_weapon_category_pistols",
"name": "手枪"
},
"pattern": {
"id": "hy_ddpat_urb",
"name": "都市 DDPAT"
},
"min_float": 0.06,
"max_float": 0.8,
"rarity": {
"id": "rarity_uncommon_weapon",
"name": "工业级",
"color": "#5e98d9"
},
"stattrak": false,
"souvenir": true,
"paint_index": "17",
"wears": [
{"id": "SFUI_InvTooltip_Wear_Amount_0", "name": "崭新出厂"},
{"id": "SFUI_InvTooltip_Wear_Amount_1", "name": "略有磨损"},
{"id": "SFUI_InvTooltip_Wear_Amount_2", "name": "久经沙场"},
{"id": "SFUI_InvTooltip_Wear_Amount_3", "name": "破损不堪"},
{"id": "SFUI_InvTooltip_Wear_Amount_4", "name": "战痕累累"}
],
"collections": [
{
"id": "collection-set-overpass",
"name": "Overpass收藏",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/set_icons/set_overpass_png.png"
}
],
"crates": [
{
"id": "crate-4028",
"name": "ESL One Cologne 2014 Overpass纪念包",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapon_cases/crate_esl14_promo_de_overpass_png.png"
},
// ...
],
"team": {
"id": "both",
"name": "两队都可用"
},
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/default_generated/weapon_deagle_hy_ddpat_urb_light_png.png"
}
// ...
]
列出未分组的皮肤
GET https://bymykel.github.io/CSGO-API/api/en/skins_not_grouped.json
与前一个类似,但在这种情况下,皮肤不按磨损程度(崭新出厂、久经沙场等)和状态(普通、StatTrak、纪念品)分组。
响应示例:
[
{
"id": "skin-65604_0",
"skin_id": "skin-65604",
"name": "沙漠之鹰(Desert Eagle) | 都市 DDPAT(崭新出厂)",
"description": "沙漠之鹰既昂贵又强大,是一把难以掌握但在远距离上出奇精准的标志性手枪。它使用数码迷彩图案(DDPAT)进行了喷涂。\\n\\n<i>当你近到能注意到像素时,一切已经太晚了</i>",
"weapon": {
"id": "weapon_deagle",
"name": "沙漠之鹰"
},
"category": {
"id": "csgo_inventory_weapon_category_pistols",
"name": "手枪"
},
"pattern": {
"id": "hy_ddpat_urb",
"name": "都市 DDPAT"
},
"min_float": 0.06,
"max_float": 0.8,
"wear": {
"id": "SFUI_InvTooltip_Wear_Amount_0",
"name": "崭新出厂"
},
"stattrak": false,
"souvenir": false,
"paint_index": "17",
"rarity": {
"id": "rarity_uncommon_weapon",
"name": "工业级",
"color": "#5e98d9"
},
"market_hash_name": "Desert Eagle | Urban DDPAT (Factory New)",
"team": {
"id": "both",
"name": "两队都可用"
},
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/default_generated/weapon_deagle_hy_ddpat_urb_light_png.png"
}
// ...
]
列出贴纸
GET https://bymykel.github.io/CSGO-API/api/en/stickers.json
响应示例:
[
{
"id": "sticker-75",
"name": "印花 | Titan | 卡托维兹 2014",
"description": "这个印花可以贴在你拥有的任何武器上,并可以刮掉以使其看起来更旧。你可以多次刮同一个印花,每次都会让它变得更旧一些,直到它从武器上完全移除。",
"rarity": {
"id": "rarity_rare",
"name": "高级",
"color": "#4b69ff"
},
"crates": [
{
"id": "crate-4015",
"name": "EMS 卡托维兹 2014 传奇组",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapon_cases/crate_sticker_pack_kat2014_02_png.png"
}
],
"tournament_event": "卡托维兹 2014",
"tournament_team": "Titan",
"type": "战队",
"market_hash_name": "印花 | Titan | 卡托维兹 2014",
"effect": "其他",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/stickers/emskatowice2014/titan_png.png"
}
// ...
]
列出收藏品
GET https://bymykel.github.io/CSGO-API/api/en/collections.json
响应示例:
[
{
"id": "collection-set-community-3",
"name": "猎杀者收藏品",
"crates": [
{
"id": "crate-4017",
"name": "猎杀者武器箱",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapon_cases/crate_community_3_png.png"
}
],
"contains": [
{
"id": "skin-1967292",
"name": "Tec-9 | 艾萨克",
"rarity": {
"id": "rarity_rare_weapon",
"name": "军规级",
"color": "#4b69ff"
},
"paint_index": "303",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/default_generated/weapon_tec9_cu_tec9_asiimov_light_png.png"
}
// ...
],
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/set_icons/set_community_3_png.png"
}
// ...
]
列出武器箱
此列表包括武器箱、胶囊、涂鸦盒、音乐盒和纪念包。
GET https://bymykel.github.io/CSGO-API/api/en/crates.json
响应示例:
[
{
"id": "crate-4904",
"name": "千瓦武器箱",
"description": null,
"type": "武器箱",
"first_sale_date": "2024-01-31",
"contains": [
{
"id": "skin-135748",
"name": "双持贝瑞塔 | 藏身处",
"rarity": {
"id": "rarity_rare_weapon",
"name": "军规级",
"color": "#4b69ff"
},
"paint_index": "1169",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/default_generated/weapon_elite_dual_berettas_lethal_grin_light_png.png"
}
// ...
],
"contains_rare": [
{
"id": "skin-vanilla-weapon_knife_kukri",
"name": "★ 反曲刀",
"rarity": {
"id": "rarity_ancient_weapon",
"name": "隐秘",
"color": "#eb4b4b"
},
"paint_index": null,
"phase": null,
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapons/base_weapons/weapon_knife_kukri_png.png"
}
// ...
],
"market_hash_name": "千瓦武器箱",
"rental": true,
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapon_cases/crate_community_33_png.png"
}
// ...
]
列出钥匙
GET https://bymykel.github.io/CSGO-API/api/en/keys.json
响应示例:
[
{
"id": "key-generic_valve_key",
"name": "CS:GO 武器箱钥匙",
"description": "这把钥匙可以打开任何 Valve 系列武器箱。非 Valve 系列武器箱(例如电竞武器箱)需要使用其专用钥匙才能打开。",
"market_hash_name": "CS:GO 武器箱钥匙",
"crates": [
{
"id": "crate-4001",
"name": "CS:GO 武器箱",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapon_cases/crate_valve_1_png.png"
}
// ...
],
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/tools/weapon_case_key_png.png"
}
// ...
]
列出收藏品
GET https://bymykel.github.io/CSGO-API/api/en/collectibles.json
响应示例:
[
{
"id": "collectible-874",
"name": "5 年老兵徽章",
"description": "已经成为反恐精英社区成员超过 5 年。",
"rarity": {
"id": "rarity_ancient",
"name": "非凡",
"color": "#eb4b4b"
},
"type": null,
"genuine": false,
"market_hash_name": null,
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/status_icons/5yearcoin_png.png"
}
// ...
]
列出特工
GET https://bymykel.github.io/CSGO-API/api/en/agents.json
响应示例:
[
{
"id": "agent-4613",
"name": "嗜血达瑞尔 | 专业人士",
"description": "在成为抢劫团伙"专业人士"的首领之前,嗜血达瑞尔爵士的名字更简单,就叫嗜血达瑞尔。他依然是你友好的邻家精神病患者,名副其实。据澳大利亚人说,他其实并不是澳大利亚人。\n\n<i>我只是想给他们一点花里胡哨的东西。</i>",
"rarity": {
"id": "rarity_legendary_character",
"name": "卓越",
"color": "#d32ce6"
},
"collections": [
{
"id": "collection-set-op11-characters",
"name": "激流大行动特工",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/set_icons/set_op11_characters_png.png"
}
],
"team": {
"id": "terrorists",
"name": "恐怖分子"
},
"market_hash_name": "嗜血达瑞尔 | 专业人士",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/characters/customplayer_tm_professional_varf5_png.png"
}
// ...
]
列出徽章
GET https://bymykel.github.io/CSGO-API/api/en/patches.json
示例响应:
[
{
"id": "patch-5126",
"name": "徽章 | FaZe战队(金色) | 斯德哥尔摩2021",
"description": "此徽章可应用于您拥有的任何特工。一旦应用,可以移除但无法恢复。",
"rarity": {
"id": "rarity_mythical",
"name": "非凡",
"color": "#8847ff"
},
"market_hash_name": "徽章 | FaZe战队(金色) | 斯德哥尔摩2021",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/patches/stockh2021/patch_faze_gold_png.png"
}
// ...
]
列出涂鸦
GET https://bymykel.github.io/CSGO-API/api/en/graffiti.json
示例响应:
[
{
"id": "graffiti-1654",
"name": "封装的涂鸦 | 小鸡",
"description": "这是一个封装的涂鸦图案容器。一旦这个涂鸦图案被解封,它将提供足够的次数,让你可以在游戏世界中使用这个涂鸦图案<b>50</b>次。",
"rarity": {
"id": "rarity_rare",
"name": "高级",
"color": "#4b69ff"
},
"crates": [
{
"id": "crate-4234",
"name": "社区涂鸦箱1",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/weapon_cases/crate_spray_pack_community_1_png.png"
}
],
"market_hash_name": "封装的涂鸦 | 小鸡",
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/stickers/community_mix01/chicken_png.png"
}
// ...
]
列出音乐盒
GET https://bymykel.github.io/CSGO-API/api/en/music_kits.json
示例响应:
[
{
"id": "music_kit-39",
"name": "音乐盒 | The Verkkars,EZ4ENCE",
"description": "The Verkkars以一首激动人心的歌曲向ENCE致敬,在芬兰音乐排行榜上一路攀升。真的有那么简单吗?",
"rarity": {
"id": "rarity_rare",
"name": "高级",
"color": "#4b69ff"
},
"market_hash_name": "音乐盒 | The Verkkars,EZ4ENCE",
"exclusive": false,
"image": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/music_kits/theverkkars_01_png.png"
}
// ...
]