# Add sort parameter to GET /crm/v3/objects/{object}

**URL:** <https://community.hubspot.com/t/add-sort-parameter-to-get-crm-v3-objects-object/90371>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [September 25, 2023, 8:38am UTC](https://community.hubspot.com/t/add-sort-parameter-to-get-crm-v3-objects-object/90371 "2023-09-25T08:38:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [September 25, 2023, 8:38am UTC](https://community.hubspot.com/t/add-sort-parameter-to-get-crm-v3-objects-object/90371/1 "2023-09-25T08:38:23Z")

</div>

I need to get recently archived objects (e.g. contacts) for the last week. I am sending a request:  
**GET [https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=true](https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=true)**

But the response isn’t sorted by any of the fields. So, I need to get all archived contacts (10 pages).  
Please add a **sort={field}&direction={ASC,DESC} (e.g. sort=archivedAt&direction=DESC in my case) parameters to GET`/crm/v3/objects/{object}.`**

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 25, 2023, 8:18pm UTC](https://community.hubspot.com/t/add-sort-parameter-to-get-crm-v3-objects-object/90371/2 "2023-09-25T20:18:20Z")

</div>

Hi, @Sachavskyi 👋 Thanks for taking the time to share your product suggestion and feedback. I agree, having sort options similar to what is available in the Search API would be helpful. — [Sort Search Results](https://developers.hubspot.com/docs/api/crm/search#sort-search-results)

If you have a moment, adding your suggestion to the [Ideas Community](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas) and getting some upvotes will be very helpful in getting your suggestion in front of the Product team. If you add a link back to your Idea post, I’ll be sure to give it an upvote to help get the ball rolling.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [September 26, 2023, 1:40pm UTC](https://community.hubspot.com/t/add-sort-parameter-to-get-crm-v3-objects-object/90371/3 "2023-09-26T13:40:52Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074). Here is a link to my idea: [https://community.hubspot.com/t5/HubSpot-Ideas/Add-sort-parameter-to-GET-crm-v3-objects-object/idi-p/855444#M155737](https://community.hubspot.com/t5/HubSpot-Ideas/Add-sort-parameter-to-GET-crm-v3-objects-object/idi-p/855444#M155737)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 26, 2023, 4:51pm UTC](https://community.hubspot.com/t/add-sort-parameter-to-get-crm-v3-objects-object/90371/4 "2023-09-26T16:51:18Z")

</div>

Upvoted!
