# Metadata of NBA TopShot

**URL:** <https://forum.flow.com/t/metadata-of-nba-topshot/1501>\
**Category:** Uncategorized\
**Created:** [March 17, 2021, 1:37am UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501 "2021-03-17T01:37:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jennydebug](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@Jennydebug](https://forum.flow.com/u/Jennydebug)\
**Post date:** [March 17, 2021, 1:37am UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501/1 "2021-03-17T01:37:16Z")

</div>

Hi everyone, I would like to ask what metadata in the use case NBA TopShot is written on-chain and off-chain? Where can I see that?

Thank you so much

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [March 22, 2021, 7:18pm UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501/2 "2021-03-22T19:18:18Z")

</div>

Welcome to the community @Jennydebug! It is great to have you here.🙂

Most of the text-related metadata for Top Shot is stored on-chain, in the [`metadata field` of the `Play` struct](https://github.com/dapperlabs/nba-smart-contracts/blob/master/contracts/TopShot.cdc#L149).

You can query those with Cadence scripts: [https://github.com/dapperlabs/nba-smart-contracts/blob/master/transactions/scripts/plays/get\_play\_metadata.cdc](https://github.com/dapperlabs/nba-smart-contracts/blob/master/transactions/scripts/plays/get_play_metadata.cdc)

All of the complex metadata, like images and videos, are stored in an off-chain database.

---

<div class="post-metadata">

**Author:** ![uduchi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/uduchi/32/643_2.png) [@uduchi](https://forum.flow.com/u/uduchi)\
**Post date:** [January 13, 2022, 11:00am UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501/3 "2022-01-13T11:00:20Z")

</div>

Thank for your answer, is there anyway to get the images and videos programmatically?

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [January 13, 2022, 3:06pm UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501/4 "2022-01-13T15:06:02Z")

</div>

Top Shot offers a graphql API for people to get some of the metadata, but for images and such, at this point I think it requires a license to display the data. I’m not on the top shot team so I don’t know for sure. Please reach out to top shot support

---

<div class="post-metadata">

**Author:** ![uduchi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/uduchi/32/643_2.png) [@uduchi](https://forum.flow.com/u/uduchi)\
**Post date:** [January 13, 2022, 4:08pm UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501/5 "2022-01-13T16:08:43Z")

</div>

thank you very much. I will try to contact top shot support!

---

<div class="post-metadata">

**Author:** ![KevinNFT](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@KevinNFT](https://forum.flow.com/u/KevinNFT)\
**Post date:** [April 28, 2022, 7:05pm UTC](https://forum.flow.com/t/metadata-of-nba-topshot/1501/6 "2022-04-28T19:05:06Z")

</div>

Did you ever have any luck with this?
