curl --request POST \
--url https://www.immersivecommons.com/api/batch \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"path": "<string>",
"id": "<string>",
"method": "GET"
}
]
}
'import requests
url = "https://www.immersivecommons.com/api/batch"
payload = { "requests": [
{
"path": "<string>",
"id": "<string>",
"method": "GET"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({requests: [{path: '<string>', id: '<string>', method: 'GET'}]})
};
fetch('https://www.immersivecommons.com/api/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.immersivecommons.com/api/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'path' => '<string>',
'id' => '<string>',
'method' => 'GET'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.immersivecommons.com/api/batch"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"path\": \"<string>\",\n \"id\": \"<string>\",\n \"method\": \"GET\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.immersivecommons.com/api/batch")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"path\": \"<string>\",\n \"id\": \"<string>\",\n \"method\": \"GET\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.immersivecommons.com/api/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"path\": \"<string>\",\n \"id\": \"<string>\",\n \"method\": \"GET\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"count": 123,
"results": [
{
"path": "<string>",
"status": 123,
"ok": true,
"body": {},
"id": "<string>"
}
]
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}Run up to 20 public GET reads in one request
Public, no auth. Submit a bounded list (1..20) of GET sub-requests to the allowlisted PUBLIC read endpoints (/api/events/upcoming, /api/events/get, /api/floor10/donations) and get their results back in order. Each sub-request is dispatched to the SAME handler that serves it directly, so a batched result is identical to calling that endpoint alone. Writes and auth-gated reads are deliberately NOT batchable (they keep their own idempotency + per-token rate accounting). Partial-failure semantics: a rejected sub-request (non-GET, non-allowlisted path, handler error) carries a 4xx/5xx status inside its own result while the batch envelope stays 200; only a malformed batch envelope is a 400 on the whole call.
curl --request POST \
--url https://www.immersivecommons.com/api/batch \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"path": "<string>",
"id": "<string>",
"method": "GET"
}
]
}
'import requests
url = "https://www.immersivecommons.com/api/batch"
payload = { "requests": [
{
"path": "<string>",
"id": "<string>",
"method": "GET"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({requests: [{path: '<string>', id: '<string>', method: 'GET'}]})
};
fetch('https://www.immersivecommons.com/api/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.immersivecommons.com/api/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'path' => '<string>',
'id' => '<string>',
'method' => 'GET'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.immersivecommons.com/api/batch"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"path\": \"<string>\",\n \"id\": \"<string>\",\n \"method\": \"GET\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.immersivecommons.com/api/batch")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"path\": \"<string>\",\n \"id\": \"<string>\",\n \"method\": \"GET\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.immersivecommons.com/api/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"path\": \"<string>\",\n \"id\": \"<string>\",\n \"method\": \"GET\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"count": 123,
"results": [
{
"path": "<string>",
"status": 123,
"ok": true,
"body": {},
"id": "<string>"
}
]
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}Body
A bounded list (1..20) of public GET sub-requests to run in one round-trip.
1 - 20 elementsShow child attributes
Show child attributes