When requesting with the following name array with Get game api,
name = ["Dark Souls", "quux", "魔界村", "VALORANT"]
(“魔界村” is a Japanese word for “Ghosts 'n Goblins”)
the response is as follows.
{
:data=>
[
{
:id=>"15619",
:name=>"Ghosts 'n Goblins",
:box_art_url=>"https://static-cdn.jtvnw.net/ttv-boxart/15619-{width}x{height}.jpg"
},
{
:id=>"29433",
:name=>"Dark Souls",
:box_art_url=>"https://static-cdn.jtvnw.net/ttv-boxart/29433-{width}x{height}.jpg"
},
{
:id=>"516575",
:name=>"VALORANT",
:box_art_url=>"https://static-cdn.jtvnw.net/ttv-boxart/516575-{width}x{height}.jpg"
}
]
}
- Does the order of the requested name and the order of the response do not correspond?
- Is there a way to identify the request that couldn’t be retrieved?
(in this case, “quux” could not be retrieved, so I want remove it from name array)
Is there any way other than checking with a single name request instead of a name array request?