Solved

Hubspot API Get Company Name

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Follow these tips to boost your freelancing career. Soon enough you'll be enjoying the freedom of being your own boss and working from anywhere.
The goal of the tutorial is to teach the user what do the general settings mean under the preference tab in Skype.
Video by: syed
The goal of the tutorial is to teach the what Skype is and how to use it.

758 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

17 Experts available now in Live!

Get 1:1 Help Now