The threshold parameter can be removed from the API, and the result format simplified to just countries and their number of links. Threshold comparison can be done in the client, done dynamically, and adapt to the type of data we see.
This task should be discussed before implementation, I'm not sure about the premise.