# Alchemy — Contracts By Owner

Get Alchemy NFT Contracts by Owner data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Alchemy, pass parameters such as owner, and retrieve structured data including held NFT contract, reported distinct token count, reported aggregate balance, representative NFT metadata, and continuation key to group wallet collections, and continue large holdings.

Documentation: https://openany.si/alchemy/alchemy-contracts-by-owner/1daad0aa-9b62-42be-8dc7-956e955be26c/
API ID: 1daad0aa-9b62-42be-8dc7-956e955be26c
Provider: alchemy
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/alchemy/nft/v3/getContractsForOwner
Page update time: 2026-12-03T02:44:17.332Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:44:15.818Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Alchemy NFT Contracts by Owner API

owner is required. pageSize defaults to 100 and is capped at 100; withMetadata defaults to true. Use returned pageKey for continuation.

## What You Can Build

- **Group wallet collections**: Keep contract-level balances distinct from token records.
- **Continue large holdings**: Retain owner and pageKey.

## Returned Data

| Field | Meaning |
| --- | --- |
| `contracts[].address` | Held NFT contract |
| `contracts[].numDistinctTokensOwned` | Reported distinct token count |
| `contracts[].totalBalance` | Reported aggregate balance |
| `contracts[].displayNft` | Representative NFT metadata |
| `pageKey` | Continuation key |
| `totalCount` | Reported total contract count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Alchemy — Contracts By Owner request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "owner": {
          "type": "string",
          "description": "String - Address for NFT owner (can be in ENS format for Eth Mainnet)."
        },
        "pageKey": {
          "type": "string",
          "description": "String - key for pagination. If more results are available, a pageKey will be returned in the response. Pass back the pageKey as a param to fetch the next page of results."
        },
        "pageSize": {
          "type": "integer",
          "description": "Number of NFTs to be returned per page. Defaults to 100. Max is 100."
        },
        "withMetadata": {
          "type": "boolean",
          "description": "Boolean - if set to `true`, returns NFT metadata. Setting this to false will reduce payload size and may result in a faster API call. Defaults to `true`."
        },
        "orderBy": {
          "type": "string",
          "description": "Enum - ordering scheme to use for ordering NFTs in the response. If unspecified, NFTs will be ordered by contract address and token ID.\n  - transferTime: NFTs will be ordered by the time they were transferred into the wallet, with newest NFTs first. Note: This ordering is supported on Ethereum Mainnet, Optimism Mainnet, Polygon Mainnet, Base Mainnet, Arbitrum One, Polygon Amoy, Base Sepolia, Arbitrum Sepolia, Ethereum Sepolia, and Optimism Sepolia.",
          "enum": [
            "transferTime"
          ]
        }
      },
      "required": [
        "owner"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "contracts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "contractDeployer": {
            "type": "string"
          },
          "deployedBlockNumber": {
            "type": "integer"
          },
          "displayNft": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "tokenId": {
                "type": "string"
              }
            }
          },
          "image": {
            "type": "object",
            "properties": {
              "cachedUrl": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "originalUrl": {
                "type": "string"
              },
              "pngUrl": {
                "type": "string"
              },
              "size": {
                "type": "integer"
              },
              "thumbnailUrl": {
                "type": "string"
              }
            }
          },
          "isSpam": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "numDistinctTokensOwned": {
            "type": "integer"
          },
          "openseaMetadata": {
            "type": "object",
            "properties": {
              "bannerImageUrl": {
                "type": "string"
              },
              "collectionName": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "discordUrl": {
                "type": "string"
              },
              "externalUrl": {
                "type": "string"
              },
              "floorPrice": {
                "type": "integer"
              },
              "imageUrl": {
                "type": "string"
              },
              "lastIngestedAt": {
                "type": "string"
              },
              "safelistRequestStatus": {
                "type": "string"
              },
              "twitterUsername": {
                "type": "string"
              }
            }
          },
          "symbol": {
            "type": "string"
          },
          "tokenType": {
            "type": "string"
          },
          "totalBalance": {
            "type": "integer"
          },
          "totalSupply": {
            "type": "string"
          }
        }
      }
    },
    "pageKey": {
      "type": "string"
    },
    "totalCount": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/alchemy/nft/v3/getContractsForOwner?owner=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{
  "contracts": [
    {
      "address": "0xe785E82358879F061BC3dcAC6f0444462D4b5330",
      "contractDeployer": "<contractDeployer>",
      "deployedBlockNumber": 0,
      "displayNft": {
        "name": "<name>",
        "tokenId": "<tokenId>"
      },
      "image": {
        "cachedUrl": "<cachedUrl>",
        "contentType": "<contentType>",
        "originalUrl": "<originalUrl>",
        "pngUrl": "<pngUrl>",
        "size": 0,
        "thumbnailUrl": "<thumbnailUrl>"
      },
      "isSpam": false,
      "name": "<name>",
      "numDistinctTokensOwned": 0,
      "openseaMetadata": {
        "bannerImageUrl": "<bannerImageUrl>",
        "collectionName": "<collectionName>",
        "description": "<description>",
        "discordUrl": "<discordUrl>",
        "externalUrl": "<externalUrl>",
        "floorPrice": 0,
        "imageUrl": "<imageUrl>",
        "lastIngestedAt": "<lastIngestedAt>",
        "safelistRequestStatus": "<safelistRequestStatus>",
        "twitterUsername": "<twitterUsername>"
      },
      "symbol": "<symbol>",
      "tokenType": "<tokenType>",
      "totalBalance": 0,
      "totalSupply": "<totalSupply>"
    }
  ],
  "pageKey": "<pageKey>",
  "totalCount": "<totalCount>"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What owner formats are described?
An owner address, with ENS support conditional on Ethereum Mainnet as described by the contract.

### What page size is supported?
pageSize defaults to 100 and has a maximum of 100.

### How do I continue?
Pass the returned pageKey with the same owner and settings.

### Can I omit metadata?
Set withMetadata=false.

### Is transferTime ordering universal?
No. Its network support is restricted; check the selected implementation’s contract.

### Does this mint, transfer or sign an NFT transaction?
No. It is a data lookup; token ownership and transaction execution are separate operations.

## Available implementations
- alchemy: https://openany.si/alchemy/alchemy-contracts-by-owner/1daad0aa-9b62-42be-8dc7-956e955be26c/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
