The getConnectedDNATestsByProfile action returns the test-taker profiles and associated DNA Test connected to a given profile key.
Param | Value |
---|---|
action | getConnectedDNATestsByProfile |
key | WikiTree ID or Id |
The "key" parameter is used to indicate the DNA test taker profile. This can be either a "WikiTree ID" or a "User ID". The WikiTree ID is the name used after "/wiki" in the URL of the Person page. For example, for Person Profile Pages like https://www.wikitree.com/wiki/Whitten-1, the WikiTree ID is "Whitten-1".
Field | Description |
---|---|
dnaTests | Array of DNA Test information |
For each DNA Test... | |
dna_id | Integer ID |
dna_slug | A short descriptive label |
dna_name | Display Title |
assigned | Timestamp DNA Test was assigned to key's profile |
assignedBy | WikiTree ID of member that assigned the Test to the key's profile |
haplo | Y chromosome haplogroup |
markers | Number of markers that were tested |
mttype | Mitochondrial DNA Test Type |
ysearch | Ysearch ID (obsolete) |
mitosearch | Mitosearch ID (obsolete) |
ancestry | Ancestry.com user name |
ftdna | Family Tree DNA kit number |
gedmatch | GEDmatch ID |
haplom | Mitochondrial haplogroup |
mitoydna | mitoYDNA ID |
yourDNAportal | YourDNAPortal ID |
taker['Id'] | User ID of the test-taker profile |
taker['Name'] | WikiTree ID of the test-taker profile |
taker['PageId'] | Page ID of the test-taker profile |
curl 'https://api.wikitree.com/api.php?action=getConnectedDNATestsByProfile&key=Whitten-1'
[
{
"page_name": "Whitten-1",
"status": 0,
"dnaTests": [
{
"dna_id": "1",
"dna_slug": "23andme_audna",
"dna_name": "23andMe",
"dna_type": "auDNA",
"assigned": "2020-04-02 13:40:30",
"assignedBy": "Whitten-1",
"haplo": "R1b1b2a1a1*",
"markers": "0",
"mttype": null,
"ysearch": null,
"mitosearch": null,
"ancestry": null,
"ftdna": null,
"gedmatch": "",
"haplom": "U5a1a1",
"taker": {
"Id": "32",
"PageId": "24",
"Name": "Whitten-1"
}
},
...
]
}
]