<?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: Custom object API export in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/840860#M66864</link>
    <description>&lt;P&gt;Is the API call for a custom ojecct schema "&lt;A href="https://api.hubapi.com/crm/v3/schemas/{custom_object_id}&amp;quot;" target="_blank"&gt;https://api.hubapi.com/crm/v3/schemas/{custom_object_id}"&lt;/A&gt;&amp;nbsp;what you are looking for?&lt;/P&gt;</description>
    <pubDate>Sun, 27 Aug 2023 21:57:45 GMT</pubDate>
    <dc:creator>SteveHTM</dc:creator>
    <dc:date>2023-08-27T21:57:45Z</dc:date>
    <item>
      <title>Custom object API export</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/840506#M66850</link>
      <description>&lt;P&gt;First off hubspot makes it really easy to get all native objects out of hubspot a number of ways. The Way I prefer is using this&lt;/P&gt;&lt;LI-CODE lang="python"&gt;company = api_client.crm.companies.get_all(properties=[])&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Is there a simliar call for custom objects? I have not found one and this is what my current attempt is to kinda do the same thing. However it will need adjustment since the database will grow above the set number for 52 calls needed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;iter_id = 0
while i &amp;lt; 52:
    branch = client.crm.objects.basic_api.get_page(object_type="branches",
                                                   limit=100,
                                                   after=iter_id,
                                                   properties=["hs_object_id"]                            
                                                   archived=False)
    #pprint(branch)

    branch = branch.to_dict()

    for data in branch['results']:
        branch_data = {
                       'Hubspot ID': bran['properties']['hs_object_id'],
                       }

        iter_id = data['properties']['hs_object_id']
        branch_list.append(branch_data)

    i += 1&lt;/LI-CODE&gt;&lt;P&gt;Any guidance is appreciated. End goal is to put the data in a csv file using API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I know there is a way to download it using this &lt;A href="https://developers.hubspot.com/docs/api/crm/exports" target="_blank" rel="noopener"&gt;export endpoint&lt;/A&gt;&amp;nbsp;however I think that requires a manual download and that is not wanted&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:42:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/840506#M66850</guid>
      <dc:creator>DLee31</dc:creator>
      <dc:date>2023-08-25T20:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object API export</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/840860#M66864</link>
      <description>&lt;P&gt;Is the API call for a custom ojecct schema "&lt;A href="https://api.hubapi.com/crm/v3/schemas/{custom_object_id}&amp;quot;" target="_blank"&gt;https://api.hubapi.com/crm/v3/schemas/{custom_object_id}"&lt;/A&gt;&amp;nbsp;what you are looking for?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 21:57:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/840860#M66864</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2023-08-27T21:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object API export</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/841129#M66893</link>
      <description>&lt;P&gt;Correct. That shows you what custom objects you have created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking for a way to download all objects associated with my custom object called "branch". Above is a way to do it however I was hoping for a similar way to what you can do with the native objects&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:46:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-object-API-export/m-p/841129#M66893</guid>
      <dc:creator>DLee31</dc:creator>
      <dc:date>2023-08-28T13:46:44Z</dc:date>
    </item>
  </channel>
</rss>

