API call to get companies with a specific property value
Is theres a way to make an API call that returns companies that have a specifc property value. For example, I want only companies that have "California" as the value for the "state" property.
Or is the only way to get this filter to first make an API call to return all companies and then save the ones that I need.
Presently, it is not possible to retrieve companies record based on specific property value. We are only able to search companies by domain name - Search for companies by domain and so you're right! The best way here is to first make an API call to return all companies and filter based of that.
Moving forward, if you'd like, please jump over to this similar idea posted on our HubSpot idea forum here: Search contacts, companies and deals by custom properties to give it an upvote and comment. I can honestly see a use case for this request and I've also given it an upvote. Hopefully this will gather more interest!