Newburyport is a small coastal city in Essex County, Massachusetts, Massachusetts, United States, 38 miles northeast of Boston, Massachusetts. The population was 17,189 at the United States Census, 2000.... . It is a public school for grades 9-12. It was established in 1831 and is one of the oldest public schools in the United States of America.