
I think the /ancestors call requires special permission.
You can get the parents of the profile and get all of the ancestors recursively, but you have to add a 10 second delay for each call. You can see the example I made here: https://github.com/Joelis57/geni-caf/blob/main/app.js#L71C18-L71C38
Thank you so much! This example has so many things that are on my list of "I have to add code for this"!
(I'm getting enough feel for the API now that I'm considering ditching Geni.api() calls and instead using the fetch API - it seems more transparent to do it that way, but I'm sure there will be gotchas along the way....)
The ancestors documentation: https://www.geni.com/platform/developer/help/api?path=profile%2Fancestors&version=1
To test and view results, use https://www.geni.com/platform/developer/api_explorer