Read Children of a Person

This example request illustrates how to read the list of children of a person.

JSON

Request

GET /platform/tree/persons/PPP0-MP1/children
Accept: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

Response

HTTP/1.1 200 OK
Last-modified: Sat, 01 Dec 2018 04:59:53 CET
Content-type: application/x-fs-v1+json
X-processing-time: 3
Etag: "1543638712000"
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/persons/PPP0-MP1/children
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked{
  "relationships" : [ {
    "id" : "P1PPP0-PP0",
    "type" : "http://gedcomx.org/ParentChild",
    "person1" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1",
      "resourceId" : "PPP0-MP1"
    },
    "person2" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP0-PP3",
      "resourceId" : "PPP0-PP3"
    },
    "links" : {
      "parent" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"
      },
      "person2" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-PP3?flag=fsh"
      },
      "person1" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"
      },
      "child" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-PP3?flag=fsh"
      }
    }
  }, {
    "id" : "P1PPP1-PP0",
    "type" : "http://gedcomx.org/ParentChild",
    "person1" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1",
      "resourceId" : "PPP0-MP1"
    },
    "person2" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP1-PP3",
      "resourceId" : "PPP1-PP3"
    },
    "links" : {
      "parent" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"
      },
      "person2" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP1-PP3?flag=fsh"
      },
      "person1" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"
      },
      "child" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP1-PP3?flag=fsh"
      }
    }
  } ],
  "childAndParentsRelationships" : [ {
    "id" : "PPP0-PP0",
    "parent1" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1",
      "resourceId" : "PPP0-MP1"
    },
    "child" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP0-PP3",
      "resourceId" : "PPP0-PP3"
    },
    "links" : {
      "parent1" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"
      },
      "source-references" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/source-references?flag=fsh"
      },
      "change-history" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/changes?flag=fsh"
      },
      "notes" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/notes?flag=fsh"
      },
      "source-descriptions" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/sources?flag=fsh"
      },
      "parent1-role" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/parent1?flag=fsh"
      },
      "collection" : {
        "href" : "https://api.familysearch.org/collections/tree?flag=fsh"
      },
      "relationship" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0?flag=fsh"
      },
      "child" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-PP3?flag=fsh"
      }
    },
    "parent1Facts" : [ {
      "id" : "C.1",
      "attribution" : {
        "contributor" : {
          "resource" : "https://api.familysearch.org/platform/users/agents/JNYR-KJP"
        }
      },
      "type" : "http://gedcomx.org/AdoptiveParent"
    } ]
  }, {
    "id" : "PPP1-PP0",
    "parent1" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1",
      "resourceId" : "PPP0-MP1"
    },
    "child" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/PPP1-PP3",
      "resourceId" : "PPP1-PP3"
    },
    "links" : {
      "parent1" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"
      },
      "source-references" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/source-references?flag=fsh"
      },
      "change-history" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/changes?flag=fsh"
      },
      "notes" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/notes?flag=fsh"
      },
      "source-descriptions" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/sources?flag=fsh"
      },
      "parent1-role" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/parent1?flag=fsh"
      },
      "collection" : {
        "href" : "https://api.familysearch.org/collections/tree?flag=fsh"
      },
      "relationship" : {
        "href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0?flag=fsh"
      },
      "child" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/PPP1-PP3?flag=fsh"
      }
    },
    "parent1Facts" : [ {
      "id" : "C.1",
      "attribution" : {
        "contributor" : {
          "resource" : "https://api.familysearch.org/platform/users/agents/JNYR-KJP"
        }
      },
      "type" : "http://gedcomx.org/AdoptiveParent"
    } ]
  } ]
}

XML

Request

GET /platform/tree/persons/PPP0-MP1/children
Accept: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

Response

