How to resolve multiple location IDs at once?

Hi, I am trying to resolve all of the location IDs sent back from esi when I use the "[/characters/{character_id}/orders/]"endpoint.

How can I send all the location IDs in one request to the “[/universe/structures/{structure_id}/]” endpoint?

Thanks

Assuming all of the IDs you want to resolve are structures; you can’t. Ideally you should probably cache the response so that you wouldn’t need to lookup EVERY ID, EVERY time.

I just ran into the issue of some not being structures, so I am working that out.

I was wondering how I would cut down on so many requests, and it looks like caching is my answer.

Thanks!

https://docs.esi.evetech.net/docs/asset_location_id.html might be helpful.

For stations you would be able to use https://esi.evetech.net/ui/#/Universe/post_universe_names.

You da man Blacksmoke!

Thanks for all the quick replies!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.