$jsonRequest
Makes an API request (GET) and returns its response.
Note
The URL must be whitelisted, you can check in our support server.
Usage
$jsonRequest[url;property;error message;headerName:headerValue;headerName:headerValue;...]
Timeout
request will timeout after 1 minute, for tier 4+ it will timeout after 30 minutes.
Example
Assume my api url return json reply like:
{
"user":"Mido",
"money":5332
}
Code:
Your money is $jsonRequest[my api;money;failed to get the money]
⏱️ Function Cooldown
This function has a built-in cooldown to help prevent excessive usage.
| Property | Value |
|---|---|
| ⏱️ Duration | 600 μs |
| 🆔 Tracked By | Server |
| 🌐 Scope | Request |
Functions with the same Scope share cooldowns based on the same
Tracked Byvalue.
💎 Tier 3+ servers bypass this cooldown. See Premium Perks.