Read Person Memories By Type
This example request illustrates how to read the memories that are attached to a person, filtering by a specific type.
JSON
Request
GET /platform/tree/persons/KWCR-JWS/memories?type=photo&type=story
Accept: application/x-gedcomx-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-gedcomx-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/persons/KWCR-JWS/memories
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked{
"links" : {
"person" : {
"href" : "https://api.familysearch.org/platform/tree/persons/KWCR-JWS?flag=fsh"
},
"self" : {
"href" : "https://api.familysearch.org/platform/tree/persons/KWCR-JWS/memories?flag=fsh&type=photo"
}
},
"persons" : [ ],
"sourceDescriptions" : [ {
"id" : "904106",
"about" : "https://familysearch.org/photos/images/904106",
"links" : {
"image-icon" : {
"href" : "https://familysearch.org/photos/images/9i0c4o1n06"
},
"image" : {
"href" : "https://familysearch.org/photos/images/904106"
},
"persons" : {
"href" : "https://api.familysearch.org/platform/memories/memories/904106/personas?flag=fsh"
},
"comments" : {
"href" : "https://api.familysearch.org/platform/memories/memories/904106/comments?flag=fsh"
},
"memory" : {
"href" : "https://api.familysearch.org/platform/memories/memories/904106?flag=fsh"
},
"image-thumbnail" : {
"href" : "https://familysearch.org/photos/images/9t0h4u1m06"
}
},
"titles" : [ {
"value" : "Missionary Portrait"
} ],
"descriptions" : [ {
"value" : "Alma Heaton while on a mission to Canada."
} ],
"artifactMetadata" : [ {
"filename" : "alma-mission.jpg",
"qualifiers" : [ {
"name" : "http://familysearch.org/v1/Photo"
} ]
} ]
}, {
"artifactMetadata" : [ { } ]
} ]
}
XML
Request
GET /platform/tree/persons/KWCR-JWS/memories?type=photo&type=story
Accept: application/x-gedcomx-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-gedcomx-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/persons/KWCR-JWS/memories
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"?>
<gedcomx xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
<link rel="person" href="https://api.familysearch.org/platform/tree/persons/KWCR-JWS?flag=fsh"/>
<link rel="self" href="https://api.familysearch.org/platform/tree/persons/KWCR-JWS/memories?flag=fsh&type=photo"/>
<sourceDescription about="https://familysearch.org/photos/images/904106" id="904106">
<fs:artifactMetadata>
<fs:filename>alma-mission.jpg</fs:filename>
<fs:qualifier name="http://familysearch.org/v1/Photo"/>
</fs:artifactMetadata>
<link rel="image" href="https://familysearch.org/photos/images/904106"/>
<link rel="image-thumbnail" href="https://familysearch.org/photos/images/9t0h4u1m06"/>
<link rel="image-icon" href="https://familysearch.org/photos/images/9i0c4o1n06"/>
<link rel="comments" href="https://api.familysearch.org/platform/memories/memories/904106/comments?flag=fsh"/>
<link rel="memory" href="https://api.familysearch.org/platform/memories/memories/904106?flag=fsh"/>
<link rel="persons" href="https://api.familysearch.org/platform/memories/memories/904106/personas?flag=fsh"/>
<title>Missionary Portrait</title>
<description>Alma Heaton while on a mission to Canada.</description>
</sourceDescription>
<sourceDescription>
<fs:artifactMetadata/>
</sourceDescription>
</gedcomx>
Updated 5 days ago