Problem with API

+2 votes
144 views
Hi, I'm calling the getRelatives API method, but after a few requests, I'm getting a net::ERR_CONNECTION_RESET error.

In the past, this worked fine. Is there any issue with the server load?
in WikiTree Tech by Tomáš Kratina G2G2 (2.3k points)
edited by Ellen Smith

Hi Tomáš. Are you making a lot of requests in quick succession? Maybe there is a defence mechanism. Also, are you logging in to the API, and are you using an appId? See

https://www.wikitree.com/wiki/Help:App_Policies

Hello, no. The current rate limits per user are: 200 per minute, 4000 per hour. I encounter an error after 3-5 requests, and there is a 15-second delay. I need to check if there is an app ID. I am unsure about this.

The appId is a firmly requested requirement. If you are not using one, that could be a factor contributing to the problem.

Perhaps you would have fewer problems with the getPeople call. It can get multiple generations or degrees at once, with data relating to up to 1000 profiles returned at a time, so you don't need as many separate calls.

I’ve been adding appid but I’m still having a problem.

How about authenticating? Maybe not doing that could cause problems. See

https://github.com/wikitree/wikitree-api/tree/main/examples/authentication

1 Answer

+3 votes

I think the server was under heavy load before, because the same code works well this evening.

by Tomáš Kratina G2G2 (2.3k points)
Instead of getRelatives you should use the getPeople API. This will reduce the server and network load. It will give you comparable results.

Related questions

+5 votes
1 answer
+6 votes
2 answers
166 views asked Jan 8 in WikiTree Tech by Michel Vorenhout G2G6 Pilot (319k points)
+7 votes
2 answers
+9 votes
3 answers
236 views asked Sep 28, 2022 in WikiTree Tech by Przemek Więch G2G5 (5.2k points)
+7 votes
3 answers
223 views asked Feb 1, 2022 in WikiTree Tech by Fairch Fairchild G2G3 (3.0k points)
+5 votes
1 answer
+8 votes
1 answer
357 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 (606k points)
+8 votes
1 answer
270 views asked Apr 10, 2020 in WikiTree Tech by Brian Casey G2G Crew (370 points)

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

disclaimer - terms - copyright

...