Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hubspot API Get Company Name

Posted on 2013-01-26
1
Medium Priority
?
596 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Hi, as of you all know new ,interacting social networking site is come in market i.e, nothing but Google plus (Google+). So it is obvious that everyone will compare it to the Facebook network. Facebook has all the interacting features which an indiā€¦
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!
Viewers will learn how to use the Hootsuite Dashboard.
The goal of the tutorial is to teach the user how to block contacts and manage the block contact list.

670 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