What is the apiUrl Moralis Cred for Moralis-Mutants-NFT-Engine project?

Hopefully this is a basic question, but the documentation is unclear.

I was following along with the NFT generation tutorial here:

which has source code for this project here:

In the video, in the index.js file, there’s a section called //Moralis creds with three constant variables: serverUrl, appID and masterKey. However, in the current github source code, there are two new variables: apiUrl and apiKey. I can’t just ignore them because they’re required in other places throughout the program, and there is 0 documentation about what these two new variables are. I have a good guess about the apiKey, but I have no idea what to put for the apiUrl.

I’m not a new dev, but I am new to web3, so maybe this is a rudimentary question, but I’m surprised I had to sign up to this forum to find the answer. What do I put for the apiKey and especially the apiUrl? Any help would be appreciated.

FPO World

1 Like

you can find the api key here: https://admin.moralis.io/web3Api

the url you will find it when trying to make a request in that interface

Thank you for the information. That is where I thought the API key was coming from, but is there a video or documentation somewhere showing what you mean by “when trying to make a request in that interface”? I’ve watched plenty of videos of people using that API interface, but I’ve not seen as associated URL pop out of anywhere that I’m sure is the one I should be using.

Thank you for the assistance,
FPO World

you click on a web3api function/endpoint, to try it, you add some required parameters, then you click on execute and you will see the request that is made to web3api with full url path

and you will get to something like https://deep-index.moralis.io/api/v2/ or to https://deep-index.moralis.io/api/v2/ipfs/uploadFolder depending on what you need in this tutorial

Thanks so much @cryptokid…this is exactly what I was looking for!

FPO World