Difference between revisions of "How to get ID"

From EVE University Wiki
Jump to: navigation, search
m (→‎In game links: Fix typo.)
m (Rewording. Add link.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
In EVE Online all characters, structures, corporations, alliances, item types and other things have an unique identifier (ID). There are multiple ways to find these identifiers.
+
In EVE Online all characters, structures, corporations, alliances, item types, and other things have a unique identifier (ID). There are multiple ways to find these identifiers.
  
== Basic ESI API ==
+
== EVE Swagger Interface ==
ESI API can be used to easily find IDs for agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Using ESI API for this simple task requires no programming knowledge as it can be done though the browser.
+
[[EVE Swagger Interface]] (ESI) can be used to easily find IDs for agents, alliances, characters, constellations, corporations, factions, inventory_types, regions, stations, and systems. Using ESI API for this simple task requires no programming knowledge as it can be done through the browser.
  
 
# Go to https://esi.evetech.net/ui/.
 
# Go to https://esi.evetech.net/ui/.
 
# Navigate to /universe/ids/.
 
# Navigate to /universe/ids/.
 
# Click the "Try it out" button.
 
# Click the "Try it out" button.
# In the large text field input the name of the thing you are looking for in quote marks surrounded by brackets. If you want to search for multiple things at once multiple names can be palced in brackets separated by commas. The names must be typed exactly right.
+
# In the large text field input the name of the thing you are looking for in quote marks surrounded by brackets. If you want to search for multiple things at once multiple names can be placed in brackets separated by commas. The names must be typed exactly right.
 
# Press "Execute".
 
# Press "Execute".
  
For example if you want to search for Rifter and Jaguar your search string would be `["rifter", "Jaguar"]`.<br>
+
For example, if you want to search for Rifter and Jaguar your search string would be `["rifter", "Jaguar"]`.
The response from API would be
 
  
 +
The response from ESI would be
 
<code>
 
<code>
 
   {
 
   {
Line 38: Line 38:
 
</code>
 
</code>
  
From this you would see that the ID for the ship "Rifter" is 587 and for ship "Jaguar" is 11400. It also tells us that there is a player named "Rifter" with id 187399875 and a player named "Jaguar" with id 300556952.
+
From this, you would see that the ID for the ship "Rifter" is 587 and for ship "Jaguar" is 11400. It also tells us that there is a player named "Rifter" with id 187399875 and a player named "Jaguar" with id 300556952.
  
 
== In game links ==
 
== In game links ==
 +
This method works for acquiring IDs of all the things you can link to in chat. This includes specific deployed structures, contracts, rats, items, players and more.
  
This method works for acquiring IDs of all the things that you can link to in chat. This includes specific deployed structures, contracts, rats, items, players and more.
+
# Generate link ingame. Usually, this is done by dragging the image of the thing from the info window into the chat input.
 
+
# Select the link ({{button|ctrl}} - {{button|A}}), right click the chat input, and select "Copy Selected With Formatting".
# Generate link ingame. Usually this is done by dragging the image of the thing from the info window into the chat input.
 
# Select the link (ctrl-A), right click the chat input and select "Copy Selected With Formatting".
 
 
# Paste to out of game text editor.
 
# Paste to out of game text editor.
 
# Grab the ID
 
# Grab the ID
  
For example if you do the first three steps from above to Gravity Well citadel you will get the following:<br>
+
For example, if you do the first three steps from above to Gravity Well citadel you will get the following:<br>
:<code><nowiki><font size="13" color="#ffbfbfbf"></font><font size="13" color="#ffd98d00"><a href="showinfo:35833//1021628175407">Boystin - Gravity Well (The Graduates)</a></font><font size="13" color="#ffbfbfbf"> </font></nowiki></code>
+
: <code><nowiki><font size="13" color="#ffbfbfbf"></font><font size="13" color="#ffd98d00"><a href="showinfo:35833//1021628175407">Boystin - Gravity Well (The Graduates)</a></font><font size="13" color="#ffbfbfbf"> </font></nowiki></code>
From this you can get two IDs. 35833 is the ID for Fortizar item type while 1021628175407 is the ID for this specific deployed structure.
+
From this, you can get two IDs. 35833 is the ID for Fortizar item type while 1021628175407 is the ID for this specific deployed structure.
  
 
The link very often contains two IDs. One ID for the type of the thing and another ID for this specific instance of the thing.
 
The link very often contains two IDs. One ID for the type of the thing and another ID for this specific instance of the thing.
  
 
== Third party sites ==
 
== Third party sites ==
 
 
Many third party EVE sites will include the ID in their url when you look up info on them.
 
Many third party EVE sites will include the ID in their url when you look up info on them.
  
Line 66: Line 64:
 
* https://evemarketer.com/types/44992 - The ID of this item is 44992.
 
* https://evemarketer.com/types/44992 - The ID of this item is 44992.
  
Fuzzwork also has an simple API for finding IDs for items https://www.fuzzwork.co.uk/tools/api-typename-to-typeid/
+
Fuzzwork also has a simple API for finding IDs for items https://www.fuzzwork.co.uk/tools/api-typename-to-typeid/
  
 
== Scripts ==
 
== Scripts ==
 +
With basic programming skills, you can make scripts that find and display IDs for various exotic things like dogma effects, graphics effects, bloodlines, market categories, and others. This is done using multiple [[ESI]] endpoints or with the help of static data export. How this is done is beyond scope of this article and is left as an exercise to the reader.
  
With basic programming skills you can make scripts that find and display IDs for various exotic things like dogma effects, graphics effects, bloodlines, market categories and others. This is done using multiple ESI API endpoints or with help of static data export. How this is done is beyond scope of this article and is left as an excercise to the reader.
+
[[Category:API]]

Latest revision as of 13:01, 13 August 2023

In EVE Online all characters, structures, corporations, alliances, item types, and other things have a unique identifier (ID). There are multiple ways to find these identifiers.

EVE Swagger Interface

EVE Swagger Interface (ESI) can be used to easily find IDs for agents, alliances, characters, constellations, corporations, factions, inventory_types, regions, stations, and systems. Using ESI API for this simple task requires no programming knowledge as it can be done through the browser.

  1. Go to https://esi.evetech.net/ui/.
  2. Navigate to /universe/ids/.
  3. Click the "Try it out" button.
  4. In the large text field input the name of the thing you are looking for in quote marks surrounded by brackets. If you want to search for multiple things at once multiple names can be placed in brackets separated by commas. The names must be typed exactly right.
  5. Press "Execute".

For example, if you want to search for Rifter and Jaguar your search string would be `["rifter", "Jaguar"]`.

The response from ESI would be

 {
 "characters": [
   {
     "id": 187399875,
     "name": "Rifter"
   },
   {
     "id": 300556952,
     "name": "Jaguar"
   }
 ],
 "inventory_types": [
   {
     "id": 587,
     "name": "Rifter"
   },
   {
     "id": 11400,
     "name": "Jaguar"
   }
 ]
 }

From this, you would see that the ID for the ship "Rifter" is 587 and for ship "Jaguar" is 11400. It also tells us that there is a player named "Rifter" with id 187399875 and a player named "Jaguar" with id 300556952.

In game links

This method works for acquiring IDs of all the things you can link to in chat. This includes specific deployed structures, contracts, rats, items, players and more.

  1. Generate link ingame. Usually, this is done by dragging the image of the thing from the info window into the chat input.
  2. Select the link (ctrl - A), right click the chat input, and select "Copy Selected With Formatting".
  3. Paste to out of game text editor.
  4. Grab the ID

For example, if you do the first three steps from above to Gravity Well citadel you will get the following:

<font size="13" color="#ffbfbfbf"></font><font size="13" color="#ffd98d00"><a href="showinfo:35833//1021628175407">Boystin - Gravity Well (The Graduates)</a></font><font size="13" color="#ffbfbfbf"> </font>

From this, you can get two IDs. 35833 is the ID for Fortizar item type while 1021628175407 is the ID for this specific deployed structure.

The link very often contains two IDs. One ID for the type of the thing and another ID for this specific instance of the thing.

Third party sites

Many third party EVE sites will include the ID in their url when you look up info on them.

Some examples:

Fuzzwork also has a simple API for finding IDs for items https://www.fuzzwork.co.uk/tools/api-typename-to-typeid/

Scripts

With basic programming skills, you can make scripts that find and display IDs for various exotic things like dogma effects, graphics effects, bloodlines, market categories, and others. This is done using multiple ESI endpoints or with the help of static data export. How this is done is beyond scope of this article and is left as an exercise to the reader.