# Reading latest archived deal objects with crm.objects V3

**URL:** <https://community.hubspot.com/t/reading-latest-archived-deal-objects-with-crm-objects-v3/129537>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [April 8, 2025, 10:38pm UTC](https://community.hubspot.com/t/reading-latest-archived-deal-objects-with-crm-objects-v3/129537 "2025-04-08T22:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shamita](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Shamita](https://community.hubspot.com/u/Shamita)\
**Post date:** [April 8, 2025, 10:38pm UTC](https://community.hubspot.com/t/reading-latest-archived-deal-objects-with-crm-objects-v3/129537/1 "2025-04-08T22:38:24Z")

</div>

I’m looking to grab all deals within last year from the Hubspot API. I was able to do this using the search API to order deals by create date. However, I need to find archived deals which aren’t shown by the search API. I’m looking at the basic objects API ([here](https://developers.hubspot.com/docs/reference/api/crm/objects/objects)), but I am not sure if this allows filtering by date. Does anyone know how to do this? (Using in Python)

---

<div class="post-metadata">

**Author:** ![nickdeckerdevs1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickdeckerdevs1/32/5198_2.png) [@nickdeckerdevs1](https://community.hubspot.com/u/nickdeckerdevs1)\
**Post date:** [April 9, 2025, 2:59am UTC](https://community.hubspot.com/t/reading-latest-archived-deal-objects-with-crm-objects-v3/129537/2 "2025-04-09T02:59:52Z")

</div>

For this you will just need to paginate through all of the [object records via the api](https://developers.hubspot.com/docs/reference/api/crm/objects/objects#get-%2Fcrm%2Fv3%2Fobjects%2F%7Bobjecttype%7D) -- and use the archived flag. You should paginate through all of the records until you have them all, then you will need to reduce down your results based upon the create date.

make sure you set the archived Boolean to true in your api calls.

this will allow you to get all within the create date and not use search.  
does this make sense?
