# Python code to get a view as table

**URL:** <https://community.hubspot.com/t/python-code-to-get-a-view-as-table/92635>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [October 26, 2023, 6:35am UTC](https://community.hubspot.com/t/python-code-to-get-a-view-as-table/92635 "2023-10-26T06:35:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AE9](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@AE9](https://community.hubspot.com/u/AE9)\
**Post date:** [October 26, 2023, 6:35am UTC](https://community.hubspot.com/t/python-code-to-get-a-view-as-table/92635/1 "2023-10-26T06:35:10Z")

</div>

Hi,  
I am new to hubspot and we use enterprise edition for crm management.  
The requirement is , we have created a custom object devices.  
When i go there i can see a view there  
When i tried to fetch the data of that custom object “devices” with api i get all the data , but not in the format as i see theres as view.  
How can i get that?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 27, 2023, 9:49pm UTC](https://community.hubspot.com/t/python-code-to-get-a-view-as-table/92635/2 "2023-10-27T21:49:39Z")

</div>

Hi, @AE9 👋 Welcome to the community!

Have you looked into the Exports API endpoints? Specifically, the endpoint to [Export a View](https://developers.hubspot.com/docs/api/crm/exports#export-a-view)?

If not, I have a few questions to help the community better understand how to help you:

- Can you specify which endpoint you are using?
- Can you share a simple request and response? You can use the on-page example for the endpoint and copy + paste it here after making the call
- What are you expecting to see versus what are you getting back? Is it that you are only getting back a small set of properties and not all the properties for your custom object? Or is it another issue?

Thank you! — Jaycee
