Svafa.3098:

Hi everyone

I’m really sorry in advance, if my question is dumb. But i’m currently trying to use the v2 API and i’d like to search an item by is name and not is ID.

Is there a way to do so in the official API, i don’t want to use a third party project or anything ?

I’d like have a searchbox in my app, in order to search the item on the API. I’ve searched in this forum but latests informations on the subject were 2 years ago, i’ve searched also on wiki, and changelog, but changelog file was also updated 2 or 3 years ago.

Thanks for answering, and one more time really sorry for disturbing you.

Mystic.5934:

sorry, you can’t search the gw2 api for items by name.
what you can do is maintain your own copy of all the items, even if it’s just a directory of name -> id. could be done with a database, or files, or creating a big array in your code (then manually update it every patch).
be careful, some items have the same name as others

Svafa.3098:

Thanks a lot, I feared this, but yeah i’ll make an automatic request loading all the names and id and thanks for the tips on the items with the same name