The Quran says that hunting and eating the fish of the sea is lawful, and that Allah subdued the sea so that you may eat fresh meat from it. In a report from the Companion Jabir, an army under Abu Ubayda found a huge whale thrown up on the shore and ate from it for about half a month. When they returned and told the Prophet ﷺ, he said, 'Eat what Allah has brought out for you, and feed us if you have any,' and he ate some of it himself. Most scholars therefore do not treat sea creatures found dead like dead land animals, and fish need no slaughter.
The schools differ about the details. The Maliki, Shafi'i and Hanbali schools allow almost everything that lives in the sea, including shrimp, crab, lobster, oysters and squid, with a few exceptions that they debate among themselves, such as frogs and animals that are harmful. The Hanafi school allows fish, and many Hanafis also allow shrimp, but not crab or lobster. If you follow the Hanafi view, you should avoid them; if you follow another, you may eat them. A person who is unsure may choose fish and avoid the disputed items.
Remember that seafood dishes can contain other things: batter fried in shared oil, sauces made with wine or mirin, or fish sauce with additives. Ask what a dish contains as you would with any other.