Issue with getAncestors depth

+3 votes
102 views
If I try to `getAncestors` with `depth` set to 10 or lower, I get the correct number of ancestors, but if I set it to 11 or higher, I only get the same number of ancestors as if I had set it to 5.

An odd workaround is to first make the request with depth set to 1, then to 2, then 3, etc. up to 25, which will return the correct number of ancestors.

Obviously this is not the intended approach, so what's the acceptable way to actually use `getAncestors` with `depth` set to 25?

I'm trying to make a new app like DNAconf, but don't want to have to make 72 (24 x 3, since it's a triangulation app) superfluous API calls everytime it's used.
in WikiTree Tech by Anonymous Dupre G2G6 (6.8k points)

Hi Anonymous. Perhaps try getPeople instead? There may be an upper bound on the value of the "ancestors" parameter, but if so it isn't mentioned in the documentation.

1 Answer

+6 votes
 
Best answer
The maximum depth is 10. Not sure why it isn't in the documentation. If you put a number larger than that, it uses the default (5).

getAncestors and getDescendents will eventually be replaced by getPeople (which also has a limit of 10).
by Jamie Nelson G2G6 Pilot (636k points)
selected by Anonymous Dupre

Related questions

+2 votes
1 answer
+5 votes
2 answers
132 views asked Dec 8, 2015 in WikiTree Tech by Living Potgieter G2G Crew (530 points)
+9 votes
5 answers
282 views asked Oct 22, 2023 in WikiTree Help by anonymous G2G3 (3.3k points)
+10 votes
0 answers
+9 votes
2 answers
+5 votes
2 answers
+10 votes
4 answers
226 views asked Sep 27, 2018 in The Tree House by Lisa Ryals G2G6 Mach 1 (10.7k points)
+5 votes
1 answer
121 views asked Dec 29, 2016 in Genealogy Help by Aaron Gullison G2G6 Pilot (189k points)

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...