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' \
  '' \
  -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:


How to fix this?

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.