# Configuring contact API response

**URL:** <https://forum.mautic.org/t/configuring-contact-api-response/10670>\
**Category:** Product Support\
**Created:** [August 1, 2018, 1:23pm UTC](https://forum.mautic.org/t/configuring-contact-api-response/10670 "2018-08-01T13:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [August 1, 2018, 1:23pm UTC](https://forum.mautic.org/t/configuring-contact-api-response/10670/1 "2018-08-01T13:23:15Z")

</div>

Hi,

I have I Mautic system with 10.000+ contacts I need to access via the API. First of all I need a list of all contact which were modified within the last 2 days.

I am using the following code to access the contacts:

```auto
$api = new MauticApi();
$contactApi = $api->newApi('contacts', $auth, [API-URL]);
$response = $contactApi->getList();

```

According to the documentation ([https://developer.mautic.org/?php#list-contacts](https://developer.mautic.org/?php#list-contacts)) it is possible to apply configuration parameters when using the `getList()` method, e.g. a limit, a search filter and so on.

Unfortunately I have no idea how to use the `getList()` parameters and I cannot find any reference code.

Any hint is highly appreciated. 🙂

Best,  
Peter

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 17, 2019, 4:33pm UTC](https://forum.mautic.org/t/configuring-contact-api-response/10670/2 "2019-10-17T16:33:28Z")

</div>


