Skip to content

Skyblock auctions duplicate gemstones issue #549

Answered by MattTheCuber
MattTheCuber asked this question in Q&A
Discussion options

You must be logged in to vote

Found an answer after examining this problem to death. The /skyblock/items endpoint comes to the rescue! Basically, instead of looping through the gemstones on an item, you need to loop through the available slots of the item ignoring duplicate keys for the actual item.

This is an example of an item that allows gemstones in the /skyblock/items endpoint. After comparing this to the data for an item itself, it is easy to programmatically find what gemstones an item has applied and what slots are unlocked.

"gemstone_slots": [
  {
    "slot_type": "TYPE"
  },
  {
    "slot_type": "TYPE",
    "costs": [...]
  }
]```

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Semisol
Comment options

Answer selected by MattTheCuber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #548 on June 24, 2022 15:53.