Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

EVE API Guide: Difference between revisions

From EVE University Wiki
m In Browser: - Fixed formatting of return results
m Remove deprecated "newinfo=" parameter out of {{Deprecated}}.
 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Guides]]
{{Deprecated|[[EVE Swagger Interface]]}}
[[Category:Software]]
{{hatnote|For uptodate information of the EVE API look [http://wiki.eve-id.net/APIv2_Page_Index here] [https://neweden-dev.com/Main_Page or here]}}
{{Work_in_Progress}}
{{hatnote|CCPs new developer site can be found [https://developers.eveonline.com/ here]}}


This is a quick guide to using the EVE API in your own applications, scripts, and utilities.
This is a quick guide to using the EVE API in your own applications, scripts, and utilities.
Line 18: Line 18:
=== Security ===
=== Security ===


In order to prevent unauthorised access to private character/corporation data, the API uses an ''API Key''.  This is a randomly-generated string that essentially works as a password for API calls.  Account owners generate their own API keys through [http://www.eveonline.com/api/ this page].  That page also informs you of your unique numeric user ID, which is used in API calls instead of your username.  This allows a degree of trust with third-party applications, in that they neither need to know your login name or password.
In order to prevent unauthorised access to private character/corporation data, the API uses an ''API Key''.  This is a randomly-generated string that essentially works as a password for API calls.  Account owners generate their own API keys through [https://community.eveonline.com/support/api-key/ this page].  That page also informs you of your unique numeric user ID, which is used in API calls instead of your username.  This allows a degree of trust with third-party applications, in that they neither need to know your login name or password.


Note that at time of writing, a new API Key system allowing more granular access permissions was in development, and is discussed [http://www.eveonline.com/devblog.asp?a=blog&bid=912 here].
Note that at time of writing, a new API Key system allowing more granular access permissions was in development, and is discussed [https://www.eveonline.com/devblog.asp?a=blog&bid=912 here].


== API Functions ==
== API Functions ==
The available API functions are documented at http://wiki.eveonline.com/en/wiki/EVE_API_Functions


You may also find http://wiki.eve-id.net/APIv2_Page_Index to be a useful third-party reference.
You may also find http://wiki.eve-id.net/APIv2_Page_Index to be a useful third-party reference.
Line 32: Line 30:
=== In Browser ===
=== In Browser ===


They way to acces your account or character information using a web brower, is with the API URLs. CCP is changing the API Keys acces format, so the new way to acces is as follows. (This will show you how to acces, but not how to use it atm)
They way to access your account or character information using a web browser, is with the API URLs. CCP is changing the API Keys access format, so the new way to access is as follows. (This will show you how to access, but not how to use it at the moment)


You will need first an API Key with the proper acces mask, it depends on what information you want to acces to. For example, to acces your Account Information use the next URL (Copy and paste, change the XXXXX fields with your information). You need the keyID and vCode.
You will need first an API Key with the proper access mask, it depends on what information you want to access to. For example, to access your Account Information use the next URL (Copy and paste, change the XXXXX fields with your information). You need the keyID and vCode.


  https://api.eveonline.com/account/characters.xml.aspx?keyID=XXXXXX&vCode=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  https://api.eveonline.com/account/characters.xml.aspx?keyID=XXXXXX&vCode=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Line 53: Line 51:




Now if you want to acces to you Assets List, then use the follow URL.You can get your characterID using the previous example.
Now if you want to access to you Assets List, then use the follow URL.You can get your characterID using the previous example.


  https://api.eveonline.com/char/AssetList.xml.aspx?keyID=XXXXXX&vCode=XXXXXXXXXXXXXXXXXXX&characterID=XXXXXXX
  https://api.eveonline.com/char/AssetList.xml.aspx?keyID=XXXXXX&vCode=XXXXXXXXXXXXXXXXXXX&characterID=XXXXXXX
Line 77: Line 75:
=== PHP ===
=== PHP ===


A number of third-party libraries are available for PHP programmers, which will do the bulk of the work for you.  For the purposes of these examples, we will be using [http://sourceforge.net/projects/eve-apiphp/ Ale] - make sure you have downloaded this and placed a copy on your webserver.
A number of third-party libraries are available for PHP programmers, which will do the bulk of the work for you.  For the purposes of these examples, we will be using [https://sourceforge.net/projects/eve-apiphp/ Ale] - make sure you have downloaded this and placed a copy on your webserver.


=== C# ===
=== C# ===
Line 90: Line 88:
=== Python ===
=== Python ===


Get [https://github.com/ntt/eveapi EveApi] from here. The [https://github.com/ntt/eveapi/blob/master/apitest.py apitest] file also seerves as quite comprehensive documentation on how to use the library. This library is open source and available under the [http://en.wikipedia.org/wiki/MIT_License MIT License].
Get [https://github.com/ntt/eveapi EveApi] from here. The [https://github.com/ntt/eveapi/blob/master/apitest.py apitest] file also serves as quite comprehensive documentation on how to use the library. This library is open source and available under the [https://en.wikipedia.org/wiki/MIT_License MIT License].


== Something A Bit More Complicated ==
== Something A Bit More Complicated ==
Line 97: Line 95:


http://wiki.eve-id.net
http://wiki.eve-id.net
[[Category:API]]