APIs & Integrations

Spark-Y
Member

How do I get Latest Contacts

Hi, I'm new to Hubspot API. Actually, I want to get the latest contact list and I run a query in curl in PHP and get some responses but I need more value like first name, last name, phone, and others and also the JSON format is so complex. Please help me to make the right code. I am using now check below

 

https://api.hubapi.com/crm/v3/objects/contacts?limit=10&archived=false&hapikey=xxxxxxxxxxxxxx

 

hubspot-get-val.png

0 Upvotes
2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

How do I get Latest Contacts

In addition to @webdew 's suggestion, if you want additional properties to be returned outside of the default set, you will add them as query parameter's on your request url

eg: &properties=firstname

You will want to make sure you are using the internal name for the property 😀

0 Upvotes
webdew
Guide | Diamond Partner
Guide | Diamond Partner

How do I get Latest Contacts

Hi @Spark-Y ,

Please use these documentation for lastest contacts list using api

Doc Link recent created :
https://legacydocs.hubspot.com/docs/methods/contacts/get_recently_created_contacts

Screen shot : https://prnt.sc/1bpm9bs

Doc Link recent updated :
https://legacydocs.hubspot.com/docs/methods/contacts/get_recently_updated_contacts
Screen shot :
https://prnt.sc/1bpmlpj

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.