APIs & Integrations

Umar_Jamil
Member

How to get Phone Number , First & LastName from Contacts JSON Return?

How to get Phone Number, First & LastName from Contacts JSON Return?

0 Upvotes
5 Replies 5
3PETE
HubSpot Employee
HubSpot Employee

How to get Phone Number , First & LastName from Contacts JSON Return?

@Umar_Jamil are you requesting all the fields in your call to get the contacts? If so then you can parse the data object that is returned in the JSON block for the values.

0 Upvotes
Umar_Jamil
Member

How to get Phone Number , First & LastName from Contacts JSON Return?

@pmanca Yes I’m requesting all the fields in my call to get the contacts. I do parse the data object that is returned in the JSON block for the values but they are not returning any Phone no !.. See the output in snapshot & also See the uri I’m sending for JSON Response “https://api.hubapi.com/contacts/v1/lists/all/contacts/all?access_token&hapikey=demo&count=1000

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

How to get Phone Number , First & LastName from Contacts JSON Return?

@Umar_Jamil you did not ask for the phone number that is why. Take a look at the docs here on how to request additional fields

0 Upvotes
Umar_Jamil
Member

How to get Phone Number , First & LastName from Contacts JSON Return?

@pmanca can you send me what uri should be sent to get the phone number also.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

How to get Phone Number , First & LastName from Contacts JSON Return?

@Umar_Jamil My apologies i should have linked this the first time. Here is the link to the docs.

Let me know if you run into anything.

0 Upvotes