Relationship

A relationship between two individuals in a family tree as represented in the Family Graph API.

This object contains information about how two individuals in a family tree are related.


Fields

The Relationship object contains the following fields:

Name Description Type Access Mode

individual

The target individual of the relationship

Individual object: id and name fields

read, write

relationship_type

Type of family relationship between the source and target individuals (see list of possible relationship types below)

string

read, write

relationship_description

Description of the relationship type in the current language

string

read

class_name

The object class name

string

read

Relationship types

Relationship types:
Relationship Type
father
mother
parent
son
daughter
child
brother
sister
sibling
husband
wife
partner
ex-husband
ex-wife
ex-partner
grandfather
grandmother
grandparent
grandson
granddaughter
grandchild
uncle
aunt
niece
nephew

Example

https://familygraph.myheritage.com/individual-144530322-1000001/immediate_family (open in browser)
{
"data": [
{
"individual": {
"id": "individual-144530322-1000002",
"name": "Jacqueline Lee Kennedy Onassis (born Bouvier)"
},
"relationship_type": "wife",
"relationship_description": "Wife",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000090",
"name": "Arabella Kennedy"
},
"relationship_type": "daughter",
"relationship_description": "Daughter",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000003",
"name": "Caroline Bouvier Schlossberg (born Kennedy)"
},
"relationship_type": "daughter",
"relationship_description": "Daughter",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000004",
"name": "John Fitzgerald \"John-John\" Kennedy, Jr."
},
"relationship_type": "son",
"relationship_description": "Son",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000091",
"name": "Patrick Bouvier Kennedy"
},
"relationship_type": "son",
"relationship_description": "Son",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000005",
"name": "Joseph Patrick Kennedy"
},
"relationship_type": "father",
"relationship_description": "Father",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000006",
"name": "Rose Kennedy (born Fitzgerald)"
},
"relationship_type": "mother",
"relationship_description": "Mother",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000010",
"name": "Joseph Patrick Kennedy, Jr."
},
"relationship_type": "brother",
"relationship_description": "Brother",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000011",
"name": "Rosemary Kennedy"
},
"relationship_type": "sister",
"relationship_description": "Sister",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000012",
"name": "Kathleen (Kick) Agnes \"Kick\" Cavendish (born Kennedy)"
},
"relationship_type": "sister",
"relationship_description": "Sister",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000014",
"name": "Eunice Kennedy Shriver (born Kennedy)"
},
"relationship_type": "sister",
"relationship_description": "Sister",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000018",
"name": "Patricia Lawford (born Kennedy)"
},
"relationship_type": "sister",
"relationship_description": "Sister",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000020",
"name": "Robert Francis \"Bobby\" Kennedy"
},
"relationship_type": "brother",
"relationship_description": "Brother",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000077",
"name": "Jean Ann Smith (born Kennedy)"
},
"relationship_type": "sister",
"relationship_description": "Sister",
"class_name": "Relationship"
},
{
"individual": {
"id": "individual-144530322-1000083",
"name": "Edward Moore (Ted) Kennedy"
},
"relationship_type": "brother",
"relationship_description": "Brother",
"class_name": "Relationship"
}
],
"class_name": "Connection"
}