It could be dangerous to eat cooked goldfish since these fish sometimes contain parasites that heat can't kill, so eating goldfish raw is taking an even greater risk. It's best not to chance it and refrain from eating goldfish at all, but if you absolutely must eat goldfish, then you need to cook them until the internal temperature is 145 degrees F. Again, even cooking goldfish to the appropriate temperature doesn't necessarily kill any parasites that may be present, so you must proceed with caution.