APIs & Integrations

mfahad
Participant

How do I get the value of a property for my companies?

SOLVE

https://api.hubapi.com/properties/v1/companies/properties/named/zip_codes_covered?

This is everything I have before my hapikey. The JSON result gives me all of the information except the values for the zip codes covered for the two companies that I have in my company records.

Any change needed to the URL to get the values?

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

How do I get the value of a property for my companies?

SOLVE

Hi @mfahad24,

The Company Properties API and its endpoints are used to manage company properties. If you wish to get the property values for different companies, you must use the Companies API and include zip_codes_covered in the properties parameter.

For example: https://api.hubapi.com/companies/v2/companies/paged?hapikey=demo&properties=zip_codes_covered

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
2 Replies 2
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

How do I get the value of a property for my companies?

SOLVE

Hi @mfahad24,

The Company Properties API and its endpoints are used to manage company properties. If you wish to get the property values for different companies, you must use the Companies API and include zip_codes_covered in the properties parameter.

For example: https://api.hubapi.com/companies/v2/companies/paged?hapikey=demo&properties=zip_codes_covered

Isaac Takushi

Associate Certification Manager
0 Upvotes
mfahad
Participant

How do I get the value of a property for my companies?

SOLVE

Thank you! Something small but crucial.

0 Upvotes