FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.35k stars 12.19k forks source link

Feature request: API to search icons #14211

Open arunkumar413 opened 5 years ago

arunkumar413 commented 5 years ago

Describe the problem you'd like to see solved or task you'd like to see made easier

I'd like an API for searching, querying icons by category. This would help select the icons for any third party apps that use svg icons for graphic apps.

Is this in relation to an existing part of Font Awesome or something new?

This is in relation to existing part

Icons API

What is 1 thing that we can do when building this feature that will guarantee that it is awesome?

Build an API

Why would other Font Awesome users care about this?

It would make easy selecting the icons

On a scale of 1 (sometime in the future) to 10 (absolutely right now), how soon would you recommend we make this feature?

Feature request checklist

arunkumar413 commented 5 years ago

If API isn't feasible to build you may build an official icon picker like this one: https://github.com/farbelous/fontawesome-iconpicker

MintyMods commented 4 years ago

I would also like to use an API to offer a lookup of icons based on the descriptions given to the current search on the FontAwesome site. My requirement would be for the PRO version.

@arunkumar413 the links to that demo are down (404)

TommyBeaton commented 4 years ago

Hey guys, I'm currently working on an API which will return a JSON list of searched icons, I'll keep you guys updated with my progress, hoping to be done in a couple of weeks :)

The initial version will be for free icons only as that all I need it for on my own project, I'll get around to adding all icons in a later version.

amitkoth commented 3 years ago

Any update on this @TommyBeaton ^ ?

TommyBeaton commented 3 years ago

Hi guys, this very much got lost amongst university work, I'll just need to update the list to support the new font awesome icons and I'll have it hosted afterwards. Should've spent some time in lockdown on this aha 😅

Will update with more details soon.

willfeerr commented 3 years ago

i've done something like that and using a free azure service, so, if someone want to me to mantain, i'll need money or just dont abuse.

https://icon-leets.azurewebsites.net/api/Icons

skip take like

https://icon-leets.azurewebsites.net/api/Icons?skip=0&take=10 <---- this is default, params are not needle

and search like that

https://icon-leets.azurewebsites.net/api/Icons?search=instagram // {partial term or partial name} like "instagram" or "yout"

is fully on code, dont use DB

climentjoan commented 3 years ago

Any progress of that? I'm also interested, I haven't found a picker who has all the free and pro icons available

TommyBeaton commented 3 years ago

After 4 months and two more lockdowns im finally getting around to this, just populating my database with the icons now. Then I just need to write the api - will do that over the coming weeks :).

Any thoughts on what the domain should be called? I was thinking fa-api.com :)

ghost commented 3 years ago

After 4 months and two more lockdowns im finally getting around to this, just populating my database with the icons now. Then I just need to write the api - will do that over the coming weeks :).

Any thoughts on what the domain should be called? I was thinking fa-api.com :)

Would be very useful! That domain sounds good.