It's better to not give out your API key. True, it's read-only, but it also grants access to the CSV's of your trade history. (PM me if you want to change it now...)
The better way to do a public portfolio is to turn it on in the account settings. Then on the main account page a new URL will show up that will give you your public portfolio link.
Cheers.