How to get general NFT token information

I need to fetch all token ids of an NFT contract and their total supplies (in case of an ERC1155 contract). Unfortunately the deep index api endpoint /nft/{address} returns a list where there is an item for every owner of the NFT. So a token id with a large supply returns potentially thousands of items for the same token id, so itโ€™s not really possible to receive the total supply for ERC1155 contracts. Or did I miss anything?

I know that you also have another similar question related to the output of Moralis.Web3API.token.getAllTokenIds.

are you interested now only in a specific smart contract or in general for any smart contract?

Iโ€™m interested for any smart contract

Ok, Iโ€™ll get back tomorrow with updates