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"
Property | Type | Description |
---|---|---|
id | String | The id of the resource. |
userId | String | [deprecated - use humanId] |
humanId | String | Unique user identifier |
trait | String | The most likely present trait |
possibleTraits | String | A list of all the possible values for a specific trait, for easy comparison |
description | String | A description/name of the trait |