Get genetic traits of a user

❗️

Genetic traits endpoint has been deprecated

The genetic traits endpoint has been deprecated by 23andMe. Users who provided access to their 23andMe account and had genetic traits data available via Human API will still have that data available through genetic/traits. However, any new data will not be retrievable.

Returns genetic traits
GET https://api.humanapi.co/v1/human/genetic/traits

# Returns a JSON array of genetic traits:
[{
  "userId": "52e20cb2fff56aac62000001",
  "description": "Hair Curl",
  "trait": "Straighter Hair on Average",
  "possibleTraits": ["Slightly Curlier Hair on Average", "Straighter Hair on Average"],
  "humanId": "5dc2527186aaf9de560e5841f1a44bd6"
}, {
  "userId": "52e20cb2fff56aac62000001",
  "description": "Male Pattern Baldness",
  "trait": "Decreased Odds",
  "possibleTraits": ["Decreased Odds", "Increased Odds", "No Data", "Not Applicable", "Typical Odds"],
  "humanId": "5dc2527186aaf9de560e5841f1a44bd6"
}, {
  "userId": "52e20cb2fff56aac62000001",
  "description": "Smoking Behavior",
  "trait": "Typical",
  "possibleTraits": ["If a Smoker, Likely to Smoke More", "Typical"],
  "humanId": "5dc2527186aaf9de560e5841f1a44bd6"
}]
# Get genetic traits associated with the user
curl -H "Authorization: Bearer demo" "https://api.humanapi.co/v1/human/genetic/traits"
PropertyTypeDescription
idStringThe id of the resource.
userIdString[deprecated - use humanId]
humanIdStringUnique user identifier
traitStringThe most likely present trait
possibleTraitsStringA list of all the possible values for a specific trait, for easy comparison
descriptionStringA description/name of the trait