Terraria item ID 261. Terraria 1.4.5.7.
The Goldfish is a critter that swims in water and walks on land during rain. It flops in place when out of water and rain; it does not take damage while doing so. The Goldfish has only 5 health and no defense, and can be damaged by other enemies and players. The Goldfish can be caught with any Bug Net to be carried around in the inventory and released later, or crafted into animated decorative furniture (Fish Bowl). Once crafted, the Goldfish cannot be released again, unless the furniture item is de-crafted via Shimmer(Desktop, Console and Mobile versions).
Description from the Terraria Wiki.