<p>You <a href="https://github.com/blockchain/api-v1-client-python#request-limits-and-api-keys" rel="nofollow noreferrer">need to get an "api_code"</a>, then use that when making calls.</p>

<p>You can use their official <a href="https://github.com/blockchain/api-v1-client-python/blob/master/docs/blockexplorer.md" rel="nofollow noreferrer">python client</a>.</p>

CC BY-SA 4.0
2019-05-12T20:24:14.537Z
Hi Jonathan...I have the api key (i assume it s the same as api code you re referring to). 

I have been using the python client and getting the data I want but the issue is that for a certain wallet address I can get only 50 transactions of let s say 800.

My question is how can I incorporate the API key in the python script and download all of the transactions instead of just 50.
Andreas
CC BY-SA 4.0
2019-05-18T17:45:58.193Z
@AndreasManousakis It looks like you can just add the `api_code` as a parameter: https://github.com/blockchain/api-v1-client-python/blob/52ea562f824f04303e75239364e06722bec8620f/blockchain/blockexplorer.py#L11
Jonathan Cross
CC BY-SA 4.0
2019-05-10T19:32:10.413Z
2019-05-10T19:32:10.413Z
Jonathan Cross
<p>I got an API key from blockchain.info to bypass the request limiter, but I don't know how to use it and I can't find any relevant info online.</p>



<pre><code> url = "https://blockchain.info/rawblock/" + str(s)
        usock = urlopen(url)
        data = usock.read()
</code></pre>

<p>where variable s is the block height.</p>

<p>As the python blockchain.info API states:</p>

<p><a href="https://blockchain.info/rawaddr/" rel="nofollow noreferrer">https://blockchain.info/rawaddr/</a>$bitcoin_address
Address can be base58 or hash160
Optional limit parameter to show n transactions e.g. &amp;limit=50 (Default: 50, Max: 50)</p>

<p>BUT it also states:</p>

<p>Request limits and API keys
In order to prevent abuse some API methods require an API key approved with some basic contact information and a description of its intended use. Please request an API key here.</p>

<p>The same API key can be used to bypass the request limiter.</p>

<p>However, I don't know how to incorporate it in the function.</p>

<p>Any advice is appreciated!</p>

<bitcoin-core><blockchain.info><api><python>
How do I use an issued API key in my python 3 script to bypass the request limiter?
Andreas
# How do I use an issued API key in my python 3 script to bypass the request limiter?

(Asked by: username_0 on 2019-05-09)

I got an API key from blockchain.info to bypass the request limiter, but I don't know how to use it and I can't find any relevant info online.

```
 url = "https://blockchain.info/rawblock/" + str(s)
        usock = urlopen(url)
        data = usock.read()

```

where variable s is the block height.

As the python blockchain.info API states:

<https://blockchain.info/rawaddr/>$bitcoin\_address
Address can be base58 or hash160
Optional limit parameter to show n transactions e.g. &limit=50 (Default: 50, Max: 50)

BUT it also states:

Request limits and API keys
In order to prevent abuse some API methods require an API key approved with some basic contact information and a description of its intended use. Please request an API key here.

The same API key can be used to bypass the request limiter.

However, I don't know how to incorporate it in the function.

Any advice is appreciated!

**Tags:** bitcoin-core, blockchain.info, api, python


---

## 1 answers

### Answer by username_1 on 2019-05-10. Score: 1 | Accepted answer

You [need to get an "api\_code"](https://github.com/blockchain/api-v1-client-python#request-limits-and-api-keys), then use that when making calls.

You can use their official [python client](https://github.com/blockchain/api-v1-client-python/blob/master/docs/blockexplorer.md).

> **Comments:**
> **username_0**: Hi username_1...I have the api key (i assume it s the same as api code you re referring to).   I have been using the python client and getting the data I want but the issue is that for a certain wallet address I can get only 50 transactions of let s say 800.  My question is how can I incorporate the API key in the python script and download all of the transactions instead of just 50.  
> **username_1**: @AndreasManousakis It looks like you can just add the `api_code` as a parameter: https://github.com/blockchain/api-v1-client-python/blob/52ea562f824f04303e75239364e06722bec8620f/blockchain/blockexplorer.py#L11  

---

