title: Is there a workaround to get past CoinGecko API security check?
body: <p>I was running my code at work, and it just went smoothly, but on a different network (Home WiFi), I keep receiving <strong>403</strong> error when accessing <a href="https://www.coingecko.com/api/documentations/v3" rel="nofollow noreferrer">CoinGecko V3 API</a>. It can be observed that accessing the API on a private browser (to test it) will prompt a security check (hCaptcha) to be able to continue.</p>
  <p><code>https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&amp;days=30</code></p>
  <pre class="lang-py prettyprint-override"><code>with requests.get(url) as source:
      print(source.status_code)
  </code></pre>
  <p>I also tried <a href="https://github.com/man-c/pycoingecko" rel="nofollow noreferrer">pycoingecko</a> (for checking) and still returns a similar error:</p>
  <pre class="lang-sh prettyprint-override"><code>&gt;&gt;&gt; from pycoingecko import CoinGeckoAPI
  &gt;&gt;&gt; cg = CoinGeckoAPI()
  &gt;&gt;&gt; cg.get_coin_market_chart_by_id(id='bitcoin', vs_currency='usd', days=1)
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;C:\Users\...\Python39\lib\site-packages\pycoingecko\utils.py&quot;, line 12, in input_args
      return func(*args, **kwargs)
    File &quot;C:\Users\...\Python39\lib\site-packages\pycoingecko\api.py&quot;, line 169, in get_coin_market_chart_by_id
      return self.__request(api_url)
    File &quot;C:\Users\...\Python39\lib\site-packages\pycoingecko\api.py&quot;, line 29, in __request
      response.raise_for_status()
    File &quot;C:\Users\...\Python39\lib\site-packages\requests\models.py&quot;, line 941, in raise_for_status
      raise HTTPError(http_error_msg, response=self)
  requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&amp;days=1
  </code></pre>
  <p>I guess Cloudflare is suspecting my network activity, but of course I am using Python scripts to access the API, obviously. Is there a workaround to get past the security check?</p>