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.
 

Searching on character/corporation/alliance names?

First post
Author
Olixia Castitatis
Beyond Divinity Inc
Shadow Cartel
#1 - 2014-12-13 00:34:56 UTC
HI,

In my project I would like to be able to search on character, corporation or alliance names and return the ID of that entity. For instance, I'd like the user to be able to type in:

Olix


and have returned a list of characters whose name starts with 'Olix', and similar for corporation and alliance names.

If this is not possible, I'd like to be able to look up corporation and alliance IDs from the full name of that corporation or alliance. For instance, I'd like to be able to resolve

Shadow Cartel


to its ID, '495729389'. I can't seem to see how to do this at the moment - the XML API has endpoints to convert character names to character Ids and vice versa, but doesn't appear to have this for corporations/alliances.

I think it would be possible to develop a (highly inefficient) alliance name search using the CREST alliances path:

[url]https://public-crest.eveonline.com/alliances/[/url]

and then paging through all the results until a match is found. However, the equivalent path for corporations,

[url]https://public-crest.eveonline.com/corporations/[/url]

is an invalid route.

Any ideas?
Dragonaire
Here there be Dragons
#2 - 2014-12-13 01:50:21 UTC
Might want to look at the https://neweden-dev.com/EVE/CharacterID again as it doesn't just do characters but the other things you asked about.

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

CCP FoxFour
C C P
C C P Alliance
#3 - 2014-12-13 10:29:30 UTC
https://api.eveonline.com/eve/OwnerID.xml.aspx?names=Olix

That will also tell you WHAT the search result is. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Olixia Castitatis
Beyond Divinity Inc
Shadow Cartel
#4 - 2014-12-13 13:29:50 UTC
Oh, awesome. I totally missed that. Thanks.