<?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 Filtering object properties with python client API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104242#M80119</link>
    <description>&lt;P&gt;I need to retrieve company properties through the API in a python script. I want to filter the results and only get the following properties : name,fieldType,createdAt,updatedAt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I test on the API doc website with my private app token, everything works well and I only get the requested properties :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the result when using the doc (works)" style="width: 297px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137678iE1120D2CF2FE21F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="api-doc.png" alt="the result when using the doc (works)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the result when using the doc (works)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I copy-paste the code in my editor and run it, the filter doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the result in my code (doesn't work)" style="width: 393px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137679iA06902CB12A8C440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="properties.png" alt="the result in my code (doesn't work)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the result in my code (doesn't work)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since the code ad the API are the same, I suspect it might come from a difference in the library used locally and on the website?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For reference, I use version hubspot package 0.1.14.dev0 and hubspot-api-client 11.1.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I used cURL and used the following URL, it works well : &lt;A href="https://api.hubapi.com/crm/v3/properties/company?archived=false&amp;amp;properties=name,fieldType,createdAt,updatedAt" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/properties/company?archived=false&amp;amp;properties=name,fieldType,createdAt,updatedAt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 11:44:59 GMT</pubDate>
    <dc:creator>NRIO</dc:creator>
    <dc:date>2025-02-05T11:44:59Z</dc:date>
    <item>
      <title>Filtering object properties with python client API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104242#M80119</link>
      <description>&lt;P&gt;I need to retrieve company properties through the API in a python script. I want to filter the results and only get the following properties : name,fieldType,createdAt,updatedAt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I test on the API doc website with my private app token, everything works well and I only get the requested properties :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the result when using the doc (works)" style="width: 297px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137678iE1120D2CF2FE21F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="api-doc.png" alt="the result when using the doc (works)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the result when using the doc (works)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I copy-paste the code in my editor and run it, the filter doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the result in my code (doesn't work)" style="width: 393px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137679iA06902CB12A8C440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="properties.png" alt="the result in my code (doesn't work)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the result in my code (doesn't work)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since the code ad the API are the same, I suspect it might come from a difference in the library used locally and on the website?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For reference, I use version hubspot package 0.1.14.dev0 and hubspot-api-client 11.1.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I used cURL and used the following URL, it works well : &lt;A href="https://api.hubapi.com/crm/v3/properties/company?archived=false&amp;amp;properties=name,fieldType,createdAt,updatedAt" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/properties/company?archived=false&amp;amp;properties=name,fieldType,createdAt,updatedAt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 11:44:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104242#M80119</guid>
      <dc:creator>NRIO</dc:creator>
      <dc:date>2025-02-05T11:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering objetct properties with python client API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104535#M80136</link>
      <description>&lt;P&gt;Hi, &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/789860"&gt;@NRIO&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for posting, Welcome to our community! I'd like to ask a few of our community champions if they have any troubleshooting suggestions — 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/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt; &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/241684"&gt;@ChrisoKlepke&lt;/a&gt;&lt;/SPAN&gt;, do you have any Python wisdom you can share with &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/789860"&gt;@NRIO&lt;/a&gt;&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 22:00:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104535#M80136</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-02-05T22:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering object properties with python client API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104611#M80142</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/789860"&gt;@NRIO&lt;/a&gt;&amp;nbsp;- I suspect that you are correct in identifying a potential difference in the HubSpot library use here. For my own sanity, I typically use the "bare metal" request/response calls where the actual URL being used in the base API call is front and center rather than being obscured by a layer of API code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can definitely vouch that the base API call itself works to specifically return the requested properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 03:14:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filtering-object-properties-with-python-client-API/m-p/1104611#M80142</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2025-02-06T03:14:27Z</dc:date>
    </item>
  </channel>
</rss>

