Title: Bat Masterson (TV series)
Content:   Bat Masterson is an American Western television series which was a fictionalized account of the life of real-life marshal/gambler/dandy Bat Masterson. The title character was played by Gene Barry, and the half-hour black-and-white series ran on NBC from 1958 to 1961. The show was produced by Ziv Television Productions. "Bat" is a nickname for Masterson's first name, Bartholemew, although in a 1961 episode "No Amnesty For Death" he says his name is William Barkley Masterson. Although the series was fiction, it claimed in the closing credits to be based on the biography Bat Masterson, by Richard O'Connor.
Title: Bat Masterson
Content: Mason Alan Dinehart III played Masterson from 1955 to 1959 in 34 episodes of the ABC Western series, The Life and Legend of Wyatt Earp, starring Hugh O'Brian in the title role. ; Bat Masterson was a U.S. television series loosely based on the historical character. Masterson was portrayed by Gene Barry. Bat Masterson aired on NBC in 108 episodes from October 8, 1958, to June 1, 1961, and featured Masterson as a superbly dressed gambler, generally outfitted in a black suit and derby hat, who was more inclined to "bat" crooks over the head with his gold-knobbed cane than shoot them. Hundreds of thousands 
Title: Bat Masterson (TV series)
Content:  Ellie Winters in 7 episodes. Yvonne Lime Fedderson was cast as Lola White in the 1960 episode "The Snare". Ron Hayes appeared four times in the role of Wyatt Earp. Gary Vinson appeared as Billy Thompson in the 1958 episode "A Noose Fits Anybody". Tyler McVey appeared from 1958 to 1961 in different roles in three episodes ("Dynamite Blows Two Ways", "Incident at Fort Bowie", and "Dead Man's Claim"). Ron Foster (1960) appeared twice as Toby Dawson in "Six Feet of Gold" and as Sheriff Buck Simpson in "Jeopardy at Jackson Hole" (1961). James Coburn also appeared in "Six Feet of Gold". Tom Greenway guest starred twice, as Charlie in "Buffalo Kill" 
Title: Bat Masterson (TV series)
Content:  Bat Masterson guest stars included the character actor Robert F. Simon, who appeared as Harrison Whitney in the episode "Death by Decree", and Richard Eastham, who appeared in the 1961 episode "A Lesson in Violence". Stefanie Powers appeared in the 1961 episode named "Dead Man's Claim" (using the name Taffy Paul) as Ann, the niece of the boarding house owner. George Macready appeared as Clyde Richards in the 1961 episode "Tempest at Tioga Pass". Quintin Sondergaard appeared in various roles on the series five times between 1958 and 1961. Dan Sheridan was cast as Joe Rankin in the 1959 episode "Election Day". The lovely Allison Hayes had a recurring role as card 
Title: Bat Masterson (TV series)
Content: Gene Barry as Bat Masterson (108 episodes) ; Allison Hayes as Ellie Winters (7 episodes) ; Allen Jaffe as belligerent drunk (7 episodes) ; Ken Drake as Burdette (6 episodes) ; Troy Melton as government agent (6 episodes) 
Title: Bat Masterson
Content:  the series Early Edition in a 1997 episode titled "Bat Masterson". ; A character called Bat Masterson, portrayed by Steven Ogg, appears in the 2014 Murdoch Mysteries episode "Glory Days", going to Toronto in pursuit of famous outlaws and clashing with the local constabulary's style of investigation. ; A character called Bat Masterson is played by Matthew Le Nevez in the 2015 Lifetime TV series, The Lizzie Borden Chronicles, a counter-history to the legend of Lizzie Borden. ; Bat Masterson is played by Jack Elliott in the 2021 INSP TV series Wild West Chronicles, a retelling of true stories behind the West's incredible events. 
Title: Bat Masterson (TV series)
Content:  Barry recreated the role of Bat Masterson in an episode of the television series Guns of Paradise (1990), alongside Hugh O'Brian as Wyatt Earp.
Title: Bat Masterson (TV series)
Content:  In The Gambler Returns: The Luck of the Draw (1991) Barry played Masterson, also with O'Brian as Earp, as well as Jack Kelly as Bart Maverick and Clint Walker as Cheyenne Bodie.
Title: Bat Masterson (TV series)
Content:  and as Ben Pick in "Dagger Dance" (1961). Brett King appeared four times, beginning with the role of Hub Elliott in "License to Cheat" (1959); Douglas Kennedy was cast as Sheriff Jeb Crater in that same episode. William Tannen was cast in four episodes of Bat Masterson. Diane Brewster, also known as "Beaver" Cleaver's second-grade teacher "Miss Canfield" in Leave It to Beaver and as gambler "Samantha Crawford" opposite James Garner in Maverick, played the role of Miss Lynn Harrison in the 2-part episode "The Conspiracy" (1959). Kevin Hagen appeared as Ace Williams in "The Fourth Man" (1961). Lon Chaney Jr. played the role of Rance Fletcher in "Bat Trap" (1961).
Title: Bat Masterson (TV series)
Content:  The series had a tongue-in-cheek flair, with Barry's Masterson often dressed in expensive Eastern clothing and preferring to use his cane rather than a gun to get himself out of trouble. Masterson was also portrayed as a ladies' man who traveled the West looking for women and adventure. Born Eugene Klass, suave actor Gene Barry had changed his last name as a subtle tribute to actor John Barrymore. The black derby, fancy decorative vest, black jacket, and elegant gold-topped cane were his trademarks. Miniaturized toy versions were marketed to children as tie-in products during the run of the series. When dressed more casually in episodes centered on outdoor action, Masterson would sometimes wear an identical but gray derby in place of the black one. After the turn of the century, the real-life Bat Masterson became a prominent writer of Western reminiscences as well as a flamboyant New York City newspaper journalist and close friend of Damon Runyon, and was the inspiration for the character "Sky Masterson" in Runyon's Guys and Dolls, portrayed by Marlon Brando in a theatrical film three years before the television series began.

Question: who played bat masterson in the tv series?
Answer: Gene Barry.