Yellowlegs are not particularly choosy over where they get food. Give them a stretch of water they can stand in and they are happy.
There are two types, but they look almost identical. The bill length is the main difference.
They live all along the coasts of the US and Canada. A marsh, swamp, beach, all water with food.
At times they will stand in the same spot and bob their head, over and over. The original ‘booble head’.
Other small wading birds look almost the same, and mix with them in flocks. When out shooting we usually just call them ‘shore birds’ and worry about details later. Way too confusing.
Photographed in ACE Basin, South Carolina.