How can I find the coinbase transactions where the bitcoins involved in a transaction were created? I am exploring a transaction and if would like to know when was the money created, I guess I would end up with a lot of coinable transactions. 
For a certain transaction I could explore the previous transactions successively until I found the coinbases. But I imagine this would be a very laborious job that could take a lot of resources. Just like blockchains.info trees ( https://blockchain.info/tree/59587897) but expanding the tree till the coinbase transactions 

In the other hand I guess nodes when verifying a transaction do something very similar, don’t they?
How could I create this list of coinable transactions that original the bitcoins involved in a particular transaction?
If you have running bitcoin core, you can use JSON RPC and any programming language you want.


getrawtransaction &lt;txid&gt;
decoderawtransaction &lt;hex&gt;


Second call will return all inputs of transaction. If transaction has previous tx equal to 32 zeroes, it is coinbase transaction. You should recursively cycle through all parent transactions.

API calls list