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.
How about authenticating? Maybe not doing that could cause problems. See
https://github.com/wikitree/wikitree-api/tree/main/examples/authentication
I think the server was under heavy load before, because the same code works well this evening.