Gobiopsis atrata, the New Zealand black goby, is a species of goby endemic to the marine waters around northern New Zealand where it occurs in tide pools and on reefs down to depths of about 30 meters .