I'm not sure how to get some information from the API, such as BDR, LDR, type of business, etc.

There is some information about "deals" that I am not able to get via API. I'll attach images here of what I intend to get and how I'm getting it:``

Hi @RonaldoRubens22 :waving_hand:

You’ll need to specify which properties you’d like the API to respond with. If you don’t specify your target properties, the API responds with a short list of default properties. Below is an example using Python’s “requests” package where I’m requesting (via the query parameter “properties”) “dealname” and “amount” be returned in the response. You can grab the internal property names from HubSpot’s web UI (Settings > Properties > Select “Deals”) or via the Properties API.

import requests
all_deals = []
endpoint = "https://api.hubapi.com/crm/v3/objects/deals"
headers = {
 "authorization": "Bearer YOUR-ACCESS-TOKEN"
}
params = {
 "properties": "dealname,amount",
 "limit": 100,
 "archived": False
}
response = requests.get(endpoint, headers=headers, params=params)
for result in response.json()["results"]:
 all_deals.append(result)

# handle pagination
while "paging" in response.json().keys():
 endpoint = response.json()["paging"]["next"]["link"]
 response = requests.get(endpoint, headers=headers)
 for result in response.json()["results"]:
 all_deals.append(result)

print(all_deals)

Note that, for simplicity’s sake, I haven’t handled API errors in my example. I have handled pagination, so the above is equivalent to the get_all method you included in your example.

I hope this proves useful. Please let me know if you have any follow-up questions.