Solved

Hubspot API Get Company Name

Posted on 2013-01-26
1
546 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 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

For a lot of organizations the use of social media is a “can’t live with it and can’t live without it” situation. Risk assessment is conducted to determine the effects of social media. Risk is assessed by identifying threats and vulnerabilities, the…
Currently, it's non-trivial for users to draw the attention of a particular Expert. Let's make it easier for them! You can set up a Saved Search with email notification so that you receive an email when a user mentions your name in their question…
The goal of the tutorial is to teach the user how to instant message and make a video call in Skype.
The goal of the tutorial is to teach the user what do the general settings mean under the preference tab in Skype.

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now