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.
 

CharacterAffiliation.xml API missing data

First post
Author
Daimian Mercer
Deep Core Mining Inc.
Caldari State
#1 - 2014-10-14 14:56:09 UTC
The CharacterAffiliation API call probably wasn't intended to return corp/alliance lookups - but since there is no corp/alliance lookup via CSV ids I use this one. This saves hundreds of individual API calls since you can lookup 250 ids at a time.

The only issue is that when you lookup a character ID you get all info back, however if you lookup a corp ID you don't get Alliance info back. Below is an example where I lookup both a character ID and then the corp ID (notice alliance info isn't in both).
https://api.eveonline.com/eve/CharacterAffiliation.xml.aspx?ids=535205377,93265880

How about it CCP FoxFour?

Creator of Tripwire mapping tool - EVE-O thread

Twitter | daimian.mercer@gmail.com

CCP FoxFour
C C P
C C P Alliance
#2 - 2014-10-14 15:01:08 UTC
Daimian Mercer wrote:
The CharacterAffiliation API call probably wasn't intended to return corp/alliance lookups - but since there is no corp/alliance lookup via CSV ids I use this one. This saves hundreds of individual API calls since you can lookup 250 ids at a time.

The only issue is that when you lookup a character ID you get all info back, however if you lookup a corp ID you don't get Alliance info back. Below is an example where I lookup both a character ID and then the corp ID (notice alliance info isn't in both).
https://api.eveonline.com/eve/CharacterAffiliation.xml.aspx?ids=535205377,93265880

How about it CCP FoxFour?


That would need to be a new endpoint. One I will probably add at a later date.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Daimian Mercer
Deep Core Mining Inc.
Caldari State
#3 - 2014-10-14 15:08:17 UTC
That would be epic sir!

Looking for suggestions on it yet? I've got a few on my wishlist Big smile

Creator of Tripwire mapping tool - EVE-O thread

Twitter | daimian.mercer@gmail.com

Pro TIps
Doomheim
#4 - 2014-10-15 06:11:25 UTC
Well the forum ate my first draft, but IMO CharacterAffiliation returning any record at all when given a corporationID, instead of a characterID, is a bug. The result row actually indicates a characterName with that corp's name. Click on Daimian's example and it will be glaring.