Generalist wildlife species often thrive in urban environments because of increased anthropogenic resources. However, human-wildlife interactions, especially if negative, raise concerns for urban wildlife management. An enhanced understanding of wildlife behavioural flexibility has been suggested to be a key tool to provide educated and effective management strategies. We therefore investigated how availability of semi-naturally occurring food affected behavioural foraging patterns of urban vervet monkeys (Chlorocebus pygerythrus), a generalist primate commonly found in urban areas of KwaZulu-Natal, South Africa. Over one year, we conducted 20 min. focal animal observations recording foraging behaviour and food consumption. We used a combination of a generalised linear model and descriptive statistics to examine the relationship between anthropogenic food consumption and semi-natural food availability. Our analyses showed that anthropogenic food consumption decreased as semi-natural food availability increased. We also showed that increased aggression from humans towards vervet monkeys decreased time spent foraging on anthropogenic food. Our study highlights how vervet monkeys have adapted to their urban landscape, showing foraging flexibility in response to available food resources and the frequency of human interactions. We suggest how our results can be applied for management recommendations, particularly controlling anthropogenic food availability and decreasing negative human-wildlife interactions.