specific contact property value

Hi there, I am new to Hubspot and currently investigating on the contact API in order to pull data for a specific contact from a specific field.

https://api.hubapi.com/crm/v3/objects/contacts?hapikey={}&properties={}

This gives me the requested answer for all contacts - but I would like to get it only from a specific one. Would be grateful if someone could recomment what would be the best way to get this. Many thanks.

Hi @TZiesing,

Try:
https://api.hubapi.com/crm/v3/objects/contacts

/{contactId}

?hapikey={}&properties={}

HI - thx - that works- but it does work with the contact vid only, correct?

I tried with the email address but got an error.

One way to search by email is to POST to https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey={} with a body like:

{
 "filterGroups": [
 {
 "filters": [
 {
 "value": "someone@example.com",
 "propertyName": "email",
 "operator": "EQ"
 }
 ]
 }
 ]
}

Alternately, there’s a v1 (legacy) API that can be used to fetch a contact by email:

https://api.hubapi.com/contacts/v1/contact/email/

{email}

/profile?hapikey= {}

thx - great!