This appears to be the earliest recorded instance of trick-or-treating (as we know it) in North America:

“The old time custom of keeping up Hallowe’en was not forgotten last night by the youngsters of the city,” reported the Kingston, Ontario Daily News  in 1866.  “They had their maskings and their marry-makings, and perambulated the streets after dark in a way which no doubt was mightily amusing to themselves.  There was a great sacrifice of pumpkins from which to make transparent heads and face, lighted up by the unfailing two inches of tallow candle.”

from Halloween: From Pagan Ritual to Party Night By Nicholas Rogers