Jump to content
McKay Development

Get the skin image just by knowing the skin name [node.js/request]


Recommended Posts

Posted (edited)

Hello,

 

Can someone help me with the url from where I can get the skin image just by knowing the skin name.

So in node.js is like

request("link, link / skin name", function(x,y,z) {
if(y.statusCode == 200) {
    skinImage = blabla;
}
});

Hope someone can help me :( !

Edited by Andrei Elvis
Posted (edited)

Hi Echo,

I don't think it's possible to extract a image by the market name (without scraping the market), I do know you used to be able to get it using the classid of an item;

I'm not sure if it still is a valid way of doing this but I remember I used to be using,

https://steamcommunity-a.akamaihd.net/economy/image/class/730/<classid>/150fx125f
Edited by Eradicate
Posted

 

Hi Echo,

 

I don't think it's possible to extract a image by the market name (without scraping the market), I do know you used to be able to get it using the classid of an item;

I'm not sure if it still is a valid way of doing this but I remember I used to be using,

https://steamcommunity-a.akamaihd.net/economy/image/class/730/<classid>/150fx125f

 

It is useless with classid... as I have an array with the skin names :P, but thanks for reply.

I had the script to get the image of a skin name, it was requesting the steam market with the skin name given and it were getting the skin image.

But I do not have the code and I do not have any idea how to make it right now :'(

Posted

It is useless with classid... as I have an array with the skin names :P, but thanks for reply.

I had the script to get the image of a skin name, it was requesting the steam market with the skin name given and it were getting the skin image.

But I do not have the code and I do not have any idea how to make it right now :'(

Well, it'd be intresting to see how that would work but I do know an API that supports images by name; 

 

have a look at this API and then the v1/items, you can loop over the objects check if the market_hash_name's match, if so return the image (icon_url). I don't think they allow infinite requests so you would have to cache/store the json somewhere.

 

http://csgo.steamlytics.xyz/api

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...