<p>I think the best option for this is: <a href="https://docs.blockfrost.io/" rel="nofollow noreferrer">Blockfrost API</a></p>
<p>Specifically, <a href="https://docs.blockfrost.io/#tag/Cardano-Assets" rel="nofollow noreferrer">Cardano &gt; Assets endpoints</a></p>
<p>I.e. To retrieve the list of Tokens for a policy, you can use the following code:</p>
<pre><code>curl --location --request GET 'https://cardano-mainnet.blockfrost.io/api/v0/assets/policy/c364930bd612f42e14d156e1c5410511e77f64cab8f2367a9df544d1' \
--header 'project_id: &lt;project_id&gt;'
</code></pre>
<p>Where <code>&lt;project_id&gt;</code> is your blockfrost API key.</p>

CC BY-SA 4.0
2022-01-06T08:59:53.327Z
Thank you very much! I am having a hard time understanding how to use the api. Could you give me just an example on how to pull data from one project via an URL api call (e.g., BCRC: `c364930bd612f42e14d156e1c5410511e77f64cab8f2367a9df544d1`)? That would really help me out.
mat
CC BY-SA 4.0
2022-01-06T15:42:32.277Z
@mat please check my updated answer.
georgeos
CC BY-SA 4.0
2022-01-06T15:49:30.670Z
thank you so much! But would it be possible to just have a single link? I use R to make api calls and they usually are in a json format or something similar. I Tried `https://cardano-mainnet.blockfrost.io/api/v0/assets/policy/c364930bd612f42e14d156e1c5410511e77f64cab8f2367a9df544d1?project_id=<my_blockfrost_api_key>` but it did not work...
mat
CC BY-SA 4.0
2022-01-06T15:56:50.033Z
@mat No, as you need to attach it as a header. You can take a look on this: https://stackoverflow.com/a/65649641/1133816 to use CURL in R with headers.
georgeos
CC BY-SA 4.0
2022-01-05T20:17:25.900Z
2022-01-06T15:42:16.220Z
2022-01-06T15:42:16.220Z
georgeos
<p>There are multiple ways.</p>
<p>As per the previous answer you can fetch data from Blockfrost.</p>
<p>But it looks you want to fetch loads of data in bulk, and that could lead to having to pay blockfrost as the basic account only gives you a limited number of api calls.</p>
<p>Alternative is to run cardano-db-sync by yourself <a href="https://github.com/input-output-hk/cardano-db-sync" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-db-sync</a></p>
<p>Or leverage some open source like <a href="https://dandelion.link/" rel="nofollow noreferrer">dandelion.link</a></p>

CC BY-SA 4.0
2022-01-05T23:20:30.723Z
2022-01-05T23:20:30.723Z
Giovanni G
<p>I want to obtain some information about a given CNFT project. For instance, the number of asset minted, and all the assets metadata (e.g., attributes). How can I proceed with this? I mainly use R as a statistical/programing tool. Is there an api somewhere to do this? I have been web scraping this information, but it is really cumbersome and I am looking for an alternative.</p>

<nft>
Obtain data about a CNFT project
# Obtain data about a CNFT project

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

I want to obtain some information about a given CNFT project. For instance, the number of asset minted, and all the assets metadata (e.g., attributes). How can I proceed with this? I mainly use R as a statistical/programing tool. Is there an api somewhere to do this? I have been web scraping this information, but it is really cumbersome and I am looking for an alternative.

**Tags:** nft

---

## 2 answers

### Answer by username_1 on 2022-01-05. Score: 2

I think the best option for this is: Blockfrost API
Specifically, Cardano > Assets endpoints
I.e. To retrieve the list of Tokens for a policy, you can use the following code:
curl --location --request GET 'https://cardano-mainnet.blockfrost.io/api/v0/assets/policy/c364930bd612f42e14d156e1c5410511e77f64cab8f2367a9df544d1' \
--header 'project_id: '

Where  is your blockfrost API key.

> **Comments:**
> **username_0**: Thank you very much! I am having a hard time understanding how to use the api. Could you give me just an example on how to pull data from one project via an URL api call (e.g., BCRC: `c364930bd612f42e14d156e1c5410511e77f64cab8f2367a9df544d1`)? That would really help me out.  
> **username_1**: @mat please check my updated answer.  
> **username_0**: thank you so much! But would it be possible to just have a single link? I use R to make api calls and they usually are in a json format or something similar. I Tried `https://cardano-mainnet.blockfrost.io/api/v0/assets/policy/c364930bd612f42e14d156e1c5410511e77f64cab8f2367a9df544d1?project_id=<my_blockfrost_api_key>` but it did not work...  
> **username_1**: @mat No, as you need to attach it as a header. You can take a look on this: https://stackoverflow.com/a/65649641/1133816 to use CURL in R with headers.  

---

### Answer by username_2 on 2022-01-05. Score: 0

There are multiple ways.

As per the previous answer you can fetch data from Blockfrost.

But it looks you want to fetch loads of data in bulk, and that could lead to having to pay blockfrost as the basic account only gives you a limited number of api calls.

Alternative is to run cardano-db-sync by yourself <https://github.com/input-output-hk/cardano-db-sync>

Or leverage some open source like [dandelion.link](https://dandelion.link/)


---

