I can't seem to find address information such as City and Postcode in returned JSON
SOLVE
Hi there,
I am calling the 'Return all companies' API and this is an example of twitter as a company in my hubspot being returned. I can't seem to find where values such as Post Code, Town, Country, City etc are? In the API companies overview you can see it in the example. Can someone please advise what I am missing here as I really need these values?
Thanks very much in advance,
Toby
I can't seem to find address information such as City and Postcode in returned JSON
SOLVE
Hi Toby,
Are you specifying these properties in your API call? Here's some additional info from the API documentation:
_> 'properties=' - Used to include specific company properties in the results. By default, the results will only include the company ID, and will not include the values for any properties for your companies. Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties. _ > Note: Companies that do not have a value set for a property will not include that property, even when you specify the property. A company without a value for the website property would not show the website property in the results, even with &properties=website in the URL.
So, the properties you'll want to include are:
zip
city
country
(and any other custom properties you're interested in)
I can't seem to find address information such as City and Postcode in returned JSON
SOLVE
Hi Toby,
Are you specifying these properties in your API call? Here's some additional info from the API documentation:
_> 'properties=' - Used to include specific company properties in the results. By default, the results will only include the company ID, and will not include the values for any properties for your companies. Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties. _ > Note: Companies that do not have a value set for a property will not include that property, even when you specify the property. A company without a value for the website property would not show the website property in the results, even with &properties=website in the URL.
So, the properties you'll want to include are:
zip
city
country
(and any other custom properties you're interested in)