LeoYeAI/agent-master-skills / skills/alchemy-official
alchemy-official
Verifiedreferences/recipes-get-nft-ownership.md
View on GitHub---
id: references/recipes-get-nft-ownership.md
name: 'Recipe: Get NFT Ownership'
description: ''
tags:
- alchemy
- recipes
- recipe
related:
- data-nft-api.md
updated: 2026-02-05
---
# Recipe: Get NFT Ownership
## Goal
Fetch NFTs owned by a wallet address.
## Inputs
- `owner`
- `network`
- `ALCHEMY_API_KEY`
## Steps
1. Call `getNFTsForOwner` via NFT API.
2. Use `pageKey` to paginate.
## Example (curl)
```bash
curl -s "https://eth-mainnet.g.alchemy.com/nft/v3/$ALCHEMY_API_KEY/getNFTsForOwner?owner=0x00000000219ab540356cbb839cbe05303d7705fa"
```
## Example (TypeScript)
```ts
const url = new URL(
`https://eth-mainnet.g.alchemy.com/nft/v3/${process.env.ALCHEMY_API_KEY}/getNFTsForOwner`
);
url.searchParams.set("owner", "0x00000000219ab540356cbb839cbe05303d7705fa");
const res = await fetch(url.toString());
const json = await res.json();
```
## Output
- List of NFTs with contract, tokenId, and metadata fields.
## Pitfalls
- Some NFTs have missing or invalid metadata.
- Spam collections may appear unless filtered; allowlist trusted collections when needed.
## Related Files
- `data-nft-api.md`
## Official Docs
- [NFT API Endpoints](https://www.alchemy.com/docs/reference/nft-api-endpoints)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |