# Alchemy — NFTs By Contract

Get Alchemy NFTs by Contract data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Alchemy, pass parameters such as contractAddress, and retrieve structured data including NFT contract address, NFT token ID, NFT name, NFT image metadata, and returned continuation metadata to inspect collection records, and request explicit token ranges.

Documentation: https://openany.si/alchemy/alchemy-nfts-by-contract/4fb8bd68-3e7b-48ab-86c3-e8ca85d20f8f/
API ID: 4fb8bd68-3e7b-48ab-86c3-e8ca85d20f8f
Provider: alchemy
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/alchemy/nft/v3/getNFTsForContract
Page update time: 2026-12-03T02:44:17.438Z
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:16.083Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Alchemy NFTs by Contract API

contractAddress is required. startToken is a token-ID offset (hex or decimal); the response includes pageKey, but this request contract does not expose a pageKey input.

## What You Can Build

- **Inspect collection records**: Keep contract and token IDs together.
- **Request explicit token ranges**: Use startToken only with its documented token-ID meaning.

## Returned Data

| Field | Meaning |
| --- | --- |
| `nfts[].contract.address` | NFT contract address |
| `nfts[].tokenId` | NFT token ID |
| `nfts[].name` | NFT name |
| `nfts[].image` | NFT image metadata |
| `pageKey` | Returned continuation metadata |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Alchemy — NFTs By Contract 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": {
        "contractAddress": {
          "type": "string",
          "description": "String - Contract address for the NFT contract (ERC721 and ERC1155 supported)."
        },
        "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`."
        },
        "startToken": {
          "type": "string",
          "description": "String - A tokenID offset used for pagination. Can be a hex string, or a decimal. Users can specify the offset themselves to start from a custom offset, or to fetch multiple token ranges in parallel."
        },
        "limit": {
          "type": "integer",
          "description": "Integer - Sets the total number of NFTs returned in the response. Defaults to 100."
        },
        "tokenUriTimeoutInMs": {
          "type": "integer",
          "description": "No set timeout by default - When metadata is requested, this parameter is the timeout (in milliseconds) for the website hosting the metadata to respond. If you want to _only_ access the cache and not live fetch any metadata for cache misses then set this value to 0."
        }
      },
      "required": [
        "contractAddress"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "nfts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "acquiredAt": {
            "type": "object",
            "properties": {
              "blockNumber": {
                "type": "string"
              },
              "blockTimestamp": {
                "type": "string"
              }
            }
          },
          "animation": {
            "type": "object",
            "properties": {
              "cachedUrl": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "orginalUrl": {
                "type": "string"
              },
              "size": {
                "type": "integer"
              }
            }
          },
          "collection": {
            "type": "object",
            "properties": {
              "bannerImageUrl": {
                "type": "string"
              },
              "externalUrl": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            }
          },
          "contract": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "contractDeployer": {
                "type": "string"
              },
              "deployedBlockNumber": {
                "type": "integer"
              },
              "isSpam": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "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"
                  }
                }
              },
              "spamClassifications": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "symbol": {
                "type": "string"
              },
              "tokenType": {
                "type": "string"
              },
              "totalSupply": {
                "type": "string"
              }
            }
          },
          "description": {
            "type": "string"
          },
          "image": {
            "type": "object",
            "properties": {
              "cachedUrl": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "originalUrl": {
                "type": "string"
              },
              "pngUrl": {
                "type": "string"
              },
              "size": {
                "type": "integer"
              },
              "thumbnailUrl": {
                "type": "string"
              }
            }
          },
          "mint": {
            "type": "object",
            "properties": {
              "blockNumber": {
                "type": "integer"
              },
              "mintAddress": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              },
              "transactionHash": {
                "type": "string"
              }
            }
          },
          "name": {
            "type": "string"
          },
          "owners": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "raw": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string"
              },
              "metadata": {
                "type": "object",
                "properties": {
                  "attributes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "trait_type": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "description": {
                    "type": "string"
                  },
                  "image": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              },
              "tokenUri": {
                "type": "string"
              }
            }
          },
          "timeLastUpdated": {
            "type": "string"
          },
          "tokenId": {
            "type": "string"
          },
          "tokenType": {
            "type": "string"
          },
          "tokenUri": {
            "type": "string"
          }
        }
      }
    },
    "pageKey": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/alchemy/nft/v3/getNFTsForContract?contractAddress=0xe785E82358879F061BC3dcAC6f0444462D4b5330' \
  -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
{
  "nfts": [
    {
      "acquiredAt": {
        "blockNumber": "<blockNumber>",
        "blockTimestamp": "<blockTimestamp>"
      },
      "animation": {
        "cachedUrl": "<cachedUrl>",
        "contentType": "<contentType>",
        "orginalUrl": "<orginalUrl>",
        "size": 0
      },
      "collection": {
        "bannerImageUrl": "<bannerImageUrl>",
        "externalUrl": "<externalUrl>",
        "name": "<name>",
        "slug": "<slug>"
      },
      "contract": {
        "address": "<address>",
        "contractDeployer": "<contractDeployer>",
        "deployedBlockNumber": 0,
        "isSpam": "<isSpam>",
        "name": "<name>",
        "openseaMetadata": {
          "bannerImageUrl": "<bannerImageUrl>",
          "collectionName": "<collectionName>",
          "description": "<description>",
          "discordUrl": "<discordUrl>",
          "externalUrl": "<externalUrl>",
          "floorPrice": 0,
          "imageUrl": "<imageUrl>",
          "lastIngestedAt": "<lastIngestedAt>",
          "safelistRequestStatus": "<safelistRequestStatus>",
          "twitterUsername": "<twitterUsername>"
        },
        "spamClassifications": [
          "<0>"
        ],
        "symbol": "<symbol>",
        "tokenType": "ERC721",
        "totalSupply": "<totalSupply>"
      },
      "description": "<description>",
      "image": {
        "cachedUrl": "<cachedUrl>",
        "contentType": "<contentType>",
        "originalUrl": "<originalUrl>",
        "pngUrl": "<pngUrl>",
        "size": 0,
        "thumbnailUrl": "<thumbnailUrl>"
      },
      "mint": {
        "blockNumber": 0,
        "mintAddress": "<mintAddress>",
        "timestamp": "<timestamp>",
        "transactionHash": "<transactionHash>"
      },
      "name": "<name>",
      "owners": [
        "<0>"
      ],
      "raw": {
        "error": "<error>",
        "metadata": {
          "attributes": [
            {
              "trait_type": "<trait_type>",
              "value": "<value>"
            }
          ],
          "description": "<description>",
          "image": "<image>",
          "name": "<name>"
        },
        "tokenUri": "<tokenUri>"
      },
      "timeLastUpdated": "<timeLastUpdated>",
      "tokenId": "44",
      "tokenType": "<tokenType>",
      "tokenUri": "<tokenUri>"
    }
  ],
  "pageKey": "<pageKey>"
}
```

## 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 does startToken represent?
A token-ID offset, supplied in hexadecimal or decimal.

### Can I pass pageKey as a query parameter?
No pageKey input is exposed here; do not assume a response cursor is interchangeable with startToken.

### What is the default result limit?
limit defaults to 100.

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

### Can I select a network with an extra chain parameter?
Use only the inputs exposed by this exact implementation. NFT network context belongs to the selected route; this endpoint does not expose an arbitrary network selector.

### 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-nfts-by-contract/4fb8bd68-3e7b-48ab-86c3-e8ca85d20f8f/

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