<p>Here is an example that will give you the simple price:</p>

<p><code>https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&amp;vs_currencies=usd</code></p>

<p>The page lets you try out the API by filling in the form fields. You can get the list of coin ids from:</p>

<p><code>https://api.coingecko.com/api/v3/coins/list</code></p>

<p>and the compare currencies from:</p>

<p><code>https://api.coingecko.com/api/v3/simple/supported_vs_currencies</code></p>

CC BY-SA 4.0
2020-01-31T16:36:36.430Z
Link only answers are discouraged because they tend to be broken quickly.
Claris
CC BY-SA 4.0
2020-01-31T16:41:07.213Z
I changed the answer to remove links.
ohmyfromage
CC BY-SA 4.0
2020-01-31T12:37:44.600Z
2020-01-31T16:40:49.990Z
2020-01-31T16:40:49.990Z
ohmyfromage
<p>I don't understand their API: <a href="https://www.coingecko.com/en/api" rel="nofollow noreferrer">https://www.coingecko.com/en/api</a></p>

<p>It says:</p>

<blockquote>
  <p>/simple/price    Get the current price of any cryptocurrencies in any
  other supported currencies that you need.</p>
</blockquote>

<p>But then you click it and it doesn't spit out any JSON at all. Instead, it shows a number of id fields and other things. I can't make it open the actual URL for displaying the Bitcoin price.</p>

<bitcoin-core><api><documentation>
How do I fetch the price data from CoinGecko?
Mark Adams
# How do I fetch the price data from CoinGecko?

(Asked by: username_0 on 2020-01-31)

I don't understand their API: <https://www.coingecko.com/en/api>

It says:

> /simple/price Get the current price of any cryptocurrencies in any
> other supported currencies that you need.

But then you click it and it doesn't spit out any JSON at all. Instead, it shows a number of id fields and other things. I can't make it open the actual URL for displaying the Bitcoin price.

**Tags:** bitcoin-core, api, documentation


---

## 1 answers

### Answer by username_1 on 2020-01-31. Score: 3

Here is an example that will give you the simple price:

`https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd`

The page lets you try out the API by filling in the form fields. You can get the list of coin ids from:

`https://api.coingecko.com/api/v3/coins/list`

and the compare currencies from:

`https://api.coingecko.com/api/v3/simple/supported_vs_currencies`

> **Comments:**
> **username_2**: Link only answers are discouraged because they tend to be broken quickly.  
> **username_1**: I changed the answer to remove links.  

---

