# API not returning data

**URL:** <https://forum.mautic.org/t/api-not-returning-data/30686>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [January 27, 2024, 9:01am UTC](https://forum.mautic.org/t/api-not-returning-data/30686 "2024-01-27T09:01:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vog](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@vog](https://forum.mautic.org/u/vog)\
**Post date:** [January 27, 2024, 11:38am UTC](https://forum.mautic.org/t/api-not-returning-data/30686/2 "2024-01-27T11:38:37Z")

</div>

Looks like the same problem as this - commenting out those same lines resulted in data being returned:

> [@Rest API in Mautic 5 delivers empty result array but no error](https://forum.mautic.org/t/rest-api-in-mautic-5-delivers-empty-result-array-but-no-error/30596/6):
>
> There is a method in Entity\Lead.php that sets groups for this serializer.

---

_[View the full topic](https://forum.mautic.org/t/api-not-returning-data/30686)._
