Show City Property in Company API

Hi! Is there a way to show the City property field using an API call? Currently, the only properties that appear when a get-all is called are the following:
create date
domain
hs_lastmodifieddate
hs_object_id’
name

Hi @MFerraro7

Yes, you can add the Properties you want to retreive with the properties parameter. You add the optional “properties” parameter for each property you want to get back. Here’s an example:

https://api.hubapi.com/crm/v3/objects/companies/**?properties=city**&properties=state&archived=false

You can see how I also added the state property with a second properties parameter.

And, you can see the archived=false. If you change that to true you will get any history for the properties (if their city changed you will get the hostory).

The properties you listed are the default properties. Here’s some more information about the companies api.

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

Thanks, I couldn’t figure that out for API v3 either. Works fine.