Skip to content

Instantly share code, notes, and snippets.

@caffeinum
Last active March 10, 2022 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caffeinum/bb26e890a6a0abd5e4d17bc23c5c46a4 to your computer and use it in GitHub Desktop.
Save caffeinum/bb26e890a6a0abd5e4d17bc23c5c46a4 to your computer and use it in GitHub Desktop.
Download NFT Holders
  1. Download JSON with Moralis API https://github.com/nft-api/nft-api#getnftowners
  2. Use jqplay or jq command line to create csv list https://jqplay.org/
export NFT_ADDRESS = ...
curl -X 'GET' \
  'https://deep-index.moralis.io/api/v2/nft/$NFT_ADDRESS/owners?chain=eth&format=decimal' \
  -H 'accept: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
| jq --raw-output '.result[] .owner_of' > holders.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment