New profile elements: parent_unions and partner_unions ?

Started by Private User on Saturday, January 19, 2013
Problem with this page?

Participants:

Profiles Mentioned:

Related Projects:

Showing all 23 posts
Private User
1/19/2013 at 6:58 AM

I noticed that the API now returns two undocumented items on a profile: parent_unions and partner_unions.

1) Is this a step on removing the need for the immediate-family record?
2) Will partner_unions replace the unions element?

What I am missing most in getting an effective caching of loaded profiles is that there is absolutely no way to detect changes in a profiles connections (i.e changes in parents, children, spouses), so you cannot cache immediate-family records.

3) Will any changes in the parent_unions or partner_unions solve this problem by updating the updated_at element on a profile?

I also notice that a lot of elements in v0 of the API like big_tree now is marked with "This field has been deprecated and will no longer be supported in the future versions".

4) Does this mean that those elements will be removed for v1 as well?

Private User
2/10/2013 at 1:28 PM

Hmm, the parent_unions and partner_unions fields are gone.

I really liked them compared to the messy immediate-family records and secondly it saved you from an extra request to find parents, partners and siblings.

3/10/2013 at 6:54 AM

Hi,

I would also like this function to come back!

The immediate-family request works, but is kind of mis-matched in relation to other APIs as it gives a lot of redundant information, which slows things down.

Regards, Kenneth

3/10/2013 at 1:53 PM

I already asked Amanda about these (in Tr8n) - got no answer.

Private User
3/10/2013 at 2:34 PM

Kenneth, - you only need to load immediate-family records when following a line since immediate-family also contains the profile records, so parent_unions is not needed, but as you say: you have an overload since you also get all spouses and siblings, but that is needed if you want to process a descendants line.

I am able to load 10 generations of ancestors in 29 seconds now and I am not finished fine tuning my code yet.

4/11/2018 at 1:53 AM

Thanks. This worked quite nicely.

4/11/2018 at 5:50 AM

Hmm.. I'm not seeing how to get marriage date this way. What am I missing?

Private User
4/11/2018 at 6:05 AM

When reading the immediate-family record and have sorted out the union-id for the partner union you want the details on you do a new get for that specific union as https://www.geni.com/api/union (-XXXX for union id)

4/16/2018 at 1:49 AM

Oki, thanks. Works nicely.

1/6/2019 at 12:18 AM

On some profiles, I get HTTP response 403 as response to my immediate-family request. These are marked as private I assume.

What I do then is to make the simplest possible request i.e. "https://www.geni.com/api/<xrefname>".

Is that expected behaviour, and am I using the correct procedure when it happens? I don't get any relations at all with the fallback request, so it's not ideal...

1/7/2019 at 4:34 AM

Private User do you have any opinion on this?

Private User
1/7/2019 at 5:18 AM

Need an example on this.

The syntax is https://www.geni.com/api/profile/immediate-family, - where you use /profile-nnnn/ for specific profile-ID's

1/7/2019 at 7:52 AM

This is my full request:

"https://www.geni.com/api/" + xrefName + "/immediate-family?only_ids=true&fields=first_name,middle_name,nicknames,last_name,maiden_name,name,suffix,occupation,gender,birth,baptism,death,burial,cause_of_death,unions,id,about_me,is_alive,profile_url,mugshot_urls,public";

and this is my "simple" request:

"https://www.geni.com/api/" + xrefName

1/7/2019 at 7:54 AM

Hmm.. I just see that pasting gave some strange quotes not present in the real world...

This is my full request:

"https://www.geni.com/api/"; + xrefName + "/immediate-family?only_ids=true&fields=first_name,middle_name,nicknames,last_name,maiden_name,name,suffix,occupation,gender,birth,baptism,death,burial,cause_of_death,unions,id,about_me,is_alive,profile_url,mugshot_urls,public";

and this is my "simple" request:

"https://www.geni.com/api/" + xrefName

1/7/2019 at 7:55 AM

Above I use xrefName instead on profile-nnnn of course...

1/7/2019 at 10:10 AM

And here is a profile where I need to use the mentioned "trick" to get any data back:

Knut Emanuel Nordgren

Private User
1/7/2019 at 9:16 PM

What is xrefName?
The API documentation does not refer to any such usage.
Use profile-id or profile guid with a g- in front.

Private User
1/7/2019 at 9:58 PM

That specific profile is a private living profile outside your family which you would get an access denied of when trying to get immediate family by using for example
https://www.geni.com/api/profile-g6000000012926735630/immediate-family

When not being a curator I get.
{
error: {
type: "ApiException",
message: "Access Denied"
}
}

If you have found a way to bypass this it should be reported and stopped.

For this specific profile however, he should probably be marked as deceased public since he is born in 1908. If you have documentation that he is deceased I can fix this, but for now we can keep it as an example.

1/7/2019 at 11:13 PM

xrefName is just my variable name for profile-<id> in C#.

What I get is the same as when viewing a private profile on the web, i.e. the name can be something like "<private> Isaksson".

I am just wondering why I couldn't get that anonymized information from a call including immediate-family ?

Private User
1/7/2019 at 11:51 PM

OK, as when viewing the profile in a browser?

Usually you don't even come so far in the browser unless you know the profile id. The only useful information you can get is number of children.

At some point the API should stop you processing and I think this is such a case. The union object might reveal the profile-ids of the children.

1/8/2019 at 1:38 AM

Ok, then I know it's expected behaviour. Fine with me.

Private User
1/8/2019 at 2:46 AM

You can discuss if even listig the children as "<private> Isaksson". when viewing the private profiles as you can do on Knut Emanuel Nordgren on is allowed according to GDPR.

We had a situation some years ago when a person added his out of wedlock child to the tree and forgot that the family did not know about it and could see his tree.. He had to go through several rounds of explanations and excuses...

1/8/2019 at 4:08 AM

Hmm.. As I understand it I don't get any children nor parents in the union data when doing the non "immediate-family" request.

Perhaps what you are saying is that these private profiles should not be included in unions from their relatives either? Yes, that might be logical.

Showing all 23 posts

Create a free account or login to participate in this discussion