Project Icon

CSGO-API

非官方CS2游戏数据JSON API

CSGO-API是一个非官方的Counter-Strike 2 JSON API,提供多语言支持的游戏数据访问。API涵盖武器皮肤、贴纸、收藏品和探员等多个方面的详细信息。开发者可通过HTTP请求轻松获取和集成这些数据,为CS2相关应用开发提供便利。

介绍

欢迎使用非官方的反恐精英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"
  }
  // ... 
]
项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

吐司

探索Tensor.Art平台的独特AI模型,免费访问各种图像生成与AI训练工具,从Stable Diffusion等基础模型开始,轻松实现创新图像生成。体验前沿的AI技术,推动个人和企业的创新发展。

Project Cover

SubCat字幕猫

SubCat字幕猫APP是一款创新的视频播放器,它将改变您观看视频的方式!SubCat结合了先进的人工智能技术,为您提供即时视频字幕翻译,无论是本地视频还是网络流媒体,让您轻松享受各种语言的内容。

Project Cover

美间AI

美间AI创意设计平台,利用前沿AI技术,为设计师和营销人员提供一站式设计解决方案。从智能海报到3D效果图,再到文案生成,美间让创意设计更简单、更高效。

Project Cover

AIWritePaper论文写作

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号