There are several ways to get one of the 50,000 spots in the New York City Marathon. Here’s a list of the possible options. https://www.nytimes.com