# API is not returning desired data

**URL:** https://forum.shopware.com/t/api-is-not-returning-desired-data/50188
**Category:** Shopware 5
**Created:** [29. Dezember 2017 um 05:35 UTC](https://forum.shopware.com/t/api-is-not-returning-desired-data/50188 "2017-12-29T05:35:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Souvik04](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@Souvik04](https://forum.shopware.com/u/Souvik04)
#### Post date: [29. Dezember 2017 um 05:35 UTC](https://forum.shopware.com/t/api-is-not-returning-desired-data/50188/1 "2017-12-29T05:35:58Z")

</div>

Hi,

I am trying to GET ‚customer‘ data using this request.&nbsp;[http://templatebar.com/test/shopware/api/customers/1](http://templatebar.com/test/shopware/api/customers/1)

From this request I am getting all information of that Customer.

But when I am trying to fetch data using ‚date‘ filter, using this request,&nbsp;[http://templatebar.com/test/shopware/api/customers?filter[0][property]=firstLogin&filter[0][expression]=\>&filter[0][value]=2017-11-27](http://templatebar.com/test/shopware/api/customers?filter%5B0%5D%5Bproperty%5D=firstLogin&filter%5B0%5D%5Bexpression%5D=%3E&filter%5B0%5D%5Bvalue%5D=2017-11-27)

This call is not returning full data of that customer. Please look into this & provide some solution. Best, Souvik

---

<div class="post-metadata">

### Author: ![WillemMeert](https://avatars.discourse-cdn.com/v4/letter/w/5daacb/32.png) [@WillemMeert](https://forum.shopware.com/u/WillemMeert)
#### Post date: [4. Januar 2018 um 20:59 UTC](https://forum.shopware.com/t/api-is-not-returning-desired-data/50188/2 "2018-01-04T20:59:50Z")

</div>

Dear Souvik,

The API is working as expected. Please have a look at the documentation [here](https://developers.shopware.com/developers-guide/rest-api/examples/customer/).

In your first try (http://…/api/customers/1) you are using “example 2: getting a specific customer” which returns all information on the customer.

With your second try, you are in fact using example 1 (getting all customers), and&nbsp;you are simply adding a filter to not retrieve all customers, but only A LIST of customers satisfying your filter. Probably you are confused because your filter returns only 1 customer in your specific case/filter. If more customers satisfy the filter, you will however receive a list.

And a&nbsp;list of customers returns not the full data of each customer by design.
