Does anyone know why I’m getting this when making requests to the lemmy api?

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

The request in quesiton is a GET request to https://lemmy.ml/api/v3/post/list?community_name=asklemmy. It only happens when making the request to lemmy.ml, not to other instances. When I paste the url into my browser address bar it works.