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. 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 fifth overall (the New York Yankees are first with 27, then the St. Louis Cardinals (the National League record-holders) with 11, and the Oakland Athletics and the Boston Red Sox both with 9). 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.