Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Get item name from its ID?


    Recommended Posts

    Is it possible to get the item name or buy limit from its ID? for example ID=2 will return Cannonball and 11000.

    Edited by theknig
    Link to comment
    Share on other sites

    • 4 weeks later...

    To follow up on Hashtag's comment - you can use the official OSRS api for pricing (and name to some extent, though it'd be more longwinded than just .getName()).

    Item Prices - https://prices.runescape.wiki/api/v1/osrs/latest?id=2

    Information on how to use - https://oldschool.runescape.wiki/w/RuneScape:Real-time_Prices#Query_parameters

    You can query your item prices here but please don't flood the API by looping through tonnes of IDs, you'd be better off just doing a blind query with no ID set for all items and then looping locally.


    Item Details - https://prices.runescape.wiki/api/v1/osrs/mapping

    If you were using the mapping for item names, I'd probably query mapping once at the start then loop through and store item "objects" in a hash map.


    Link to comment
    Share on other sites

    • 1 year later...
    • 3 weeks later...

    Hey there! It's possible to get the item name and buy limit from its ID. You can use the ID=2 to retrieve the item "Cannonball" and its buy limit 11000. You should use an appropriate API or database to access item information based on their IDs. Also, there are services like this one https://fakeyourdrank.com that help solve the issue when you've lost an ID. Good luck with your item retrieval!

    Edited by Anemyasko
    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.