How many times have the giants won the world series?

Seven. The Giants franchise won five World Series in New York (1905, 1921, 1922, 1933 and 1954) and two in San Francisco (2010 and 2012).