{"id":27138707,"url":"https://github.com/franalgaba/py-zora","last_synced_at":"2025-07-11T08:09:52.353Z","repository":{"id":43081423,"uuid":"448027565","full_name":"franalgaba/py-zora","owner":"franalgaba","description":"ZORA Protocol Python SDK","archived":false,"fork":false,"pushed_at":"2022-03-19T20:10:15.000Z","size":56,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-09T05:36:10.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/franalgaba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-14T16:07:53.000Z","updated_at":"2022-04-09T12:04:00.000Z","dependencies_parsed_at":"2022-08-24T14:35:42.475Z","dependency_job_id":null,"html_url":"https://github.com/franalgaba/py-zora","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franalgaba%2Fpy-zora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franalgaba%2Fpy-zora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franalgaba%2Fpy-zora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franalgaba%2Fpy-zora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franalgaba","download_url":"https://codeload.github.com/franalgaba/py-zora/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779725,"owners_count":20994572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-08T04:54:44.392Z","updated_at":"2025-04-08T04:54:44.805Z","avatar_url":"https://github.com/franalgaba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **ZORA Protocol Python SDK**\n\nThis repository contains a tool for interacting with NFT metadata using ZORA Protocol in a decentralized and permissionless way. The aim of this tool is to ease exploration and analysis of on-chain data for Ethereum NFTs without the need of centralized entity or API limitations.\n\n* **Get all tracked NFT collections** in Ethereum.\n* **Get NFT Collection information**.\n* **Get all token and its metadata** from a given NFT Collection.\n* **Get transactions and activity** from any NFT collection.\n\n**ZORA V3 Community API** inital integration for `collections`, `tokens` and `sales`. For every supported entity there is filtering based on `pagination`, `query`, `sort` and `filter`. See [reference](#zora-v3-community-api-usage) for installation and usage details.\n\n## **Installation**\n\n`pip install zora`\n\n## **Usage**\n\n### List all NFT collections\n\n```python\nfrom zora import list_nft\n\nall_collections = list_nft()\nfor collection in all_collections:\n    if \"Cool Cat\" in collection.name:\n        cool_cats = collection\n        address = collection.address\n        break\n\nprint(collection)\n```\n\n### Get NFT collection\n\n```python\nfrom zora import NFT\n\naddress = \"0x1A92f7381B9F03921564a437210bB9396471050C\" # Cool Cats\n\nnft = NFT(address)\nprint(nft)\n```\n\n### Get all items from NFT Collection\n\n```python\nfrom zora import NFT\n\naddress = \"0x1A92f7381B9F03921564a437210bB9396471050C\" # Cool Cats\n\nnft = NFT(address)\n\n# It returns a list of objects of type Token with metadata\nitems = nft.get_items()\n# Printing the object gives a pretty representation of the token\nprint(items[0])\n```\n\n### Get all attributes from items in NFT Collection\n\n```python\nfrom zora import NFT\n\naddress = \"0x1A92f7381B9F03921564a437210bB9396471050C\" # Cool Cats\n\nnft = NFT(address)\n\n# Get all attribute information from items in collection\nmetadata = nft.get_metadata()\nprint(metadata[0])\n```\n\n### Get all transactions and volume from NFT Collection\n\n```python\nfrom zora import NFT\n\naddress = \"0x1A92f7381B9F03921564a437210bB9396471050C\" # Cool Cats\n\nnft = NFT(address)\n\nitems = nft.get_items()\n# Retrieve all the transactions hashes of this collection activity\ntransfers = nft.get_transfers()\nprint(transfers[0])\n\n# Get all the traded volume by a single collection in ETH\nvolume = nft.get_volume(transfers)\nprint(volume)\n```\n\n## **ZORA V3 Community API Usage**\n\nThe usage of the Community API integration has support for the main entities implemented by ZORA Protocol in their [API documentation](https://ourzora.notion.site/Zora-Community-API-Testing-e68aae68838c4b878d7b1dab4e6e697b)\n\n### **Installation**\n\n`pip install zora`\n\n### **Usage**\n\n#### Query Collections Entity\n\nUsing the `collections` entity you can retrieve information about supported NFT collections.\n\n```python\nfrom zora import query_collections\n\n# Response returns a DataFrame\ncollections_df = query_collections(pagination_limit=2, sort_key=\"CREATED\", sort_direction=\"ASC\")\n```\n\n#### Query Tokens\n\nUsing the `tokens` entity you can retrieve information about tokens in a certain `collection`.\n\n```python\nfrom zora import query_tokens\n\n# Response returns a DataFrame\ntokens_df = query_tokens(pagination_limit=5, sort_key=\"MINTED\", sort_direction=\"ASC\")\n```\n\n#### Query Sales\n\nUsing the `sales` entity you cand retrieve all the sale information about a specific `collection`.\n\n```python\nfrom zora import query_sales\n\n# Response returns a DataFrame\nsales_df = query_sales(pagination_limit=10, sort_key=\"ETH_PRICE\", sort_direction=\"ASC\", query_collection=\"0xabefbc9fd2f806065b4f3c237d4b59d9a97bcac7\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranalgaba%2Fpy-zora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranalgaba%2Fpy-zora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranalgaba%2Fpy-zora/lists"}