Get all companies - properties


#1

Hey folks,

I am using the get all companies API and specifying two additional properties to come back:

curl -XGET https://api.hubapi.com/companies/v2/companies/paged?hapikey=key&properties=prop1&properties=prop2

however I am not seeing any additional properties in the response, this is a 'test' account so there is only a dozen or some companies in there.

{"has-more":false,"offset":1173972935,"companies":[{"portalId":1,"companyId":1163758883,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1166182257,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1167876458,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1172655111,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1172675368,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1172700391,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1172705669,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1173448945,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1173490477,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1173896103,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1173899228,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1173933584,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]},{"portalId":1,"companyId":1173972935,"isDeleted":false,"properties":{},"additionalDomains":[],"stateChanges":[],"mergeAudits":[]}]}

not sure what I am missing


#3

Hey, @Kevin_Griffin.

Right off the bat, do any companies have values for those two properties? Per that parameter's description:

Note: Companies that do not have a value set for a property will not include that property, even when you specify the property.

If some company records do have values for those properties, could you share links to them?