Swagger NPC Corp Faction Link-Up

I suspect I’m going to feel like an idiot when I find out the answer to this question, but here goes anyway: I’m working on shifting an Excel workbook I had from the old API system to the new Swagger interface… So far so good, except for the fact that I can’t for the life of me see an endpoint that will give me:

  1. The faction of an NPC corporation (e.g., if I give it 1000033 for the Caldari Business Tribunal, I want it to come back with 500001 / Caldari State).

  2. The category that a skill belongs to. E.g, if I give it 33399 / Infomorph Synchronizing, I want it to return Neural Enhancement (or the ID thereof).

  1. https://esi.tech.ccp.is/v2/universe/factions/ Can work in some cases, however you should be able to use /corporations/{corporation_id}/ but I think there is a bug where it doesn’t return faction_id for NPC corps. I submitted a bug for it on ESI Issues (https://github.com/ccpgames/esi-issues/issues/765).

  2. a Lookup the item using https://esi.tech.ccp.is/v2/universe/types/33399/

  3. b lookup the item’s group_id using https://esi.tech.ccp.is/v1/universe/groups/1220/

That’s awesome, thanks :slight_smile:

I’m glad it’s not just me re: the NPC Corp / Faction ID thing.

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