# APIs and Endpoints

**URL:** <https://community.hubspot.com/t/apis-and-endpoints/77780>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [March 22, 2023, 8:51pm UTC](https://community.hubspot.com/t/apis-and-endpoints/77780 "2023-03-22T20:51:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![igorchaida](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/igorchaida/32/198107_2.png) [@igorchaida](https://community.hubspot.com/u/igorchaida)\
**Post date:** [March 22, 2023, 8:51pm UTC](https://community.hubspot.com/t/apis-and-endpoints/77780/1 "2023-03-22T20:51:42Z")

</div>

Hi everyone,

I would like to export some log data from Hubspot and I need to understand a little bit more about API and Endpoints, I’m sending below some questions below:

- Where in the documentation do I find all the parameters that can be used within properties in the API calls of all endpoints?
- When an action (note, email, message) is not associated with a business, can I retrieve in the API the relation of the data?
- When endpoint can I consume to have all the history of the business that is registered in Hubspot? Business data and all the messages that were linked to it?
- What is the Entity-Relationship Model or Entity-Relationship Diagram of the data that is retrieved by the endpoints?
- The most current python lib for consuming the endpoint data is hubspot-api-client 7.5.0?
- What is the consumption limit of the endpoints? The question is because we want to extract all data from the start of the operation.

Thank you in advance,

Igor Chaida

---

<div class="post-metadata">

**Author:** ![TDwebdev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tdwebdev/32/78032_2.png) [@TDwebdev](https://community.hubspot.com/u/TDwebdev)\
**Post date:** [March 29, 2023, 8:24am UTC](https://community.hubspot.com/t/apis-and-endpoints/77780/2 "2023-03-29T08:24:41Z")

</div>

Hi igorchaid,

Did you see the documentation at: [2026-03 API reference - HubSpot docs](https://legacydocs.hubspot.com/docs/overview)

Example in python:

```lia-code-sample
import requests

# Replace with your HubSpot access token
access_token = 'your_access_token'

# Set up the headers with Bearer authentication
headers = {
 'Authorization': f'Bearer {access_token}',
 'Content-Type': 'application/json',
}

# Replace the following URL with the HubSpot API endpoint you want to call
url = 'https://api.hubapi.com/crm/v3/objects/contacts'

# Make a GET request to the HubSpot API
response = requests.get(url, headers=headers)

# Check if the request was successful
if response.status_code == 200:
 # Parse the JSON response
 data = response.json()

 # Print the retrieved data
 print(data)
else:
 print(f'Request failed with status code {response.status_code}')

```
