# Filter Get Results to previous 7 days from current date

**URL:** <https://community.postman.com/t/filter-get-results-to-previous-7-days-from-current-date/69397>\
**Category:** Help Hub\
**Tags:** filter, syntax\
**Created:** [October 7, 2024, 3:24pm UTC](https://community.postman.com/t/filter-get-results-to-previous-7-days-from-current-date/69397 "2024-10-07T15:24:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfontenot2022](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jfontenot2022](https://community.postman.com/u/jfontenot2022)\
**Post date:** [October 7, 2024, 3:24pm UTC](https://community.postman.com/t/filter-get-results-to-previous-7-days-from-current-date/69397/1 "2024-10-07T15:24:22Z")

</div>

Can anyone help with syntax to filter api get results to only pull the previous 7 days?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 8, 2024, 1:42pm UTC](https://community.postman.com/t/filter-get-results-to-previous-7-days-from-current-date/69397/2 "2024-10-08T13:42:41Z")

</div>

Hey @jfontenot2022 👋

Welcome to the Postman Community! :postman:

Unfortunately, there is not enough information and context for anyone to even begin to provide a solution. 🙏

Which API are you using? Are you following some documentation? Do you know that the endpoint has been implemented with the ability to filter the responses in that way?

Depending on the response, you could create a script which would filter the response body and show those results in the Postman console but that would also mean that you would need to provide that information so that we can see the structure.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 7, 2024, 1:43pm UTC](https://community.postman.com/t/filter-get-results-to-previous-7-days-from-current-date/69397/3 "2024-11-07T13:43:11Z")

</div>

Closed on November 7, 2024, 1:43pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
