WikiTree API max profiles for getPeople? [closed]

+6 votes
175 views

The documentation at https://github.com/wikitree/wikitree-api/blob/main/getPeople.md does not describe the maximum number of profiles you can request in 1 call. Is there a (preferred) maximum?

closed with the note: Resolved, thanks Kay/Jamie
in WikiTree Tech by Michel Vorenhout G2G6 Pilot (319k points)
closed by Michel Vorenhout

It describes the maximum number that can be returned in a single call. The "start & limit" section says

The maximum (and default) limit is currently 1000.

After that, if more results exist, you can get another 1000 by using start=1000, and so on. The successive calls should be spread out in time to avoid being rate-limited.

2 Answers

+10 votes
 
Best answer
The max is 100 if you request any combination of ancestors, descendants or nuclear. With none of those, the max is 1000.

The response will contain up to 1000, but you can page through the results for more.
by Kay Knight G2G6 Pilot (607k points)
selected by Jamie Nelson
Thanks for the best answer Jamie.
Thank you for the clear answer Kay.
+5 votes

It depends on what you mean? :). If you are referring to the number of ids you can give in the keys field, I seem to recall it is 1000, but I am not 100% sure.  If you are referring to how many profiles you can get (when specifying nuclear, ancestors, descendants, etc), you will not get more than about 10000 profiles back.

Edit: corrected 5000 to 10000 as per the discussion in this thread

by Riël Smit G2G6 Mach 2 (25.4k points)
edited by Riël Smit
If you're asking for relatives, too, I think 100 is the max.
If you use nuclear=7 for example, you can get 1000 results per call, not 100, unless it's changed since I last tried it.

Yes, that's what I meant by "depends what you mean".  The 100 Ian refers to (I think) is the number of IDs you can place in the keys field. The max number of profiles per returned result is 1000 (irrespective of how many IDs you put in the keys field).

And actually, I think Ian is correct, 100 and not 1000 might be the max number of IDs you can put in the field.  Should be easy to test. smiley

Related questions

+7 votes
2 answers
+9 votes
3 answers
238 views asked Sep 28, 2022 in WikiTree Tech by Przemek Więch G2G5 (5.2k points)
+20 votes
1 answer
533 views asked Jul 19, 2019 in WikiTree Tech by Jamie Nelson G2G6 Pilot (640k points)
+2 votes
1 answer
145 views asked Jan 25 in WikiTree Tech by Tomáš Kratina G2G2 (2.3k points)
+5 votes
1 answer
+7 votes
3 answers
225 views asked Feb 1, 2022 in WikiTree Tech by Fairch Fairchild G2G3 (3.0k points)
+5 votes
1 answer
+8 votes
1 answer
359 views asked Jan 19, 2022 in WikiTree Tech by Ken McEvoy G2G6 Mach 1 (12.4k points)
+26 votes
2 answers
+5 votes
0 answers
108 views asked Aug 1, 2021 in WikiTree Tech by Kay Knight G2G6 Pilot (607k points)

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

disclaimer - terms - copyright

...