<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filter API Request by timestamp in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/526262#M48708</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;thank you for your answer, it worked.&lt;/P&gt;&lt;P&gt;I would like to ask if it's possible to get the properties of Feedback from some API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even Feedback is an Object type in Hubspot. This doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;client.crm.properties.core_api.get_all(&lt;SPAN&gt;object_type&lt;/SPAN&gt;='FEEDBACK'&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                                        &lt;SPAN&gt;archived&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 09:52:10 GMT</pubDate>
    <dc:creator>HOrdonez</dc:creator>
    <dc:date>2021-11-15T09:52:10Z</dc:date>
    <item>
      <title>Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/513614#M47924</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if there is any way to add a timestamp (or date) in order to filter the results for an API request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have beeen doing for now is getting all the data and filter by myself later on, but this solution is not scalable and I don't want to collapse the API limit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I want to get feedback submissions (in python), right now I'm doing:&lt;/P&gt;&lt;PRE&gt;client.crm.objects.feedback_submissions.basic_api.get_page()&lt;/PRE&gt;&lt;P&gt;Is there any way to add a time range, a `from` or a `to` in the request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if there is any way to get the list of properties that I can add to the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:15:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/513614#M47924</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-21T09:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/514449#M47978</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt; , &lt;/P&gt;
&lt;P&gt;You should explore the &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;search endpoints&lt;/A&gt;.&amp;nbsp; You can use a filter group with a from and to range&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:51:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/514449#M47978</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-22T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/515972#M48075</link>
      <description>&lt;P&gt;Thank you for your answer &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;. I cannot find which Object Type is associated with &lt;STRONG&gt;&lt;EM&gt;feedback_submissions&lt;/EM&gt;&lt;/STRONG&gt; or if it's available the &lt;EM&gt;&lt;STRONG&gt;search&lt;/STRONG&gt;&lt;/EM&gt; option for it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 12:28:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/515972#M48075</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-26T12:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/516869#M48153</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feedback submissions is an Object.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see details on the endpoints, including search &lt;A href="https://developers.hubspot.com/docs/api/crm/feedback-submissions" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 18:11:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/516869#M48153</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-27T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/517355#M48168</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;.&amp;nbsp;I see that Feedback Submission has a search endpoint in the documentation that you sent, but is not in the other one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Python proposed implementation is not updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the one you provide:&lt;/P&gt;&lt;PRE&gt;client.crm.feedback_submissions.search_api.do_search(&lt;BR /&gt;public_object_search_request=public_object_search_request)&lt;/PRE&gt;&lt;P&gt;This is the one I think it should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;client.crm.objects.feedback_submissions.search_api.do_search(&lt;BR /&gt;    &lt;SPAN&gt;public_object_search_request&lt;/SPAN&gt;=public_object_search_request)&lt;/PRE&gt;&lt;P&gt;I would like to ask as well, if I want to filter the feedback submitted after yesterday using `hs_lastmodifieddate`, I declare the following object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public_object_search_request = &lt;BR /&gt;PublicObjectSearchRequest(filter_groups=[{"filters":[{"value":"2021-10-27",&lt;BR /&gt;"propertyName":"hs_lastmodifieddate","operator":"GT"}]}],&lt;BR /&gt; properties=["hs_lastmodifieddate"], limit=0, after=0)&lt;/PRE&gt;&lt;P&gt;But I'm getting that exception, so I may be doing something wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hubspot.crm.objects.feedback_submissions.exceptions.ApiException: (400)&lt;BR /&gt;Reason: Bad Request&lt;BR /&gt;HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 28 Oct 2021 13:14:26 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Content-Length': '123', 'Connection': 'keep-alive', 'CF-Ray': 'X', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'Vary': 'Accept-Encoding', 'CF-Cache-Status': 'DYNAMIC', 'Access-Control-Allow-Credentials': 'false', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'X-HubSpot-Correlation-Id': 'X', 'X-HubSpot-RateLimit-Daily': '500000', 'X-HubSpot-RateLimit-Daily-Remaining': 'X', 'X-Trace': 'X', 'Report-To': '{"endpoints":[{"url":"x"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}', 'Server': 'cloudflare', 'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400'})&lt;BR /&gt;HTTP response body: {"status":"error","message":"There was a problem with the request.","correlationId":"x"}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 14:16:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/517355#M48168</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-28T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/517395#M48172</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt; .&lt;/P&gt;
&lt;P&gt;I will check with the team on why this object is not in the search documentation.&lt;/P&gt;
&lt;P&gt;Why do you think that implementation is incorrect.&amp;nbsp; It appears consistent with the other objects' python examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the error, try using a unix timestamp&amp;nbsp; as your value.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 14:47:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/517395#M48172</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-28T14:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/517410#M48174</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;&amp;nbsp;The CRM Discovery object has not feedback_submission property, this one is inside object as I mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the timestamp to unix timestamp, the API call doesn't have a Bad Request, but it returns nothing. Even using unix_timestamp as 10, the response is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public_object_search_request = &lt;BR /&gt;PublicObjectSearchRequest(filter_groups=[{"filters":[{"value":"10",&lt;BR /&gt;"propertyName":"hs_lastmodifieddate","operator":"GT"}]}],&lt;BR /&gt; properties=["hs_lastmodifieddate"], limit=0, after=0)&lt;/PRE&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 19:01:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/517410#M48174</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-29T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/519617#M48324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;, any update?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 14:25:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/519617#M48324</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-11-02T14:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/520947#M48392</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt; , make sure you are using milliseconds for the unix timestamp.&lt;/P&gt;
&lt;P&gt;I tested with this request successfully:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "value": "1635032689886",
          "propertyName": "hs_lastmodifieddate",
          "operator": "GT"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Nov 2021 13:37:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/520947#M48392</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-11-04T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/526262#M48708</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;thank you for your answer, it worked.&lt;/P&gt;&lt;P&gt;I would like to ask if it's possible to get the properties of Feedback from some API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even Feedback is an Object type in Hubspot. This doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;client.crm.properties.core_api.get_all(&lt;SPAN&gt;object_type&lt;/SPAN&gt;='FEEDBACK'&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                                        &lt;SPAN&gt;archived&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 09:52:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/526262#M48708</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-11-15T09:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter API Request by timestamp</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/527025#M48757</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt; , you should be able to hit the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank"&gt;properties endpoint&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://api.hubapi.com/crm/v3/properties/feedback_submissions" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/feedback_submissions&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 15:49:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-API-Request-by-timestamp/m-p/527025#M48757</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-11-16T15:49:40Z</dc:date>
    </item>
  </channel>
</rss>

