I am getting below response only using below code:
but, I am looking for all the companies and contacts details not only count.
client = hubspot.Client.create(access_token=access_token)
list_search_request = ListSearchRequest(
offset=0,
count=0,
additional_properties=[“string”]
)
response = client.crm.lists.lists_api.do_search(
list_search_request=list_search_request
)
Response:
{‘additional_properties’: {‘hs_list_reference_count’: ‘0’, ‘hs_list_size’: ‘0’}, ‘created_at’: datetime.datetime(2024, 3, 11, 4, 44, 42, 369000, tzinfo=tzlocal()), ‘created_by_id’: 63849904, ‘deleted_at’: None, ‘filters_updated_at’: datetime.datetime(2024, 3, 11, 4, 44, 42, 369000, tzinfo=tzlocal()), ‘list_id’: 2, ‘list_version’: 1, ‘name’: ‘MyCompanyList’, ‘object_type_id’: ‘0-2’, ‘processing_status’: ‘COMPLETE’, ‘processing_type’: ‘DYNAMIC’, ‘updated_at’: datetime.datetime(2024, 3, 11, 4, 44, 46, 996000, tzinfo=tzlocal()), ‘updated_by_id’: 63849904}{‘additional_properties’: {‘hs_last_record_added_at’: ‘1710235822948’, ‘hs_list_reference_count’: ‘0’, ‘hs_list_size’: ‘3’}, ‘created_at’: datetime.datetime(2024, 3, 11, 9, 41, 5, 304000, tzinfo=tzlocal()), ‘created_by_id’: 63849904, ‘deleted_at’: None, ‘filters_updated_at’: datetime.datetime(2024, 3, 12, 9, 30, 20, 889000, tzinfo=tzlocal()), ‘list_id’: 3, ‘list_version’: 2, ‘name’: ‘MyContactList’, ‘object_type_id’: ‘0-1’, ‘processing_status’: ‘COMPLETE’, ‘processing_type’: ‘DYNAMIC’, ‘updated_at’: datetime.datetime(2024, 3, 12, 9, 30, 23, 113000, tzinfo=tzlocal()), ‘updated_by_id’: 63849904}{‘additional_properties’: {‘hs_list_reference_count’: ‘0’, ‘hs_list_size’: ‘0’}, ‘created_at’: datetime.datetime(2024, 3, 12, 6, 14, 18, 967000, tzinfo=tzlocal()), ‘created_by_id’: 63849904, ‘deleted_at’: None, ‘filters_updated_at’: datetime.datetime(2024, 3, 12, 6, 14, 18, 967000, tzinfo=tzlocal()), ‘list_id’: 4, ‘list_version’: 1, ‘name’: ‘Static-ContactList’, ‘object_type_id’: ‘0-1’, ‘processing_status’: ‘COMPLETE’, ‘processing_type’: ‘MANUAL’, ‘updated_at’: datetime.datetime(2024, 3, 12, 6, 14, 19, 129000, tzinfo=tzlocal()), ‘updated_by_id’: 63849904}