Some social media users said the timing of the video’s release, one week after an American military Osprey aircraft crash-landed off Okinawa, setting off anti-American protests, was indelicate. But many others welcomed it as pure entertainment or as a sign of warm ties between the two countries.

“Wow, this is great,” one person wrote in Japanese on YouTube. “Americans are really good at getting carried away. A boring Japanese government would never do this.”

The television series premiered in October and stars a lovelorn information technology worker who hires an unemployed woman to pretend to be his wife and do chores around his Tokyo apartment. They end up falling in love.

The show’s closing dance features five characters performing goofy, choreographed moves in the man’s living room, to the sounds of a peppy song titled “Koi,’’ or “Love.’’ It became a sensation on Japanese social media, and people around the country — including a group of famous figure skaters — have uploaded their own versions of the “Koi Dance.”

In the embassy’s version, Ms. Kennedy performs the opening move, which looks vaguely like a yoga pose, to the song from the show. Other scenes show members of her staff dancing around their offices in Christmas hats and sweaters, as one official lip syncs the lyrics.