<?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 Query field in v3 search API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342578#M33503</link>
    <description>&lt;P&gt;I am trying to use the v3 search API (&lt;SPAN&gt;/crm/v3/objects/contacts/search).&amp;nbsp; I've been struggling to understand the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;query&lt;/FONT&gt; &lt;/STRONG&gt;field... I haven't been able to find any documentation on it, or examples.&amp;nbsp; It seems the combination of the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;properties&lt;/FONT&gt; &lt;/STRONG&gt;and &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;filterGroups&lt;/FONT&gt; &lt;/STRONG&gt;fields in the request specifiy what records you want, and what properties you want to retrieve, so what is the purpose of the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;query&lt;/FONT&gt; &lt;/STRONG&gt;field?&amp;nbsp; And can anyone point me at an example of how to use it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm new to HubSpot and decided to dive directly into the v3 API; maybe this is a concept carried over from earlier versions of the API?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 16:16:56 GMT</pubDate>
    <dc:creator>nstansby</dc:creator>
    <dc:date>2020-05-28T16:16:56Z</dc:date>
    <item>
      <title>Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342578#M33503</link>
      <description>&lt;P&gt;I am trying to use the v3 search API (&lt;SPAN&gt;/crm/v3/objects/contacts/search).&amp;nbsp; I've been struggling to understand the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;query&lt;/FONT&gt; &lt;/STRONG&gt;field... I haven't been able to find any documentation on it, or examples.&amp;nbsp; It seems the combination of the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;properties&lt;/FONT&gt; &lt;/STRONG&gt;and &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;filterGroups&lt;/FONT&gt; &lt;/STRONG&gt;fields in the request specifiy what records you want, and what properties you want to retrieve, so what is the purpose of the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;query&lt;/FONT&gt; &lt;/STRONG&gt;field?&amp;nbsp; And can anyone point me at an example of how to use it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm new to HubSpot and decided to dive directly into the v3 API; maybe this is a concept carried over from earlier versions of the API?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 16:16:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342578#M33503</guid>
      <dc:creator>nstansby</dc:creator>
      <dc:date>2020-05-28T16:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342756#M33536</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/132879"&gt;@nstansby&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to HubSpot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The query will search based on the &lt;STRONG&gt;default searchable properties&lt;/STRONG&gt; (&lt;EM&gt;mentioned on this documentation:&amp;nbsp;&lt;/EM&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank"&gt;&lt;EM&gt;CRM API | Search&lt;/EM&gt;&lt;/A&gt;) i.e. for contacts, it would be firstname, hs_additional_emails, phone, hs_object_id, hs_searchable_calculated_phone_number, company, email and lastname.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 07:12:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342756#M33536</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-05-29T07:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342898#M33557</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;, I'd just been looking at the endpoint documentation.&amp;nbsp; The link you sent is exactly what I needed.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 14:18:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/342898#M33557</guid>
      <dc:creator>nstansby</dc:creator>
      <dc:date>2020-05-29T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/377625#M37116</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I have a similar use case where i want to filter by the lastmodifieddate property to get the tickets records since the last timestamp. Is it possible to get this data from the search crm api?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 12:48:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/377625#M37116</guid>
      <dc:creator>kawyns1</dc:creator>
      <dc:date>2020-10-09T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/377944#M37147</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/97465"&gt;@kawyns1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is possible via the HubSpot&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;CRM API | Search&lt;/A&gt;. You can do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=YOUR_HUBSPOT_API_KEY \
  --request POST \
  --header "Content-Type: application/json" \
  --data '{
    "filterGroups":[
      {
        "filters":[
          {
            "propertyName": "lastmodifieddate",
            "operator": "EQ",
            "value": "{{timestamp here}}"
          }
        ]
      }
    ]
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 08:22:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/377944#M37147</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-10-12T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/460556#M45105</link>
      <description>&lt;P&gt;Can anyone give some examples for the PHP in curl ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 11:28:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/460556#M45105</guid>
      <dc:creator>Spark-Y</dc:creator>
      <dc:date>2021-07-16T11:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/532497#M49035</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this API available via URL in the browser? Can you please give me an example of URL rather than curl?&lt;/P&gt;&lt;P&gt;For example, with API version 1, in order to list all contacts with specific properties I can paste in the browser with the following URL.&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=YOUR_HUBSPOT_API_KEY&amp;amp;count=15&amp;amp;&amp;amp;propertyMode=value_and_history&amp;amp;property=YOURPROPERTIES" target="_blank"&gt;https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=YOUR_HUBSPOT_API_KEY&amp;amp;count=15&amp;amp;&amp;amp;propertyMode=value_and_history&amp;amp;property=YOURPROPERTIES&lt;/A&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2021-11-26_15-40-59.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/54611i43875E96C1047F1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2021-11-26_15-40-59.png" alt="Snipaste_2021-11-26_15-40-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 08:44:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/532497#M49035</guid>
      <dc:creator>Long_Nguyen</dc:creator>
      <dc:date>2021-11-26T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/767341#M62159</link>
      <description>&lt;P&gt;This is the correct answer and contains the important structure of the&amp;nbsp;neccessary query object. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 21:19:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/767341#M62159</guid>
      <dc:creator>BEAutoBot</dc:creator>
      <dc:date>2023-03-10T21:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query field in v3 search API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/1131191#M81364</link>
      <description>&lt;P&gt;Man, this document is crazy. That thing should be documented in below section instead of letting developers struggle to search for answer in Google.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/reference/api/crm/engagements/email" target="_blank"&gt;https://developers.hubspot.com/docs/reference/api/crm/engagements/email&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 04:22:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Query-field-in-v3-search-API/m-p/1131191#M81364</guid>
      <dc:creator>christran</dc:creator>
      <dc:date>2025-04-03T04:22:56Z</dc:date>
    </item>
  </channel>
</rss>

