# Filtering id greater than

**URL:** <https://community.hubspot.com/t/filtering-id-greater-than/73701>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [January 25, 2023, 1:10pm UTC](https://community.hubspot.com/t/filtering-id-greater-than/73701 "2023-01-25T13:10:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LRIFFELGROEHS](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@LRIFFELGROEHS](https://community.hubspot.com/u/LRIFFELGROEHS)\
**Post date:** [January 25, 2023, 1:10pm UTC](https://community.hubspot.com/t/filtering-id-greater-than/73701/1 "2023-01-25T13:10:34Z")

</div>

Hello,

everytime I try a POST requisition to the v3 search endpoint using this payload I get an error.

```lia-code-sample
{
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "id",
 "operator": "GT",
 "value": 4409651
 }
 ]
 }
 ],
 "sorts": [
 {
 "propertyName": "id",
 "direction": "ASCENDING"
 }
 ],
 "properties": list_of_properties,
 "limit": 100
}

```

---

<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:** [January 26, 2023, 12:00am UTC](https://community.hubspot.com/t/filtering-id-greater-than/73701/2 "2023-01-26T00:00:57Z")

</div>

Hey, @LRIFFELGROEHS 👋 Thanks for posting! In the future, posting your full request, response, and error body will help the community better understand your issue.

To clarify, you are:

- Using this endpoint? **POST** `/crm/v3/objects/deals/search`
- Your goal is to search for deals by using their deal ID? Essentially, “show me all deals with a Deal ID \> 4409651”, correct?
- The internal value for Record ID (Deal ID) is “hs\_object\_id”

 ![CleanShot 2023-01-25 at 16.48.51.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/d/2d93cc887c998cd93554fd1546dc001fb7962584.png)

Here’s a quick test based on what I think you’re trying to accomplish.

- The goal as I understand it — search for Deal with Deal IDs \> than a specific value.

- My request and JSON body:

- Response

- By using the GT operator, I excluded one existing deal, as it has a Record ID lower than the value I used. My query returned 14 deals, but I have 15 total deals in my portal.

In summary, you just needed to use the internal value for this property when searching. There are also a few formatting issues, including missing quotes for some of your values. Easy fixes, though 🙌

Have fun building! — Jaycee
