The COVID-19 pandemic has had detrimental effects on both the physical and psychological well-being of individuals. Throughout the pandemic and in response to various policies, such as lockdowns, movement restrictions and social distancing measures, parks and greenspaces received renewed attention as people used them to help cope with the adverse effects of the pandemic. This study explored the factors influencing park and greenspace visitation at different stages of the pandemic in 2020, 2021, and 2022, from both global and regional perspectives. Data were collected primarily from Our World in Data, Google's Community Mobility Reports and the Oxford Coronavirus Government Response Tracker, and a total of 125,422 park visits were processed. Stay-at-home mandates, vaccination availability, and school closures were the most influential factors globally affecting park and greenspace visitation in 2020, 2021, and 2022, respectively. Post-2021, vaccination-related policies began to play a significantly positive role in the increase in park and greenspace visits. Following a global analysis, countries were categorized into five clusters based on social, economic, and cultural indices. The analysis revealed varying patterns of factors influencing park visitation across these clusters. Notably, income support policies were positively correlated with higher park visitation, particularly in low-income countries. Recognizing the significance of parks and green spaces as essential green infrastructure, this study suggests how the use of parks might have better coped with the COVID-19 pandemic and how future health crises might be addressed. At the same time, it considers different social, economic, and cultural contexts. Additionally, this work provides insights and suggestions as to how parks and greenspaces might be used to reduce the social inequalities exacerbated during the pandemic, especially in low-income developing countries.