<?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: Hubspot Form API - How to search, filter, order, query results? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/1172164#M82990</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;What You &lt;I&gt;Can&lt;/I&gt; Do with the Forms API:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use this endpoint:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;CODE&gt;GET /marketing/v3/forms?limit=600&amp;amp;archived=false&amp;amp;query=hs&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;STRONG&gt;Supported options:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;limit&lt;/CODE&gt;: Maximum number of forms to return (default is 10, max is 1000).&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;archived&lt;/CODE&gt;: Include/exclude archived forms.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;query&lt;/CODE&gt;: Basic keyword search &lt;STRONG&gt;on form names only&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; What You &lt;I&gt;Cannot&lt;/I&gt; Do:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;No support for:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Filtering by form type, ID, creation date, or other fields.&lt;/LI&gt;
&lt;LI&gt;Sorting results (e.g., A–Z, newest to oldest).&lt;/LI&gt;
&lt;LI&gt;Advanced queries like those in HubSpot's CRM Search API.&lt;/LI&gt;
&lt;LI&gt;You &lt;STRONG&gt;cannot search or filter&lt;/STRONG&gt; beyond form names.&lt;/LI&gt;
&lt;LI&gt;There is &lt;STRONG&gt;no POST search endpoint&lt;/STRONG&gt; for forms.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;🧠 Why This Happens:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The HubSpot &lt;STRONG&gt;backend UI&lt;/STRONG&gt; allows advanced search and filters for forms.&lt;/LI&gt;
&lt;LI&gt;But the &lt;STRONG&gt;public Forms API is limited&lt;/STRONG&gt; and doesn’t expose those same capabilities yet.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Workaround:&lt;/STRONG&gt;&lt;BR /&gt;If you need search/filter/sort in your app:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use the API to fetch &lt;STRONG&gt;all forms&lt;/STRONG&gt; (set a high &lt;CODE&gt;limit&lt;/CODE&gt;).&lt;/LI&gt;
&lt;LI&gt;In your code (e.g. in &lt;STRONG&gt;Next.js&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Manually filter the results by the fields you care about.&lt;/LI&gt;
&lt;LI&gt;Manually sort the results.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Example (JavaScript):&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;const filteredForms = forms&lt;BR /&gt;  .filter(form =&amp;gt; form.name.includes("Contact"))&lt;BR /&gt;  .sort((a, b) =&amp;gt; a.name.localeCompare(b.name));&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt; Final Notes:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;No official support&lt;/STRONG&gt; for advanced searching or sorting on forms yet.&lt;/LI&gt;
&lt;LI&gt;Your only choice for now: fetch everything and &lt;STRONG&gt;handle filtering/sorting client-side&lt;/STRONG&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Keep an eye on HubSpot API updates — they may add these features in the future.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 14:50:17 GMT</pubDate>
    <dc:creator>WebGuruz_Tech</dc:creator>
    <dc:date>2025-07-02T14:50:17Z</dc:date>
    <item>
      <title>Hubspot Form API - How to search, filter, order, query results?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/917731#M70854</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I have created a custom integration with the Hubspot Forms API, which pulls data for a form, and then uses that to render a form on a Next js web app.&lt;BR /&gt;&lt;BR /&gt;The problem I am facing is that I want to be able to search/fitler and order the results that come from the API, however it seems there is no way to do this.&lt;BR /&gt;&lt;BR /&gt;With either a GET request:&lt;BR /&gt;`&lt;SPAN&gt;/marketing/v3/forms/?limit=600&amp;amp;archived=false&lt;STRONG&gt;&amp;amp;query=hs&lt;/STRONG&gt;`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Or a POST request, as it seems there is no api endpoint for this, and the CRM Search endpoints do not include one for forms...&lt;BR /&gt;&lt;BR /&gt;Yet this is possible from the Hubspot backend when looking at forms.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Are you able to provide any assitance?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:32:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/917731#M70854</guid>
      <dc:creator>StevenPrin</dc:creator>
      <dc:date>2024-02-06T12:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot Form API - How to search, filter, orde, query results?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/917789#M70857</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm also exploring a similar feature and encountering challenges with sorting and filtering results from the HubSpot Forms API. It seems there's no direct endpoint or method for achieving this through GET or POST requests. Looking for integration with Sanity Headless CMS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:05:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/917789#M70857</guid>
      <dc:creator>hoektoe</dc:creator>
      <dc:date>2024-02-06T12:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot Form API - How to search, filter, order, query results?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/1172164#M82990</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;What You &lt;I&gt;Can&lt;/I&gt; Do with the Forms API:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use this endpoint:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;CODE&gt;GET /marketing/v3/forms?limit=600&amp;amp;archived=false&amp;amp;query=hs&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;STRONG&gt;Supported options:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;limit&lt;/CODE&gt;: Maximum number of forms to return (default is 10, max is 1000).&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;archived&lt;/CODE&gt;: Include/exclude archived forms.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;query&lt;/CODE&gt;: Basic keyword search &lt;STRONG&gt;on form names only&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; What You &lt;I&gt;Cannot&lt;/I&gt; Do:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;No support for:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Filtering by form type, ID, creation date, or other fields.&lt;/LI&gt;
&lt;LI&gt;Sorting results (e.g., A–Z, newest to oldest).&lt;/LI&gt;
&lt;LI&gt;Advanced queries like those in HubSpot's CRM Search API.&lt;/LI&gt;
&lt;LI&gt;You &lt;STRONG&gt;cannot search or filter&lt;/STRONG&gt; beyond form names.&lt;/LI&gt;
&lt;LI&gt;There is &lt;STRONG&gt;no POST search endpoint&lt;/STRONG&gt; for forms.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;🧠 Why This Happens:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The HubSpot &lt;STRONG&gt;backend UI&lt;/STRONG&gt; allows advanced search and filters for forms.&lt;/LI&gt;
&lt;LI&gt;But the &lt;STRONG&gt;public Forms API is limited&lt;/STRONG&gt; and doesn’t expose those same capabilities yet.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Workaround:&lt;/STRONG&gt;&lt;BR /&gt;If you need search/filter/sort in your app:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use the API to fetch &lt;STRONG&gt;all forms&lt;/STRONG&gt; (set a high &lt;CODE&gt;limit&lt;/CODE&gt;).&lt;/LI&gt;
&lt;LI&gt;In your code (e.g. in &lt;STRONG&gt;Next.js&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Manually filter the results by the fields you care about.&lt;/LI&gt;
&lt;LI&gt;Manually sort the results.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Example (JavaScript):&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;const filteredForms = forms&lt;BR /&gt;  .filter(form =&amp;gt; form.name.includes("Contact"))&lt;BR /&gt;  .sort((a, b) =&amp;gt; a.name.localeCompare(b.name));&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt; Final Notes:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;No official support&lt;/STRONG&gt; for advanced searching or sorting on forms yet.&lt;/LI&gt;
&lt;LI&gt;Your only choice for now: fetch everything and &lt;STRONG&gt;handle filtering/sorting client-side&lt;/STRONG&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Keep an eye on HubSpot API updates — they may add these features in the future.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 14:50:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Hubspot-Form-API-How-to-search-filter-order-query-results/m-p/1172164#M82990</guid>
      <dc:creator>WebGuruz_Tech</dc:creator>
      <dc:date>2025-07-02T14:50:17Z</dc:date>
    </item>
  </channel>
</rss>

