You don’t have permissions to access this endpoint

Hi there,

I used Free Plan and with an API key, I was receiving the correct response until Friday. but in recent 2days I wanted to use these services and received an error. the services are:

https://api.nomics.com/v1/exchange-rates?key=***

https://api.nomics.com/v1/exchange-rates/history?key=***&currency=EUR&start=2018-04-14T00%3A00%3A00Z&end=2018-05-14T00%3A00%3A00Z

No matter what API endpoint I try I get: You don’t have permissions to access this endpoint. Check your API key and our documentation for details.

Can someone please help me out?

1 Like

Thank you for the note. These endpoints are no longer available with the free plan. Please note that the currencies ticker endpoint is still free: API Documentation | Nomics

hi @Arezoo_Yazdani

the correct call for the ‘new free’ ticker endpoint would be:

=Importdata(“https://api.nomics.com/v1/currencies/ticker?key=YOURKEY&Interval=1d,30d&per-page=100&page=1”)

However, this will not work since it’s a JSON format and they offer no format function on this endpoint. You will only receive 100 results per page or you can customize your results.

In order to read JSON you have to go to github and get a free script to import the JSON data as csv (I used this: import_json_appsscript.js · GitHub)

Then you load this function into your Google App Script (Extension > App Script). Save it, and run.

Now you are able to call a new function in your cells: =importJSON()

=ImportJSON(“https://api.nomics.com/v1/currencies/ticker?key=YOURKEY&Interval=1d,30d&per-page=100&page=1”) and it works for ONLY the 1st 100 tickers.

If you want only custom tickers (BTC, ETH for example), change to:

=ImportJSON(“https://api.nomics.com/v1/currencies/ticker?key=YOUR_KEY&ids=BTC,ETH&interval=1d,30d&per-page=100&page=1”)

Then you call the values where you want them to show with a vlookup() function.

Hope this helps!

1 Like

So sad it is now i needed it to complete my development work it is no longer available.
I suggest it is made available once again because it would enable lots of developers to use your api and then, your services.