A long-legged bird, that frequents shallow water, particularly while looking for food, is referred to as a wading bird also known as waders.
Wader birds are members of the order of Ciconiiformes and are distinguished by their long legs.
Wading birds have developed physical and behavioral adaptations that enable them to survive in close proximity to or on water. In addition to drinking water, wading birds rely on water for food, shelter, and breeding sites.
Among the birds in the group are cranes, herons, egrets, storks, spoonbills, and ibises.