HTTP/1.1 200 OK
Last-modified: Sat, 01 Dec 2018 04:59:53 CET
Content-type: application/x-fs-v1+xml
X-processing-time: 3
Etag: "1543638712000"
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/persons/PPP0-MP1/children
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fs:familysearch xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
    <relationship type="http://gedcomx.org/ParentChild" id="P1PPP0-PP0">
        <link rel="child" href="https://api.familysearch.org/platform/tree/persons/PPP0-PP3?flag=fsh"/>
        <link rel="parent" href="https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"/>
        <link rel="person1" href="https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"/>
        <link rel="person2" href="https://api.familysearch.org/platform/tree/persons/PPP0-PP3?flag=fsh"/>
        <person1 resource="https://api.familysearch.org/platform/tree/persons/PPP0-MP1" resourceId="PPP0-MP1"/>
        <person2 resource="https://api.familysearch.org/platform/tree/persons/PPP0-PP3" resourceId="PPP0-PP3"/>
    </relationship>
    <relationship type="http://gedcomx.org/ParentChild" id="P1PPP1-PP0">
        <link rel="child" href="https://api.familysearch.org/platform/tree/persons/PPP1-PP3?flag=fsh"/>
        <link rel="parent" href="https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"/>
        <link rel="person1" href="https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"/>
        <link rel="person2" href="https://api.familysearch.org/platform/tree/persons/PPP1-PP3?flag=fsh"/>
        <person1 resource="https://api.familysearch.org/platform/tree/persons/PPP0-MP1" resourceId="PPP0-MP1"/>
        <person2 resource="https://api.familysearch.org/platform/tree/persons/PPP1-PP3" resourceId="PPP1-PP3"/>
    </relationship>
    <fs:childAndParentsRelationship id="PPP0-PP0">
        <link rel="change-history" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/changes?flag=fsh"/>
        <link rel="child" href="https://api.familysearch.org/platform/tree/persons/PPP0-PP3?flag=fsh"/>
        <link rel="collection" href="https://api.familysearch.org/collections/tree?flag=fsh"/>
        <link rel="notes" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/notes?flag=fsh"/>
        <link rel="parent1-role" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/parent1?flag=fsh"/>
        <link rel="parent1" href="https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"/>
        <link rel="relationship" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0?flag=fsh"/>
        <link rel="source-descriptions" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/sources?flag=fsh"/>
        <link rel="source-references" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP0-PP0/source-references?flag=fsh"/>
        <fs:parent1 resource="https://api.familysearch.org/platform/tree/persons/PPP0-MP1" resourceId="PPP0-MP1"/>
        <fs:child resource="https://api.familysearch.org/platform/tree/persons/PPP0-PP3" resourceId="PPP0-PP3"/>
        <fs:parent1Fact type="http://gedcomx.org/AdoptiveParent" id="C.1">
            <attribution>
                <contributor resource="https://api.familysearch.org/platform/users/agents/JNYR-KJP"/>
            </attribution>
        </fs:parent1Fact>
    </fs:childAndParentsRelationship>
    <fs:childAndParentsRelationship id="PPP1-PP0">
        <link rel="change-history" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/changes?flag=fsh"/>
        <link rel="child" href="https://api.familysearch.org/platform/tree/persons/PPP1-PP3?flag=fsh"/>
        <link rel="collection" href="https://api.familysearch.org/collections/tree?flag=fsh"/>
        <link rel="notes" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/notes?flag=fsh"/>
        <link rel="parent1-role" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/parent1?flag=fsh"/>
        <link rel="parent1" href="https://api.familysearch.org/platform/tree/persons/PPP0-MP1?flag=fsh"/>
        <link rel="relationship" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0?flag=fsh"/>
        <link rel="source-descriptions" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/sources?flag=fsh"/>
        <link rel="source-references" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPP1-PP0/source-references?flag=fsh"/>
        <fs:parent1 resource="https://api.familysearch.org/platform/tree/persons/PPP0-MP1" resourceId="PPP0-MP1"/>
        <fs:child resource="https://api.familysearch.org/platform/tree/persons/PPP1-PP3" resourceId="PPP1-PP3"/>
        <fs:parent1Fact type="http://gedcomx.org/AdoptiveParent" id="C.1">
            <attribution>
                <contributor resource="https://api.familysearch.org/platform/users/agents/JNYR-KJP"/>
            </attribution>
        </fs:parent1Fact>
    </fs:childAndParentsRelationship>
</fs:familysearch>