Basically, you query an URL, parse the data it gave you, and that’s it
In a more precise way, considering what you want to do (the basic way):
- you have a form asking for an item ID (for the ease of explaining, i’ll take
tritanium) and region ID (
- submit form with these data
- the backend (php, python, whatever) will take these IDs, put them in the market URL, which will then become
- the backend call that URL, and get a json array in response of your call.
- it then loop over this data to render the page
- the user get the current order data for
In python, using
requests lib for example, it’ll be something like that for step 4-5
response = requests.get(`https://esi.tech.ccp.is/latest/markets/10000002/orders/?datasource=tranquility&order_type=all&type_id=34')
data = json.loads(response.content)
for row in data:
# print whatever you want from the order data
That’s pretty much it. If the user have only the name of regions / items, you’ll have to get the corresponding id’s (either using SDE or ESI endpoints for this).
If you are going to use python, you can either use the examples from here (eve dev blog) or you can use EsiPy which will make your use of ESI easier (imho btw). You can find an example with EsiPy using in the doc I linked.
Edit: As for the web part, for python you have several choices. The more common are Flask and Django (each with their pro/con).
For PHP, if you go for it, it’s the same: you will just have a php page that call ESI (using PHP Curl), parsing the response and giving it back to the user.