Nft owners not showing up with api call

I have a contract deployed on ganache that I have connected to moralis with frpc. Now Iโ€™m making a request to the contract to get all the current owners of the tokens that the contract mints:

curl -X 'GET' \
  'https://deep-index.moralis.io/api/v2/nft/0x44Bf11D263124A61340cD4A4b65ef2E66Ac16022/owners?chain=eth&format=decimal' \
  -H 'accept: application/json' \
  -H 'X-API-Key: myapikey'

Even though the tokens have been minted, they are not showing up in the response. This is the response that I see:

{"total":0,"page":0,"page_size":500,"result":[],"status":"SYNCED"}

How to fix this?

Hi,
I donโ€™t think that it is possible with this API call to get the nft owners information from your local ganache, this API call works only with main net or test net networks.

Is there any other api that would allow this?

You can look in your Moralis Server dashboard and see if you have a table that already contains that information about your minted NFTs, and if there is then you can make a query there. It if isnโ€™t then you can sync mint events in a table with events sync plugin and then you could query that events table.