EVE ESI API Python For Beginners

Hi All, Started playing eve again after some time away and thought id get into manufacturing, checked out some of the spreadsheets that people have created and thought they were cool but id rather build a basic application which I can import the data and mess around with it and create my own interfaces etc.

Now I have used python before to create basic applications and dealing with data etc, but for the life of me I don’t understand most of these tutorial or the very limited few for how to pull data from the eve into my application. Can someone point me to a really straightforward tutorial that will get me going on the basics?

Kindest Regards,

April Meadows

2 Likes

Developer here. I’ve done a bunch of work with REST APIs, but I’m pretty new to EVE and have only played for a week. Exploring some of the apps other users have made got my curious however, so I started poking around a little to see what’s available.

Unfortunately I can’t link you to a tutorial (perhaps I’ll make one if no one else did that already), but so far I have to say that the available documentation is certainly a bit… lacking.

What I’ve found out in about 5 minutes is this:

The API is built using Swagger (ESI stands for “EVE Swagger Interface”). Swagger is a tool for building programming language agnostic API interfaces. This means there is a metadata document, which describes all available endpoints in a machine readable format, and can be used to generate an API client for the language of your choice (meaning you will mostly not have to make HTTP requests yourself, but instead you can use a native call interface in your preferred language).

You will need to create an API key here, and then use that with the Swagger Python interface to access the API. The list of endpoints I’ve linked above will give you a rough idea about what data you can access and in what format it will come.

That’s about as much as I could learn in 5 minutes, hopefully someone with more experience can chime in with a more detailed guide. Otherwise, I hope that was at least somewhat helpful in pointing you in the right direction.

Good luck and fly safe o7

4 Likes

In python, you can use requests. Here is a simple example: https://pastebin.com/M9wn8wt3
You can replace the URL with any from the API endpoints Hiiro posted.

Here is a more complex example where you enter a solar system name and the industry cost indicies for that system are returned: https://pastebin.com/S5eeKZ5G

1 Like

Topic moved to Third Party Developers

Thank you very much for the reply Hiiro, i forgot to mention that the main issue im having is getting past the authentication, i’ve followed some of the tutorials and can get small aspects of it working but never get it to automatically update the tokens, Have you seen any in depth tutorials for this?

Welcome developer!

Always great to see more people building apps for Eve, especially in Python!

I’ve have been developing Eve apps for a couple years and I would advise to use one of the existing libraries for interacting with ESI instead of trying to build it yourself. That way you can focus on building your actual app.

There are two libraries for Python that I know of:

  • EsiPy
  • DjangoEsi

If you are building a Django app you want to use DjangoEsi, otherwise EsiPy.

More details incl. a full list of most Eve apps and Eve related dev tools on this repo.

Disclaimer: I am part of the development team for DjangoEsi .

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