# Get Closed Date From Ticket API

**URL:** <https://community.hubspot.com/t/get-closed-date-from-ticket-api/37938>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [May 26, 2021, 12:56pm UTC](https://community.hubspot.com/t/get-closed-date-from-ticket-api/37938 "2021-05-26T12:56:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iansimpson3](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/iansimpson3/32/78108_2.png) [@iansimpson3](https://community.hubspot.com/u/iansimpson3)\
**Post date:** [May 26, 2021, 12:56pm UTC](https://community.hubspot.com/t/get-closed-date-from-ticket-api/37938/1 "2021-05-26T12:56:20Z")

</div>

Hi,

I’m trying to get the closed date for a ticket(s) by using the search request via a POST request (below URL).

[https://api.hubapi.com/crm/v3/objects/tickets/search?hapikey={{hapikey}](https://api.hubapi.com/crm/v3/objects/tickets/search?hapikey=%7B%7Bhapikey%7D)}

Using the below json:

{

“filterGroups”:[

```
  {

     "filters":\[

        {

           "propertyName":"closedate",

           "operator":"GT",

           "value":"1589414400000"

        }

     ]

  }

```

]

}

I’m getting a 400 Bad Request response … I guess my questions are

- is it possible to get a ticket, or tickets by closed date?
- If so, how is this achived using the ticket (v3) api?

Thanks,

Ian

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 26, 2021, 4:01pm UTC](https://community.hubspot.com/t/get-closed-date-from-ticket-api/37938/2 "2021-05-26T16:01:13Z")

</div>

Hey @iansimpson3

I think you are just not using the correct internal name of closed date here. Try **closed\_date**

You could verify the name by looking either calling the [properties endpoint](https://developers.hubspot.com/docs/api/crm/properties) or searching via the UI

 ![Property_settings.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/c/4c15e0e2614d5499fa3efb4054460ff21c3f67cb.png)

---

<div class="post-metadata">

**Author:** ![iansimpson3](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/iansimpson3/32/78108_2.png) [@iansimpson3](https://community.hubspot.com/u/iansimpson3)\
**Post date:** [May 26, 2021, 4:30pm UTC](https://community.hubspot.com/t/get-closed-date-from-ticket-api/37938/3 "2021-05-26T16:30:21Z")

</div>

Hi @dennisedson ,

This works perfect!! appreciate the help and quick response!!

Thanks,

Ian
