why I get error from get request when i try to get last coins

127 views Asked by At

when I try to make get request with https://pro-api.coinmarketcap.com/v2/cryptocurrency/info?CMC_PRO_API_KEY=key. I get an error msg - value must contain at least one of [id, symbol, slug, address] But from what I understand I can get 100 in a straight. I would love to understand where I am wrong, thanks.

1

There are 1 answers

2
accidentalcaveman On

Check the api docs: https://coinmarketcap.com/api/documentation/v1/#operation/getV2CryptocurrencyInfo

You simply need to add an additional query parameter ...info?CMC_PRO_API_KEY=key&id=1. You are not providing any information about what you want specific crypto info you want.