Code Monkey home page Code Monkey logo

bymykel / csgo-api Goto Github PK

View Code? Open in Web Editor NEW
264.0 11.0 31.0 2.59 GB

An unofficial JSON API for Counter-Strike 2 in multiples languages. List of skins, cases, stickers, collections, collectibles, agents, graffiti, keys, patches and music kits.

Home Page: https://bymykel.github.io/CSGO-API/

License: MIT License

JavaScript 71.48% HTML 28.52%
csgo json-api api counter-strike-global-offensive counter-strike csgo-skins csgo-api csgo-case csgo-stickers counter-strike-2

csgo-api's People

Contributors

actions-user avatar antal-k avatar bymykel avatar dependabot[bot] avatar easton36 avatar github-actions[bot] avatar piyanggoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csgo-api's Issues

Can we add that to the name of the weapon

"SFUI_InvTooltip_Wear_Amount_0" "Factory New"
"SFUI_InvTooltip_Wear_Amount_1" "Minimal Wear"
"SFUI_InvTooltip_Wear_Amount_2" "Field-Tested"
"SFUI_InvTooltip_Wear_Amount_3" "Well-Worn"
"SFUI_InvTooltip_Wear_Amount_4" "Battle-Scarred"

P2000 | Amber Fade (${SFUI_InvTooltip_Wear_Amount_?})
P2000 | Chainmail (${SFUI_InvTooltip_Wear_Amount_?})
P250 | Bengal Tiger (${SFUI_InvTooltip_Wear_Amount_?})
P250 | Bone Mask (${SFUI_InvTooltip_Wear_Amount_?})

Missing Passes

Hello, we are currently using this API for loading some information but we noticed that Passes are missing, they have descriptions, rarity and all that.

Example: Paris 2023 Viewer Pass

Thanks

Add medals

Please add parsing of medals and their images

Add a team for weapons

{
        "id": "skin-65604",
        "name": "Desert Eagle | Urban DDPAT",
        "description": "....",
        "weapon": {...},
        "category": {...},
        "pattern": {...},
        "min_float": 0.06,
        "max_float": 0.8,
        "rarity": {...},
        "stattrak": false,
        "souvenir": true,
        "paint_index": "17",
        "wears": [...],
        "collections": [...],
        "crates": [...],
        "image": "..."
        "team": "all" ( ct | tt | all )
    }

Wrong rarity in cases.

Hello, I have noticed that many items inside the cases have a rarity of "Industrial", which should normally not appear in cases as they are exclusive to collections and souvenir packages. Could you please investigate this issue? Thank you!

Use steam market_hash_name as name in Skin Endpoint

Hi @ByMykel,

first of all, this project is super nice and very helpful! Thank you for creating this API! :-)

As I played around with the data, I found that the "wears" in the Skins endpoint might be not the best solution, when the idea is to use this API as a starting point and get for example price information from a second API, as you suggested in #34.

The "problem" is that a lot of other services uses the market_hash_name from steam as unique identifier for a skin.
In the market_hash_name the structure of the name is something like this:

%Stattrack% %NAME_OF_SKIN% (%WEAR%)

It would be easier to connect third party services when your naming system would follow this structure.
I understand that this would mean that the JSON File would grow a lot, so this is just a suggestion, as it is also possible to transform the data on "our" side, when we aggregate the data in a database.

Nevertheless I suggest to follow the market_hash_name pattern, as you do this already in the Sticker Endpoint.

Add array of cases where every skin can be found.

{
        "id": "skin-329882800",
        "name": "Moto Gloves | Cool Mint",
        "description": "These bulky hard knuckled....",
        "weapon": "Moto Gloves",
        "category": "Gloves",
        "pattern": "Cool Mint",
        "min_float": 0.06,
        "max_float": 0.8,
        "rarity": "Extraordinary",
        "stattrak": false,
        "paint_index": "10028",

        "crates": [
                { "id": "crate-4352", "name": "Operation Hydra Case" },
                { "id": "crate-4288", "name": "Glove Case" }
        ]

        "image": "https://steamcdn-a.akamai..."
    }

Skins descriptions

skins.json descriptions not available, but available in csgo_english.txt
and will be appreciated if you integrate language of descriptions choice

Add new CS2 images

For now I haven't found the new cdn images, in the steam market they still use the old CSGO ones.

Some comparisons (left old, right new):
Captura de pantalla 2023-10-13 232346

Captura de pantalla 2023-10-13 232412

Captura de pantalla 2023-10-13 232512

Captura de pantalla 2023-10-13 232550

I can try to add all the images to this repository until the cdn is available.

Skin ids don't match up and skins.json contains wrong information

