# 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/market/apis/alchemy/alchemy-nfts-by-contract/?offering=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
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
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
}
```

## 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.

## Available implementations
- alchemy: https://openany.si/market/apis/alchemy/alchemy-nfts-by-contract/?offering=4fb8bd68-3e7b-48ab-86c3-e8ca85d20f8f

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