Getting UUID's by providing only the crypto coins name/ticker

Hello,

My question is as follows:
I’m building a Discord bot using the Discord.JS module, and using NodeJS I’m trying to add a simple crypto-price feature to my bot.

For now, I’m using the following code:
https://sourceb.in/BjGNXaFzXa

So basically, you have to provide the UUID of the desired crypto coin to request information, but I want my users to be able to do (for example) !price bitcoin or !price btc, but this requires the command to be like !price Qwsogvtv82FCd.

How do I resolve this issue?

Thanks in advance.

1 Like

Hi!

This endpoint should be helpful for you: Find Coins - Documentation | Coinranking API
It allows you to search on a name or symbol, and it also finds partial matches, like ‘Bitcoi’.

And feel free to share your bot when it’s finished, we love to see what devs are building with our API.

Ahh thanks alot for your reply!

I’ll surly share my bot once it’s finished and published, just a few more days and it should be done!
You can add me on Discord if you have any more questions about the bot!
Realify#0001

Thanks!

1 Like