/universe/structures/{structure_id}/
will return something like:
{
"name": "V-3YG7 VI - The Capital",
"owner_id": 109299958,
"solar_system_id": 30000142
}
almost all other endpoints will return its ID, like /universe/systems/{system_id}/
has system_id
and /universe/regions/{region_id}/
has region_id, etc
1) structure_id is missing
Many people making EVE resource websites will want to display a structure icon next to the structure.
(square for NPC station, square with stick for astrohut, square with 2 sticks for raitaru, etc)
This is not possible without knowing the structure type.
This will go very well with the upcoming image server update, which we all have been wanting for quite some time.
also, it appears /universe/structures/
only returns a list of citadels instead of a list of structures including npc stations.
my guess is that people are expected to know about /universe/stations/{station_id}/
and have to use that as well, which is quite inconvenient because it appears /universe/stations/
does not actually exist.
3) /universe/stations/ does not exist
additionally, things like location_id specified in results from things like /markets/structures/{structure_id}/
donât actually specify if it is a âstructureâ or âstationâ and since there is no real ESI documentation there is no way to know which to use.
if this is true, it may make a lot of sense to document that somewhere. 4) it may also make a lot of sense to add another field such as âisNPCstationâ or similarly named.
the citadel IDs being returned are similar to 1028540268160.
the swagger API lists most ID inputs as int32, and https://esi.evetech.net/ui/ will return errors if you attempt to query citadel information in most places:
âerrorâ: âfailed to coerce value â1028540268160â into type integer (format: int32), âstation_idâ is requiredâ
(additional note: personally not a fan of the new /ui/, and now we cant use /latest/ anymore to bypass it)
5) if your API is going to send int64 results, you should not be using int32 inputs
Iâll go ahead and address some of your concerns:
This is expected. The other endpoints you mentioned are actually the ones more likely to change. Itâs a design decision to remove unnecessary data, since you already have it from the request url.
At this point ALL stations are NPC. All player owned ones are now âstructuresâ.
Player structure IDS are Int64, NPC stations are Int32. So of course you canât lookup a station using a structure ID. You should be using /universe/structures/{structure_id}/ for structure information not /universe/stations/{station_id}/.
This is available in /corporations/{corporation_id}/structures/.