<?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: Using the Search api in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/538213#M49273</link>
    <description>&lt;P&gt;Thank You!!!!!!&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 17:42:03 GMT</pubDate>
    <dc:creator>HNunez</dc:creator>
    <dc:date>2021-12-07T17:42:03Z</dc:date>
    <item>
      <title>Using the Search api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/536379#M49217</link>
      <description>&lt;P&gt;Hi there! I was wondering if there is anyone out there that can help me using the Search api. When I use the the filterGroups parameter I get an error with the "operator" params. I have tried all the avaliable options for its value and even I tried setting it at null and still I get errors. Can someone help me please??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const PublicObjectSearchRequest = { filterGroups: [{"filters":[{"value":"string","propertyName":"string"&lt;U&gt;,"operator":"EQ"&lt;/U&gt;}]}], sorts: ["string"], query: "string", properties: ["string"], limit: 0, after: 0 };&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 19:37:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/536379#M49217</guid>
      <dc:creator>HNunez</dc:creator>
      <dc:date>2021-12-03T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Search api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/537090#M49221</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/290916"&gt;@HNunez&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I tested the code below and it should work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;const hubspot = require('@hubspot/api-client');

const hubspotClient = new hubspot.Client({"apiKey":"YOUR_HUBSPOT_API_KEY"});

const PublicObjectSearchRequest = { filterGroups: [{"filters":[{"value":"Teun","propertyName":"firstname","operator":"EQ"}]}], sorts: ["firstname"], properties: [["firstname","lastname"]], limit: 0, after: 0 };

try {
  const apiResponse = await hubspotClient.crm.contacts.searchApi.doSearch(PublicObjectSearchRequest);
  console.log(JSON.stringify(apiResponse.body, null, 2));
} catch (e) {
  e.message === 'HTTP request failed'
    ? console.error(JSON.stringify(e.response, null, 2))
    : console.error(e)
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you fill in all the required params?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 07:36:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/537090#M49221</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2021-12-06T07:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Search api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/538213#M49273</link>
      <description>&lt;P&gt;Thank You!!!!!!&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:42:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/538213#M49273</guid>
      <dc:creator>HNunez</dc:creator>
      <dc:date>2021-12-07T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Search api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/644512#M53920</link>
      <description>&lt;P&gt;Does this work for custom properties added to a contact?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;/P&gt;&lt;PRE&gt;{ filterGroups: [{"filters":[{"value": "X3vsi8", "propertyName":"app_user_id", "operator": "EQ"}] }&lt;/PRE&gt;&lt;P&gt;Does this search api cover custom fields? And what if our custom field is required - does this change anything?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2022 04:53:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-the-Search-api/m-p/644512#M53920</guid>
      <dc:creator>RVu</dc:creator>
      <dc:date>2022-06-05T04:53:40Z</dc:date>
    </item>
  </channel>
</rss>

