Kennebunkport came in seventh in Coastal Living magazine’s second-annual list of “America’s Happiest Seaside Towns.”

The list of the 10 best places to live by the sea, as ranked by consumers, is featured in the June 2013 issue of the magazine, which hits newsstands May 17. Readers could vote for their favorite town from Jan. 10-Feb. 28.

Coming in first was Beaufort, S.C., followed by Harwich Port, Mass.; Sanibel Island, Fla.; Sag Harbor, N.Y.; Newport, R.I.; Rowayton, Conn.; Kennebunkport; P’ia Town, Maui, Hawaii; La Jolla, Calif; and Pescadero, Calif.

The list was based on criteria that included ranking on the Gallup-Healthways Well-Being Index, percentage of sunny days, healthiness of beaches, commute times, walkability, standard of living and financial well-being of residents, geographic diversity, and what the magazine called “coastal vibe.” Coastal locations that made the 2012 list were not eligible for this year’s list.

For the full list of towns, visit coastalliving.com/happytowns2013.