I downloaded skins and cases and tried to link cases.contains.obj.id with skins.obj.id, but it already fails at the Csgo Weapon Case. In the contains_rare prop of the case, there is the bayonet fade which has the id skin-200616, but in skins.json this id is the five seven berries and cherries and bayonet fade has id skin-32768152. Also i tried to test if the rarities in cases.json and skins.json match up and from what i've seen at least the glock dragon tattoo and m4a4 faded zebra have the wrong rarities in skins.json. M4a4 faded zebra is Mil-spec, not industrial grade and glock dragon tatto is restricted not mil-spec. This is only wrong in skins.json.

ERROR [TypeError: Network request failed]

Hola, estoy aprendiendo a desarrollar apps y al utilizar la API me esta dando el error " ERROR [TypeError: Network request failed] "...
Si sabes como solucionarlo o me podrias echar alguna ayuda por algun lado me vendria bien :)

Add level to service medals.

{
        "id": "collectible-4676",
        "name": "2020 Service Medal",
        "description": "Awarded for outstanding service and achievement in 2020.",
        "rarity": null,
        "type": "Service Medal",
        "image": ".../status_icons/service_medal_2020_lvl3_large.png"
}

The level can be found in the image path _lvl3_.
Change name to 2020 Service Medal (Level 3) or add new attribute level.

"total supply" of a crate/weapon?

csgo might not expose this data..

but as a buyer it's important to me, example, how many bravo crates or a specific knife exist in the wild.

don't know if this is possible but I'd appreciate this feature and I'd be happy to contribute if you find a path to do this

Why are there multiple skin ids

image

AK-47 | Head Shot (Field-Tested)
StatTrak™ MP5-SD | Liquidation (Field-Tested)
MP5-SD | Liquidation (Well-Worn)
StatTrak™ MP5-SD | Liquidation (Well-Worn)
...
...

Add `crates` attribute to `agents.json`

{
    "id": "agent-4734",
    "name": "Sir Bloody Skullhead Darryl | The Professionals",
    "description": "The leader of 'The Professionals' ca...",
    "rarity": "Master",
    "crates": [
        {
            "id": "collection-set-op10-characters",
            "name": "Broken Fang Agents",
            "image": "https://raw.githubusercontent.com/..."
        }
    ],
    "image": "https://steamcdn-a.akamaihd.net/apps/730..."
}

Feature Request: SkinID in Skins.json

Hey, Just a little Request, could it be possible to add the SkinID's into the skins.json they are shown in the items_game.txt one example would be:

		"449"
		{
			"name"		"cu_poseidon"

which right now is saved as "skin-1050372" maybe add a extra line named "SkinID" or "paintIndex" this would help me a lot! :)

About api

Hello, are these apis only for photos or is there something I can integrate into my web server for the game?

Add rarity's color

It would be beneficial to have price and color information included in the skin details. Currently, these attributes are missing, which limits the usability and completeness of the repository. Adding price and color fields would greatly enhance the repository by providing users with easy access to essential information about each item.

Correct items translations

Some genuine collectibles are wrong translated as I assume that the genuin word is first and then the pin's name.
Need to find a way to know the correct order to translate items or just leave genuine as an extra attribute.

Ukrainian

  • Correct: Значок «Валерія Фенікс» (з першої партії)
  • Incorrect: з першої партії Значок «Валерія Фенікс»

Spanish

  • Correct: Pin de Valeria de Phoenix de aspecto genuino
  • Incorrect: de aspecto genuino Pin de Dust II

This involves other items, such as knives or gloves:
Spanish: Guantes de deporte ★ | Caja de Pandora
English: ★ Sport Gloves | Pandora's Box

Add Weapon Category

There is some chance to get the weapon categories like the CSGOSTASH in an extra field?

 {
        "id": "skin-1967916",
        "name": "Tec-9 | Bamboo Forest",
        "description": "An ideal pistol for the Terrorist on the move, the Tec-9 is lethal in close quarters and features a high magazine capacity.",
        "weapon": "Tec-9",
        _**"category": "Pistols"**_
        "pattern": "Bamboo Forest",
        "min_float": 0,
        "max_float": 0.6,
        "rarity": "Consumer Grade",
        "stattrak": false,
        "paint_index": "459",
        "image": "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/default_generated/weapon_tec9_hy_bamboo_jungle_light_large.31268450fbb5b5c2221e6eaadbe7124cf85f3e1d.png"
    },

For example, pistols, rifles, smg's...

And also, thank you for the great work!

Incorrect crate contains

Gamma and Gamma 2 Cases contain a mix of Gamma knives and Chroma knives.

Incorrect:

  • Gut Knives
  • Karambits
  • M9 Bayonets

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.