- Family Graph API
- Objects
- AggregateValueAdd
- Album
- Audio
- BuyNowData
- ChildInFamily
- Citation
- ColorizationData
- Comment
- Config
- ConfirmationStatus
- Counter
- Device
- DiscoveryBase
- DnaAncestorName
- DnaEnums
- DnaEthnicity
- DnaEthnicityReport
- DnaKit
- DnaKitFile
- DnaMatch
- DnaMatchCommonAncestor
- DnaMatchNote
- DnaMatchRelationship
- DnaOrderItemShippingDetails
- Document
- Enums
- EthnicityInLocation
- Event
- EventDate
- EventPlace
- ExportGEDCOM
- ExportGEDCOMStatus
- Family
- FamilyEvent
- GenealogyEvent
- GoalActivity
- Image
- Individual
- Installation
- Invitation
- MatchesCount
- MatchingRequest
- MediaItem
- Membership
- Navigation
- NavigationItem
- NavigationItemBadge
- NewPhotoInfo
- Note
- Notification
- NotificationHistory
- OrderItemCoupon
- OrderItemShippingDetails
- Page
- PersonalPhotosDiscovery
- Phones
- Photo
- PhotoVersion
- Range
- RecordColorizationData
- RecordIndividual
- RecordMatchesCount
- Relationship
- ResiEvent
- ShippingOption
- SingleDate
- Site
- SmartMatch
- Source
- StructuredDate
- StructuredPlace
- SubTree
- SuggestedRelative
- System
- Tag
- ThreadsCount
- Tree
- TreeItem
- User
- UserMenu
- ValueAddData
- ValueAddElement
- ValueAddFactor
- Video
- WorldEthnicities
- SDKs
- PHP SDK
- iOS SDK
- Android SDK
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"
}