HTTP Module
The http module sends requests to whitelisted external domains and processes JSON responses.
API Functions
Section titled “API Functions”| Function | Arguments | Description |
|---|---|---|
http.get(url) | string | Fetches data from a URL. |
http.post(url, data) | string, string | Sends a POST request with a string body. |
http.request(url, method, body, headers) | string, string, string, list | Sends a custom HTTP request with the given method, body, and headers. |
http.jsonEncode(table) | table | Converts a table into a JSON string. |
http.jsonDecode(json) | string | Converts a JSON string back into a table. |
lau-compiler.exe
varol response = http.get("https://jsonplaceholder.typicode.com/posts/1")varol data = http.jsonDecode(response)
print("[Network] Command received: " + data.title)OUTPUT:
[Network] Command received: Move North
lau-compiler.exe
varol response = http.request("https://jsonplaceholder.typicode.com/posts/1", "GET", "", {})
print("GET /posts/1 response received")print(response)OUTPUT:
GET /posts/1 response received
Limits
Section titled “Limits”- Standard servers: 70 requests per minute
- Private servers: 200 requests per minute
- Request timeout: 5 seconds
- Whitelist only: approved domains only
generativelanguage.googleapis.com(Gemini)api.openai.com(OpenAI)api-inference.huggingface.coapi.groq.com(High-speed LLM)api.anthropic.com(Claude)api.deepseek.comapi.aleph-alpha.comopenrouter.aipollinations.ai/gen.pollinations.ai
script.google.com(Google Apps Script)script.googleusercontent.com(Apps Script Content)www.googleapis.com(YouTube Data & Google Services)
github.com/api.github.com/raw.githubusercontent.comapi.gitlab.compastebin.com/catbox.moereplit.dev/replit.appapi.vercel.com/api.render.comapi.cloudflare.com/developers.cloudflare.combackboard.railway.app/api.digitalocean.comapi.fontawesome.com/algolia.net/w3.org
api.imgur.com,api.giphy.com,api.tenor.comapi.minecraftservices.com,api.stardewvalleywiki.com,api.disneyapi.dev
discord.com(Webhooks & Bot API)api.telegram.org(Telegram Bots)webhook.lewisakura.moehooks.slack.comapi.sendgrid.com(Email Services)pusher.com/ably.com(WebSockets)
api.open-meteo.com(Weather) /worldtimeapi.org(Clock)newsapi.org/en.wikipedia.org/openlibrary.orgapi.nasa.gov/api.wolframalpha.comus1.locationiq.com(Geo) /themealdb.com(Food)catfact.ninja/world.openfoodfacts.org/pokeapi.co
supabase.co,firebaseio.com,api.trello.comn8n.io,zapier.com,make.com,workato.comwebhook.site,requestbin.com,hookdeck.com,beeceptor.comjsonplaceholder.typicode.com,reqres.in,httpbin.org,randomuser.me
api.pwc.wikidrone.pnblox.xyz/dronehub.pnblox.xyz