How can I get contacts related with a certain company?

yousan
Participant

Hello.

 

I want to get contacts what are related with a certain company.

 

First, I tried to get a company and find contacts but I cannot find.

https://legacydocs.hubspot.com/docs/methods/companies/get_company

 

Then I tried to use get_contacts and I found "company" section.

https://legacydocs.hubspot.com/docs/methods/contacts/get_contacts

 

 

"contacts": [
    {
      "properties": {
        "company": {
          "value": "Test company"
        },

 

 

But.. it is not useful because

1. company is srting. not Company ID. so I have to search for all companies and find a company (or some companies) matched one.

2. I cannot find contact by company, so I have to search all users. It take a lot of requests

 

Any ideas?

Thank you.

0 Upvotes
1 Reply 1
yousan
Participant

I got a solution!

 

Search for contacts by email, name, phone number, or company

https://legacydocs.hubspot.com/docs/methods/contacts/search_contacts

0 Upvotes