Learn how to fetch POAPs held by various web3 identities, such as 0x addresses, ENS domains, Lens profiles, and Farcasters. You will also learn how to fetch commonly held POAPs between multiple users.
Airstack provides easy-to-use APIs for enriching POAP applications and for integrating POAP on-chain data indexed directly from both Ethereum and Gnosis.
Table Of Contents
In this guide you will learn how to use Airstack to:
Airstack provides an AI solution for you to build GraphQL queries to fulfill your use case easily. You can find the AI prompt of each query in the demo's caption or title for yourself to try.
Get POAPs Held By 0x Address(es)
You can fetch all the POAPs held by by providing it as an input to the owner filter input:
{"data": {"Poaps": {"Poap": [ {"eventId":"80393","tokenId":"5860961","poapEvent": {"eventName":"You met Cryptocomical at Lisbon 2022","description":"You met Cryptocomical at Lisbon 2022\r\n\r\nConheceu a Cryptocomical em Lisboa 2022" } }, {"eventId":"79011","tokenId":"5819739","poapEvent": {"eventName":"ITU Blockchain - Devcon Satellite","description":"This POAP is a memory of Ä°TÃ Blockchainâs Devcon Satellite event." } }, {"eventId":"15678","tokenId":"3055722","poapEvent": {"eventName":"Assets9 community members","description":"Poap distributed for Assets9 community members" } } ] } }}
Get POAPs Held By ENS Domain(s)
You can fetch all the POAPs held by ENS Domain(s) by providing it as an input to the owner filter input:
{"data": {"Poaps": {"Poap": [ {"eventId":"80393","tokenId":"5860961","poapEvent": {"eventName":"You met Cryptocomical at Lisbon 2022","description":"You met Cryptocomical at Lisbon 2022\r\n\r\nConheceu a Cryptocomical em Lisboa 2022" } }, {"eventId":"79011","tokenId":"5819739","poapEvent": {"eventName":"ITU Blockchain - Devcon Satellite","description":"This POAP is a memory of Ä°TÃ Blockchainâs Devcon Satellite event." } }, {"eventId":"15678","tokenId":"3055722","poapEvent": {"eventName":"Assets9 community members","description":"Poap distributed for Assets9 community members" } } ] } }}
Get POAPs Held By Lens Profile(s)
You can fetch all the POAPs held by Lens profile(s) by providing either the Lens profile name or ID as an input to the owner filter input:
{"data": {"Poaps": {"Poap": [ {"eventId":"80393","tokenId":"5860961","poapEvent": {"eventName":"You met Cryptocomical at Lisbon 2022","description":"You met Cryptocomical at Lisbon 2022\r\n\r\nConheceu a Cryptocomical em Lisboa 2022" } }, {"eventId":"79011","tokenId":"5819739","poapEvent": {"eventName":"ITU Blockchain - Devcon Satellite","description":"This POAP is a memory of Ä°TÃ Blockchainâs Devcon Satellite event." } }, {"eventId":"15678","tokenId":"3055722","poapEvent": {"eventName":"Assets9 community members","description":"Poap distributed for Assets9 community members" } } ] } }}
Get POAPs Held By Farcaster User(s)
You can fetch all the POAPs held by Farcaster(s) by providing the of fid as an input to the owner filter input:
{"data": {"Poaps": {"Poap": [ {"eventId":"80393","tokenId":"5860961","poapEvent": {"eventName":"You met Cryptocomical at Lisbon 2022","description":"You met Cryptocomical at Lisbon 2022\r\n\r\nConheceu a Cryptocomical em Lisboa 2022" } }, {"eventId":"79011","tokenId":"5819739","poapEvent": {"eventName":"ITU Blockchain - Devcon Satellite","description":"This POAP is a memory of Ä°TÃ Blockchainâs Devcon Satellite event." } }, {"eventId":"15678","tokenId":"3055722","poapEvent": {"eventName":"Assets9 community members","description":"Poap distributed for Assets9 community members" } } ] } }}
Get POAPs In Common Held By Multiple Users
You can fetch all the POAPs commonly held by multiple users, in the following example take 2 users betashop.eth and ipeciura.eth:
{"data": {"Poaps": {"Poap": [ {"poapEvent": {"poaps": [ {"poapEvent": { // POAP owned by both betashop.eth and ipeciura.eth"eventName":"You've met Lucas in Summer 23","eventId":"141662","endDate":"2023-09-21T00:00:00Z","country":"Worldwide","city":"Summer 23" } } ] } }, {"poapEvent": {"poaps": [] // POAP hold by betashop.eth, but not hold by ipeciura.eth } } ] } }}
Developer Support
If you have any questions or need help regarding fetching POAP balances, please join our Airstack's Telegram group.