GET All Contacts API - Company name property didn't come


#1

Here is my request url : https://api.hubapi.com/contacts/v1/lists/all/contacts/all?count=100&property=firstname&property=lastname&property=company&property=jobtitle&vidOffset=0

I didn't receive company name in response. In my account, many contact has company name and jobtile.


#2

Make sure that you aren't just looking at ['company'], but ['company']['value']

eg.

contact['company']['value']  vs  contact['company']

#3

Yes. I am looking for contact['company']['value']


#4

Hi @Ramkumar_T,

Can you give me a link to a contact record in your portal that has a value for the Company Name property that does not appear in the API response?


#5

I am experiencing the same issue - this call delivers no company name:
https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=mobilephone&property=phone&property=firstname&property=lastname&property=hs_lead_status&property=email&property=address&property=city&property=state&property=zip&property=country&property=lifecyclestage&property=createdate&property=hubspotscore&property=company

This one as well:
https://api.hubapi.com/contacts/v1/search/query?q=mastroni&property=mobilephone&property=phone&property=firstname&property=lastname&property=hs_lead_status&property=email&property=address&property=city&property=state&property=zip&property=country&property=lifecyclestage&property=createdate&property=hubspotscore&property=company&property=associatedcompanyid

Here is an example contact with a company that would be returned:
https://app.hubspot.com/contacts/3877280/contact/17502/


#6

Hi @Keith_Muenze (and others),

It seems the issue here is a mixup between a contact's associated company, and a contact's 'Company Name' property. These are two distinct things:

  • 'Company Name' is a default contact property that exist on contact records and is most often used as a form field.
  • An associated company is a distinct company record that is associated with a contact record. This is most often the result of automatic email domain association.

A contact's 'Company Name' property will not automatically update to reflect the name of the contact's associated company; this is intentional, and is intended to prevent the automated contact <-> company association from overwriting data provided by the contact.

It's not possible to pull the associated company's 'Name' property when requesting contacts using the 'Get all contacts' endpoint, since that value isn't stored on the contact record. You'll instead need to request the associatedCompanyId property and pull information on the company records you're interested in.