<?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 API for access custom objects Property in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803390#M64634</link>
    <description>&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;I would like to make a decision about the property of one of my custom objects. Is there any API available for this requirement?&lt;/P&gt;&lt;P&gt;I am including the image of the custom objects included in my account.&lt;/P&gt;&lt;P&gt;I need to get the properties of the custom object that have the name "property".&lt;/P&gt;&lt;P&gt;In the image the property value(1) is needed and is a property of a custom object named property (2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aiswarya_0-1686042346681.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/92312i91D8553AE7A9CA99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aiswarya_0-1686042346681.png" alt="Aiswarya_0-1686042346681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 09:08:06 GMT</pubDate>
    <dc:creator>Aiswarya</dc:creator>
    <dc:date>2023-06-06T09:08:06Z</dc:date>
    <item>
      <title>API for access custom objects Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803390#M64634</link>
      <description>&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;I would like to make a decision about the property of one of my custom objects. Is there any API available for this requirement?&lt;/P&gt;&lt;P&gt;I am including the image of the custom objects included in my account.&lt;/P&gt;&lt;P&gt;I need to get the properties of the custom object that have the name "property".&lt;/P&gt;&lt;P&gt;In the image the property value(1) is needed and is a property of a custom object named property (2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aiswarya_0-1686042346681.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/92312i91D8553AE7A9CA99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aiswarya_0-1686042346681.png" alt="Aiswarya_0-1686042346681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 09:08:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803390#M64634</guid>
      <dc:creator>Aiswarya</dc:creator>
      <dc:date>2023-06-06T09:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: API for access custom objects Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803400#M64636</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/579818"&gt;@Aiswarya&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Retrieve the properties of a specific custom object, you can use the "Get all properties for a specific object" endpoint of the HubSpot API. Here's an example of how you can achieve this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import requests

# Set up your authentication headers
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}

# Replace 'objectType' with the name of your custom object type
object_type = 'property'

# Send a GET request to retrieve the properties
url = f'https://api.hubapi.com/crm/v3/properties/{object_type}'
response = requests.get(url, headers=headers)

if response.status_code == 200:
    properties = response.json().get('results', [])
    
    for property in properties:
        property_name = property.get('name')
        property_value = property.get('value')
        print(f"Property Name: {property_name}, Property Value: {property_value}")
else:
    print(f"Error: {response.status_code} - {response.text}")
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;replace 'YOUR_API_KEY' with your actual HubSpot API key. Also, update the 'objectType' variable with the name of your custom object type, which in your case is 'property'.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 09:40:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803400#M64636</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2023-06-06T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: API for access custom objects Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803420#M64639</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/579818"&gt;@Aiswarya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yout want to get a specific custom object property &lt;STRONG&gt;value&lt;/STRONG&gt;, please try this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;method: GET&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/{CUSTOM_OBJECT_ID}/{OBJECT_ID}?properties={PROPERTY_INTERNAL_NAME" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/{CUSTOM_OBJECT_ID}/{OBJECT_ID}?properties={PROPERTY_INTERNAL_NAME&lt;/A&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example response:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "id": "XXXXXX",
  "properties":{
    "hs_createdate": "",
    "hs_lastmodifieddate": "",
    "hs_object_id": "XXXXXXX",
    ...
  },
"createdAt": "...",
"updatedAt": "...",
"archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get a list of custom object , please try this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;method: GET&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/{CUSTOM_OBJECT_ID}/{OBJECT_ID}?properties={PROPERTY_INTERNAL_NAME" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/{CUSTOM_OBJECT_ID}/{OBJECT_ID}?properties={PROPERTY_INTERNAL_NAME&lt;/A&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-how to get custom object id&lt;/P&gt;
&lt;P&gt;View the list of custom objects in browser.&lt;/P&gt;
&lt;P&gt;Please check url.&lt;/P&gt;
&lt;P&gt;like this.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://app.hubspot.com/contacts/{PORTAL_ID}/objects/" target="_blank"&gt;https://app.hubspot.com/contacts/{PORTAL_ID}/objects/&lt;/A&gt;{&lt;STRONG&gt;CUSTOM_OBJECT_ID&lt;/STRONG&gt;}/views/all/list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-how to get internal name&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/crm-setup/manage-your-properties" target="_blank"&gt;https://knowledge.hubspot.com/crm-setup/manage-your-properties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:00:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/803420#M64639</guid>
      <dc:creator>skimura</dc:creator>
      <dc:date>2023-06-06T10:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: API for access custom objects Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/804487#M64706</link>
      <description>&lt;P&gt;I have tried with this URL "&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/properties/property" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/properties/property&lt;/A&gt;&lt;/SPAN&gt;" but it is not working. Please help me to find a solution.&lt;/P&gt;&lt;P&gt;I want to search for a field within the property. Please advise me a way to the same.&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 04:46:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-for-access-custom-objects-Property/m-p/804487#M64706</guid>
      <dc:creator>Aiswarya</dc:creator>
      <dc:date>2023-06-08T04:46:09Z</dc:date>
    </item>
  </channel>
</rss>

