<p><a href="https://mempool.space/docs/api/rest" rel="nofollow noreferrer">https://mempool.space/docs/api/rest</a></p>
<p>The mempool.space api should suit your needs...</p>

CC BY-SA 4.0
2022-01-15T01:51:36.817Z
2022-09-01T15:42:22.033Z
2022-09-01T15:42:22.033Z
RandyMcMillan
<p>Questions looking for service provider availability/reviews are off-topic on this site, but luckily you can simply run a bitcoin full node to obtain and validate this information for yourself! Even better, since you are validating the information yourself, there is no risk of being fed incorrect information from some third party API.</p>
<p>To accomplish this, you'll need to install and run some bitcoin full-node software, such as <a href="https://github.com/bitcoin/bitcoin" rel="nofollow noreferrer">bitcoin-core</a>. When you first run that software, it will begin to download and validate the network history, which will take some time (how long will depend on your hardware, it can worth looking up how to optimize this. In most cases, you could expect it to take anywhere between a few hours and a few days).</p>
<p>Once your node is sync'd with the network, you can write some scripts that will make calls to <code>bitcoin-cli</code>, and index the outputs according to your needs.</p>

CC BY-SA 4.0
2022-01-14T22:44:07.443Z
Note that you'll need to run Bitcoin Core with `-txindex` to be able to query all transactions, rather than just ones related to your own wallet.
meshcollider
CC BY-SA 4.0
2022-01-16T19:41:07.370Z
I don't think this question is a request for service recommendation. This question is "How can I get said data?", a question that I would consider to be asking for a service recommendation would be "What is the best service to do X?". It's subtle, but the main difference is that the former is trying to solve a legit problem, while the latter is asking us to compare services for them.
Murch
CC BY-SA 4.0
2022-01-14T21:56:43.653Z
2022-01-14T21:56:43.653Z
chytrik
<p>You can use my script for parsing the blockchain raw database. It's here <a href="https://github.com/ragestack/blockchain-parser" rel="nofollow noreferrer">https://github.com/ragestack/blockchain-parser</a> available to download.</p>
<p>If you know approximately the starting block with TXs you need or the starting time, it will help you to set the limits for searching transactions, you can filter them from the output results.</p>

CC BY-SA 4.0
2022-01-15T09:51:38.070Z
2022-01-15T09:51:38.070Z
Denis Leonov
<p>I am trying to make a python script for a research project that needs to get all the transactions that happened between point A and B in time, but I can't find any API, website or library where I can get the data from.</p>
<p>So, where can I get this data from?</p>
<p>If there isn't any website/API/Library that would allow me to get the info from time A to B, my second option is to just get all the transactions and get just the ones from point A to B my self, but I also don't know where to get all transactions, any clues?</p>
<p>Thanks.</p>

<transactions><python>
Trying to get all transactions between two specific dates
cookiemonster421
# Trying to get all transactions between two specific dates

(Asked by: username_0 on 2022-01-14)

I am trying to make a python script for a research project that needs to get all the transactions that happened between point A and B in time, but I can't find any API, website or library where I can get the data from.

So, where can I get this data from?

If there isn't any website/API/Library that would allow me to get the info from time A to B, my second option is to just get all the transactions and get just the ones from point A to B my self, but I also don't know where to get all transactions, any clues?

Thanks.

**Tags:** transactions, python


---

## 3 answers

### Answer by username_1 on 2022-01-15. Score: 1

<https://mempool.space/docs/api/rest>

The mempool.space api should suit your needs...


---

### Answer by username_2 on 2022-01-14. Score: 1

Questions looking for service provider availability/reviews are off-topic on this site, but luckily you can simply run a bitcoin full node to obtain and validate this information for yourself! Even better, since you are validating the information yourself, there is no risk of being fed incorrect information from some third party API.

To accomplish this, you'll need to install and run some bitcoin full-node software, such as [bitcoin-core](https://github.com/bitcoin/bitcoin). When you first run that software, it will begin to download and validate the network history, which will take some time (how long will depend on your hardware, it can worth looking up how to optimize this. In most cases, you could expect it to take anywhere between a few hours and a few days).

Once your node is sync'd with the network, you can write some scripts that will make calls to `bitcoin-cli`, and index the outputs according to your needs.

> **Comments:**
> **username_3**: Note that you'll need to run Bitcoin Core with `-txindex` to be able to query all transactions, rather than just ones related to your own wallet.  
> **username_4**: I don't think this question is a request for service recommendation. This question is "How can I get said data?", a question that I would consider to be asking for a service recommendation would be "What is the best service to do X?". It's subtle, but the main difference is that the former is trying to solve a legit problem, while the latter is asking us to compare services for them.  

---

### Answer by username_5 on 2022-01-15. Score: 1

You can use my script for parsing the blockchain raw database. It's here <https://github.com/ragestack/blockchain-parser> available to download.

If you know approximately the starting block with TXs you need or the starting time, it will help you to set the limits for searching transactions, you can filter them from the output results.


---

