How to get a list of all Items and their IDs

Hey There!
As title. I’m trying to construct a list of all Items and their relative IDs, in a dictionary-fashion {ID:“Name”}.

The thing is, i did not found anything on the web and was wondering about how to do this. The very one method i was thinking is about fetching an N amount of items from the API with some loops, trying an ID one by one (starting at 1, and i.e. if ID=23 does not exists, it will iterate to the next one until a valid one is found etc) then parsing the JSON of the found and valid item, fetching the name by some JSON-String manipulation and building the dictionary.

But it is possible that there isn’t a more “efficient and fast” way to do this? Hoping for a response from you guys!

Thank you all.

You can see my reply here for a more efficient way of fetching all items using the item search endpoint.

1 Like

That’s truly amazing. Didn’t know it was possible to retrieve multiple query result in a single JSON with a request endpoint call. That’s fantastic!

Thank you so much for your help! :smiley: