<p>Unfortunately <a href="https://docs.blockfrost.io/#tag/Cardano-Assets/paths/%7E1assets%7E1%7Basset%7D%7E1transactions/get" rel="nofollow noreferrer">Blockfrost</a> currently requires the concatenated policy <em>and</em> asset name to query asset transactions but you can use the <a href="https://api.koios.rest/#get-/asset_txs" rel="nofollow noreferrer">Koios API instead</a> with just the policyId since the asset name is optional.</p>

CC BY-SA 4.0
2022-06-29T09:02:46.553Z
2022-06-29T09:02:46.553Z
keefie
<p>What's the best say to get the transaction history of an NFT collection given the policy id? I looked into Asset Transactions but this requires both policy ID and the asset ID. Is there something else I am missing? Or should I loop through each asset and see if there is a transaction? Seems super tedious though..</p>
<p><code>https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}/transactions</code></p>

<transaction><nft><blockfrost><python><asset>
Get Transaction History Given Policy ID using Blockfrost API
# Get Transaction History Given Policy ID using Blockfrost API

(Asked by: username_0 on 2022-06-26)

What's the best say to get the transaction history of an NFT collection given the policy id? I looked into Asset Transactions but this requires both policy ID and the asset ID. Is there something else I am missing? Or should I loop through each asset and see if there is a transaction? Seems super tedious though..

`https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}/transactions`

**Tags:** transaction, nft, blockfrost, python, asset

---

## 1 answers

### Answer by username_1 on 2022-06-29. Score: 1

Unfortunately [Blockfrost](https://docs.blockfrost.io/#tag/Cardano-Assets/paths/%7E1assets%7E1%7Basset%7D%7E1transactions/get) currently requires the concatenated policy *and* asset name to query asset transactions but you can use the [Koios API instead](https://api.koios.rest/#get-/asset_txs) with just the policyId since the asset name is optional.


---

