As one of the longest-established and most successful professional baseball teams, the franchise has won the most games of any team in the history of American baseball.[6] The team was the first major league team based in New York City, most memorably playing at the legendary Polo Grounds. They have won 23 NL pennants and have played in 20 World Series competitions – both NL records. The Giants' eight World Series championships rank second in the National League and are tied for fourth overall (New York Yankees are first with 27, then the St. Louis Cardinals (the National League record-holders) with 11, the Oakland Athletics with 9, and the Boston Red Sox also with 8). The Giants have played in the World Series 20 times – 14 times in New York, six in San Francisco – but boycotted the event in 1904.