Sorry. It should be value_json.
But now that I think about it, value_json is an object and it won’t work.
Either the object needs to be converted to string or you need to find where this key provider_id is and look for it directly.
however, this has a flaw that it looks for the string
0x3094916cfc86aa7b7a644a7e7abeec4692258a08 and if it finds
10x3094916cfc86aa7b7a644a7e7abeec4692258a08 or
0x3094916cfc86aa7b7a644a7e7abeec4692258a081
it will say “online”.
Meaning it will do a dumb comparison.
But lets try this first then we can move to a regex comparison and make sure it doesn’t match incorrectly
@Hellis81 That looks much better. It shows online now and no more errors in the log. I am afraid to ask but if you also have a solution for the “dumb comparison” that would be even more awesome.
This should ensure that the string exists in it’s entirety,
However I would say that doing a proper json search is probably the better choice, but I can’t open the link on my work computer and the phone can’t copy the complete json.
So I can’t get the structure of the json.
Hi,
More than one year later here come some additional info.
The mysterium API works with GET requests so, instead of downloading the full list off nodes each time you do a request, you can specify the node you want to get info on requesting like that :