# Swagger NPC Corp Faction Link-Up

**URL:** <https://forums.eveonline.com/t/swagger-npc-corp-faction-link-up/57540>\
**Category:** Third Party Developers\
**Created:** [February 15, 2018, 11:31pm UTC](https://forums.eveonline.com/t/swagger-npc-corp-faction-link-up/57540 "2018-02-15T23:31:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madullier\_Rotineque](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/madullier_rotineque/32/253232_2.png) [@Madullier\_Rotineque](https://forums.eveonline.com/u/Madullier_Rotineque)\
**Post date:** [February 15, 2018, 11:31pm UTC](https://forums.eveonline.com/t/swagger-npc-corp-faction-link-up/57540/1 "2018-02-15T23:31:50Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [February 15, 2018, 11:46pm UTC](https://forums.eveonline.com/t/swagger-npc-corp-faction-link-up/57540/2 "2018-02-15T23:46:11Z")

</div>

1. [https://esi.tech.ccp.is/v2/universe/factions/](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](https://github.com/ccpgames/esi-issues/issues/765)).

2. a Lookup the item using [https://esi.tech.ccp.is/v2/universe/types/33399/](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/](https://esi.tech.ccp.is/v1/universe/groups/1220/)

---

<div class="post-metadata">

**Author:** ![Madullier\_Rotineque](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/madullier_rotineque/32/253232_2.png) [@Madullier\_Rotineque](https://forums.eveonline.com/u/Madullier_Rotineque)\
**Post date:** [February 16, 2018, 7:18am UTC](https://forums.eveonline.com/t/swagger-npc-corp-faction-link-up/57540/3 "2018-02-16T07:18:25Z")

</div>

That’s awesome, thanks 🙂

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [May 17, 2018, 7:18am UTC](https://forums.eveonline.com/t/swagger-npc-corp-faction-link-up/57540/4 "2018-05-17T07:18:28Z")

</div>

Closed on May 17, 2018, 7:18am UTC

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