You can create a separate list in HubSpot with contact and owner id and then filter through it using api another option is you can get all contacts and loop through them to filter accordingly the owner id.
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.