James M. Goode, a Smithsonian Institution historian and author who wrote books about the statues and architecture of Washington, specializing in the out-of-the-way, the lesser-known, the trivial, the no-longer-extant and the ­never-heard-of, died Dec. 12 at a hospital in the District. He was 80.

The cause was congestive heart failure, said a friend and former Smithsonian colleague, Amy Ballard.

From Dr. Goode’s books, a reader could learn not only that the statuary trove of the nation’s capital includes more than monuments to presidents and statesmen like Washington and Lincoln but also the details about replicas of at least 73 animals, catalogued alphabetically from alligators to woodchucks. There is a bronze sculpture of a gray wolf outside the Washington headquarters of the conservation group Defenders of Wildlife.

Because Washington is a world capital, it’s predictable that Mexico would have a statue here of Emiliano Zapata, the hero of the Mexican revolution. It’s understandable that Polish pianist, patriot and statesman Ignacy Jan Paderewski would get a statue from his native Poland, even though he died in New York.

But who has heard of John Howard Payne?

Dr. Goode found a statue of Payne next to his grave in Georgetown’s Oak Hill Cemetery. He was an American actor, writer and diplomat who, according to a 2009 Washington Post column by John Kelly, is better known as the lyricist in 1822 of “Home! Sweet Home!” The song includes the line: “Be it ever so humble, there’s no place like home.”

Also at Oak Hill is John A. Joyce, an Irish immigrant and ­Civil War colonel from a Kentucky regiment. According to Dr. Goode, Joyce commissioned a statue of himself several years before he died. Joyce claimed authorship of a poem published in 1885 that included the familiar lines: “Laugh and the world laughs with you/ Weep and you weep alone.”

But soon after the poem was published, a young Wisconsin woman, Ella Wheeler, charged plagiarism, citing publication in the New York Sun newspaper in 1883 of a poem containing similar lines that she had written and for which she had been paid $5.

“Joyce refused to acknowledge that she was the real author,” Dr. Goode wrote in 2009. “He even had the two lines carved on his tombstone shortly before he died.”

From years of walking tours of the city and suburbs came much of Dr. Goode’s material, shared in books not only about statues but also elegant architecture torn down in the name of progress (“Capital Losses,” 2003) and the finest and poshest of the city’s apartments (“Best Addresses,” 1988).

Among the best of the buildings remaining is the McCormick at 1785 Massachusetts Ave. Banker and former treasury secretary ­Andrew Mellon once occupied a 25-room, 11,000-square-foot penthouse apartment in the Beaux Arts building, which was built in 1915 and is also known as the Andrew Mellon Building. Today, it is the home of the American Enterprise Institute.

Leading walking tours in the city, “I kept seeing buildings come down, and invariably something worse went up,” Dr. Goode told The Post in 2003. Over nine years he compiled a block-by-block survey of 252 buildings that had been demolished, including the historic Rhodes Tavern, which was torn down in 1984, and the Valley View mansion on Foxhall Road, one of Washington’s last and largest grand estates, which was torn down in final years of the last century.

James Moore Goode was born Sept. 17, 1939, in Statesville, N.C., where his father was a corporate treasurer. He graduated from the University of South Carolina in 1964 and received a master’s degree from the University of Virginia in 1966.

He was a portly man who relished dining at restaurants rated with multiple stars, but also had his favorite neighborhood taverns, comfortable but undistinguished. His dress was correct and conservative, often with suspenders and usually a hat when he went outside. He collected silver, portraits and stamps.

He habitually answered the telephone with the word “Ahoy,” which he liked to point out was the original telephone salutation suggested by Alexander Graham Bell. It was later supplanted by Thomas Edison’s suggestion, “Hello.”

Dr. Goode came to the Washington area in 1966 as a teacher of American history at George Mason University, then from 1968 to 1970 was a reference librarian at the Library of Congress. From 1970 to 1987, he was a Smithsonian Institution staffer who organized exhibits and lectures, gave walking tours and wrote books. He resigned in 1988 to work on a doctoral degree in American studies, which he received from George Washington University in 1995.

In 2015 he received the second annual Visionary Historian Award from the Historical Society of Washington, D.C. for a “lifetime body of work [which] represents the highest achievement in the study of Washington, D.C.”

Kelly wrote in his 2009 column on Dr. Goode, published after his 1974 book “The Outdoor Sculpture of Washington, D.C.,” was updated and reissued as “Washington Sculpture”:

“Statues tell stories, especially in Washington, a statue-rich town. Whom we decide to commemorate, and how, reveals something about us as a society. And what you can’t tell from looking at the sculpture, Goode reveals in his book.”