These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

AllianceList XML endpoint - cumbersome

First post
Author
Moshta Khadiija
Spai Finder
#1 - 2016-02-02 03:27:15 UTC
So I've been working on a project for the last week or two, and I decided to consume the AllianceList XML endpoint. According to the available documentation there are two versions - one with member corporations, one without. I pulled version 0, which contains members, and it's about 1.8mb in size, which is pretty beefy - definitely not something to be pulled often. At the moment I have a saved copy and I'm just serving that up to myself, parsing it on the fly and returning just portions of it (per alliance ID)..


  • Is there a better way to get listing of member corporations for specific alliances?
  • Is it possible to have another version added where we can query for specific alliances?
  • Is there perhaps someone else serving up something similar, but updating it from time to time?


Thanks!
Dragonaire
Here there be Dragons
#2 - 2016-02-02 03:46:55 UTC
As far as I know there's just the version with all the member corps included and yes it's generally one of the biggest API you have to deal with. The only other API that can be as big or bigger is the AssetList ones. Your best bet when working with any of the XML APIs is to use one of the exist libraries that help take care of the details instead of trying to roll something yourself. IMHO with some of these larger API is where Yapeal, which I wrote, shines as it takes care of extracting everything for you and puts them into one or more DB tables so you can run simple SQL queries to get to what you need instead of trying to work directly from the raw XML which is very verbose and harder to work with as you've noticed Blink

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

CCP Tellus
C C P
C C P Alliance
#3 - 2016-02-02 11:33:56 UTC
You can make the endpoint skip corporations and give you only alliances:

https://api.eveonline.com/eve/AllianceList.xml.aspx?version=1

CREST on the other hand allows you to query a list of alliances, and member corporations for an alliance one at a time:

https://public-crest.eveonline.com/alliances/
https://public-crest.eveonline.com/alliances/937872513/

Hope that helps.
Dragonaire
Here there be Dragons
#4 - 2016-02-02 23:43:55 UTC
Guess I never paid attention / notice the option to get alliances without member corp info as well. Might have to look at adding an option for that into Yapeal now that I know about it Smile

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.