How to do something like this

I want to request a website with and id at the end, then check for something in website text.Then if something is not in the text then check again fore text in some other website for text. Then check for json…

Getting stuff is with UnityWebRequest when in Unity. Any other way you choose will likely have a lot of issues, so resist the urge and use UWR.

Here’s your regex for C#:

As for JSON, I highly suggest staying away from Unity’s JSON “tiny lite” package. It’s really not very capable at all and will silently fail on very common data structures, such as Dictionaries and Hashes and ALL properties.

Instead grab Newtonsoft JSON .NET off the asset store for free, or else install it from the Unity Package Manager (Window → Package Manager).

also don’t put that code inside Update() loop, its called every frame

webrequest example:

Yes but how to attach the random id at the end of an url, and how to get json data from the site, and text data from the site

string url = "https://asdf.asd/get.php?id="+id;

that appends your id number at the end of url-string (number gets converted into string)

webrequest example prints out received data as text:

webRequest.downloadHandler.text

that will be html, text, json or anything else your url returns. (as a string)

Ok now i have this problem, and when unity requests text, json from site how to check it like | if ‘something’ is not in text then do certain command.

7256267--874970--Screenshot_405.png

see the docs example for full webrequest, you are missing most of the code there.

from full string, can check if it contains another string

but if you want to check inside json data, see how to read it:
https://www.youtube.com/results?search_query=unity+Newtonsoft+json+example