<?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: Contact search API query string is limited to 200 characters in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1225142#M85563</link>
    <description>&lt;P&gt;Thank you, this seems to work in the interim&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2025 15:26:06 GMT</pubDate>
    <dc:creator>PR74</dc:creator>
    <dc:date>2025-11-18T15:26:06Z</dc:date>
    <item>
      <title>Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1224572#M85524</link>
      <description>&lt;P&gt;It seems there is a bug with the contact search API when doing conditional searching for email addresses. The documentation states that the query property can be 3000 characters long (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-contacts-v3/search/post-crm-v3-objects-contacts-search#body-query" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/crm-contacts-v3/search/post-crm-v3-objects-contacts-search#body-query&lt;/A&gt;). However, if my request exceeds 200 characters for the query property, I get an error response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/search" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/contacts/search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this payload&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "query": "john.doe@eb3c98816-c3ab-11f0-a584-63ba2f7fb723.com OR john.doe@bd42b3c2-c3ab-11f0-8770-dfb98893914e.com OR john.doe@c2bb4c2e-c3ab-11f0-bed5-d33480d22c18.com OR john.doe@c86258ac-c3ab-11f0-ba78-ff99757320fe.com"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;returns this response&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "status": "error",&lt;BR /&gt;  "message": "There was a problem with the request.",&lt;BR /&gt;  "correlationId": "f3dfb058-4345-4a6e-8081-388ea8292149"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whereas this payload where the length of the query string has been arbitrarily reduced to 200 characters&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "query": "john.doe@eb3c98816-c3ab-11f0-a584-63ba2f7fb723.com OR john.doe@bd42b3c2-c3ab-11f0-8770-dfb98893914e.com OR john.doe@c2bb4c2e-c3ab-11f0-bed5-d33480d22c18.com OR john.doe@c86258ac-c3ab-11f0-ba78-ff9.com"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;returns the (expected) response&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "total": 0,&lt;BR /&gt;  "results": []&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 12:04:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1224572#M85524</guid>
      <dc:creator>PR74</dc:creator>
      <dc:date>2025-11-17T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1224798#M85535</link>
      <description>&lt;P&gt;Hey hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/997636"&gt;@PR74&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; Thanks for flagging this. This is definitely unexpected. I got the same result just now in my tests. I'll add my examples in a separate thread. My gut says the workaround will be to use FIlter Groups and the IN filter for now. I'm going to take your example and my tests and take it to the dev docs team. I'll reply here once I have more info for us. — Jaycee&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 20:35:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1224798#M85535</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-11-17T20:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1224805#M85536</link>
      <description>&lt;P&gt;Here are my test payloads:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Worked&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
  "query": "test@12345678-abcd-1234-abcd-1234567890ab.com OR test@22345678-abcd-1234-abcd-1234567890ab.com OR test@32345678-abcd-1234-abcd-1234567890ab.com"
}​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Worked&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
  "query": "test@12345678-abcd-1234-abcd-1234567890ab.com OR test@22345678-abcd-1234-abcd-1234567890ab.com OR test@32345678-abcd-1234-abcd-1234567890ab.com OR test@42345678-abcd-1234-abcd-1234567890ab.com"
}​&lt;/LI-CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;(Didn't work &amp;gt; 200 characters)&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
  "query": "test@12345678-abcd-1234-abcd-1234567890ab.com OR test@22345678-abcd-1234-abcd-1234567890ab.com OR test@32345678-abcd-1234-abcd-1234567890ab.com OR test@42345678-abcd-1234-abcd-1234567890ab.com OR test@52345678-abcd-1234-abcd-1234567890ab.com"
}​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;One workaround approach:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "email",
          "operator": "IN",
          "values": [
            "test@12345678-abcd-1234-abcd-1234567890ab.com",
            "test@22345678-abcd-1234-abcd-1234567890ab.com",
            "test@32345678-abcd-1234-abcd-1234567890ab.com",
            "test@42345678-abcd-1234-abcd-1234567890ab.com",
            "test@52345678-abcd-1234-abcd-1234567890ab.com"
          ]
        }
      ]
    }
  ],
  "properties": [
    "email",
    "firstname",
    "lastname"
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 20:49:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1224805#M85536</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-11-17T20:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1225142#M85563</link>
      <description>&lt;P&gt;Thank you, this seems to work in the interim&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 15:26:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1225142#M85563</guid>
      <dc:creator>PR74</dc:creator>
      <dc:date>2025-11-18T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1225202#M85568</link>
      <description>&lt;P&gt;You are welcome! Of all the endpoints we offer, the Search API is the one I've spent the most time with. For better and worse lol &lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 16:32:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1225202#M85568</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-11-18T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1226374#M85608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/997636"&gt;@PR74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the Contact search APi with multiple values on OR. Right now you are using a single string but if you use search then on values you can comma seperated values to use multiple values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this will help you out. Please mark it as &lt;/SPAN&gt;&lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt;&lt;SPAN&gt; to help another Community member.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 11:27:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1226374#M85608</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2025-11-20T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1226695#M85635</link>
      <description>&lt;P data-start="0" data-end="10"&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/997636"&gt;@PR74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="12" data-end="566"&gt;I’ve hit this same edge case before and your testing is spot on. Even though the documentation says the query parameter accepts up to 3000 characters, the conditional OR parser seems to choke once the string goes past roughly 200 chars.&lt;/P&gt;
&lt;P data-start="12" data-end="566"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="12" data-end="566"&gt;It’s not your payload format, it’s how HubSpot tokenizes long OR chains inside the free-text query. HubSpot’s property history and search docs show how this part of the engine behaves differently from filter-based searches (&lt;A href="https://knowledge.hubspot.com/records/view-record-property-history" target="_blank"&gt;https://knowledge.hubspot.com/records/view-record-property-history&lt;/A&gt; )&lt;/P&gt;
&lt;P data-start="568" data-end="936"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="568" data-end="936"&gt;The stable path is exactly what Jaycee highlighted. Use the Search API’s structured filters instead of the free search field. The IN operator avoids the character limit entirely and scales cleanly across dozens or hundreds of emails. HubSpot’s filter groups behave much more predictably for multi-value lookups&amp;nbsp;&lt;/P&gt;
&lt;P data-start="568" data-end="936"&gt;(&lt;A href="https://developers.hubspot.com/docs/api-reference/search/guide" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/search/guide&lt;/A&gt; )&lt;/P&gt;
&lt;P data-start="568" data-end="936"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="938" data-end="1184" data-is-last-node="" data-is-only-node=""&gt;If you end up pulling these large email batches from other systems and syncing into HubSpot, Stacksync keeps both sides aligned in real time so you don’t need to build long OR queries or run heavy search calls in the first place. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 23:18:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1226695#M85635</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-11-20T23:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Contact search API query string is limited to 200 characters</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1226961#M85653</link>
      <description>&lt;P&gt;Thanks for confirming my approach, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537570"&gt;@RubenBurdin&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; I've done the dance with the Search API many times. It's so powerful, and it has quirks. If you or &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/997636"&gt;@PR74&lt;/a&gt;&lt;/SPAN&gt; has a moment, adding this as feedback in the &lt;A href="https://developers.hubspot.com/feedback" target="_blank"&gt;&lt;STRONG&gt;Developer Feedback form&lt;/STRONG&gt;&lt;/A&gt; is helpful. I did the same internally with both of our examples. +1 for teamwork! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 16:27:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-search-API-query-string-is-limited-to-200-characters/m-p/1226961#M85653</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-11-21T16:27:33Z</dc:date>
    </item>
  </channel>
</rss>

