# Custom object API export

**URL:** <https://community.hubspot.com/t/custom-object-api-export/88368>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [August 25, 2023, 8:42pm UTC](https://community.hubspot.com/t/custom-object-api-export/88368 "2023-08-25T20:42:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DLee31](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DLee31](https://community.hubspot.com/u/DLee31)\
**Post date:** [August 25, 2023, 8:42pm UTC](https://community.hubspot.com/t/custom-object-api-export/88368/1 "2023-08-25T20:42:25Z")

</div>

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

`company = api_client.crm.companies.get_all(properties=[])`

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.

```lia-code-sample
iter_id = 0
while i < 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

```

Any guidance is appreciated. End goal is to put the data in a csv file using API.

I know there is a way to download it using this [export endpoint](https://developers.hubspot.com/docs/api/crm/exports) however I think that requires a manual download and that is not wanted

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [August 27, 2023, 9:57pm UTC](https://community.hubspot.com/t/custom-object-api-export/88368/2 "2023-08-27T21:57:45Z")

</div>

Is the API call for a custom ojecct schema "[https://api.hubapi.com/crm/v3/schemas/{custom\_object\_id}"](https://api.hubapi.com/crm/v3/schemas/%7Bcustom_object_id%7D%22) what you are looking for?

---

<div class="post-metadata">

**Author:** ![DLee31](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DLee31](https://community.hubspot.com/u/DLee31)\
**Post date:** [August 28, 2023, 1:46pm UTC](https://community.hubspot.com/t/custom-object-api-export/88368/3 "2023-08-28T13:46:44Z")

</div>

Correct. That shows you what custom objects you have created.

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
