Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hubspot API Get Company Name

Posted on 2013-01-26
1
Medium Priority
?
601 Views
Last Modified: 2013-01-26
When I get a list of Contacts using the Hubspot API, the only two properties it includes is FirstName and LastName.  There are other properties that are supposed to be available, like CompanyName, PhoneNumber, etc.  

So why don't I see them in the response?

I'm using this endpoint:

 https://api.hubapi.com/contacts/v1/lists/all/contacts/all?count=20&vidOffset=0&hapikey=<xxxxmykey>
0
Comment
Question by:mfortiernh
1 Comment
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 38822095
If you add the word demo for hapikey=demo you can see sample data.  If you want to see more data in the list you would need to run another endpoint to look up the id for that contact. See http://developers.hubspot.com/docs/methods/contacts/get_properties

{"contacts":[{"addedAt":1322767870001,"vid":1,"portal-id":62515,"profile-token":"AO_T-mPoaywPHWdE7hei9QXsBhhelFFKnLXWaS7D_TWq1bMdJvcttfh-S35k39eLRVjfNvekBKeWJFEQ0yYiEvbqwiyt4Pgb175xbAOdxRr72GQGbTd6kAL65S9OxbqcXj0L3bv19NzU","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mPoaywPHWdE7hei9QXsBhhelFFKnLXWaS7D_TWq1bMdJvcttfh-S35k39eLRVjfNvekBKeWJFEQ0yYiEvbqwiyt4Pgb175xbAOdxRr72GQGbTd6kAL65S9OxbqcXj0L3bv19NzU/","properties":{"lastname":{"value":"One"},"firstname":{"value":"User"}},"form-submissions":[{"conversion-id":"de78d870a62d4c4da7bc2abea932fca9","timestamp":1325882352000,"form-id":"762987228e694ef19530f58da2db5f63","portal-id":62515,"page-title":"testform","title":"testform"}],"identity-profiles":[{"vid":1,"identities":[{"type":"LEAD_GUID","value":"8a706adf33fb1be60133fb1bea120004","timestamp":1322767870341},{"type":"EMAIL","value":"erik@hallwaytech.com","timestamp":1322767870341}]}]}],"has-more":true,"vid-offset":1}
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You don't always have to apply to land your dream job, keeping your LinkedIn profile up-to-date enables recruiters to look for people just like you!
Did you know there are services out there that can turn an Instagram feed into an RSS feed? I found some interesting exclusive Instagram content which I wanted to follow without signing up for yet another social media account. RSS to the rescue!
The goal of the tutorial is to teach the user how to block contacts and manage the block contact list.
The goal of the tutorial is to teach the user what do the general settings mean under the preference tab in Skype.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question