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.
 

zKillboard's autocomplete is available to anyone

First post
Author
Squizz Caphinator
The Wormhole Police
#1 - 2016-01-21 21:06:27 UTC  |  Edited by: Squizz Caphinator
Examples:

https://zkillboard.com/autocomplete/jita/
https://zkillboard.com/autocomplete/squizz/

The response is in JSON. This will return a list of all entities that start with "jita" or "squizz". If you'd like to return only specific entity types please see post #7 below.

Feel free to implement it on your website, tool, or app. Don't worry about abusing it, the backend is powered by redis. If redis can't handle it then I've got bigger problems :)

This request is CORS friendly. If you find yourself having issues, add a slash to the end of your URL

Not CORS friendly (returns a redirect because ~squizzcode~):
https://zkillboard.com/autocomplete/jita

CORS friendly:
https://zkillboard.com/autocomplete/jita/

Various projects I enjoy putting my free time into:

https://zkillboard.com | https://evewho.com

CCP FoxFour
C C P
C C P Alliance
#2 - 2016-01-22 13:26:06 UTC
Not that it really needs to be said... but that is ******* awesome! Thank you for all you do Squizz! :)

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Julia Allrian
Federal Navy Academy
Gallente Federation
#3 - 2016-01-22 13:28:49 UTC
What exactly does it return? just evedb dump entries?

if it is everything in your database, why does https://zkillboard.com/autocomplete/julia not return my character?
CCP FoxFour
C C P
C C P Alliance
#4 - 2016-01-22 14:50:30 UTC
Julia Allrian wrote:
What exactly does it return? just evedb dump entries?

if it is everything in your database, why does https://zkillboard.com/autocomplete/julia not return my character?


If you search for "Julia Allrian" it does. I think the API just returns the first 15 results for the search query and there are far more than 15 Julia results.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Squizz Caphinator
The Wormhole Police
#5 - 2016-01-22 16:02:50 UTC
CCP Foxfour is absolutely right. It's a search feature. Not a database dump feature Shocked

Various projects I enjoy putting my free time into:

https://zkillboard.com | https://evewho.com

Louis Vitton
Viziam
Amarr Empire
#6 - 2016-01-22 19:34:55 UTC
Thanks Squizz this it grate!!!! Is there a way to filter the request further so that if you want to limit it to corporations and alliances you can?
Squizz Caphinator
The Wormhole Police
#7 - 2016-01-25 13:43:15 UTC  |  Edited by: Squizz Caphinator
Filtering has now been added!

Example: https://zkillboard.com/autocomplete/characterID/jita/

Format: https://zkillboard.com/autocomplete/type/search/

Type is one one of the following

  • typeID:flag (ships that can be flown)
  • regionID
  • solarSystemID
  • allianceID
  • allianceID:flag (alliance tickers)
  • corporationID
  • corporationID:flag (corporation tickers)
  • characterID
  • typeID (all item types, including ships not listed in typeID:flag)

Various projects I enjoy putting my free time into:

https://zkillboard.com | https://evewho.com

CCP Phantom
C C P
C C P Alliance
#8 - 2016-05-27 13:26:21 UTC
This thread has been unlocked after an automated lock due to inactivity.

CCP Phantom - Senior Community Developer

Squizz Caphinator
The Wormhole Police
#9 - 2016-05-27 13:31:07 UTC
CCP Phantom wrote:
This thread has been unlocked after an automated lock due to inactivity.


Thank you Phantom.

Bumping thread. CORS mention has been added and a workaround mentioned for those of you having issues.

CORS is a pain in the butt, however, it is a necessary evil Smile

Various projects I enjoy putting my free time into:

https://zkillboard.com | https://evewho.com

Squizz Caphinator
The Wormhole Police
#10 - 2016-08-06 02:58:29 UTC
http://i.imgur.com/RJ3iUE0.jpg

And bringing this thread to the top to keep it from locking again.

Various projects I enjoy putting my free time into:

https://zkillboard.com | https://evewho.com