package main
import (
"encoding/json""fmt""io""net/http"
)
funcmain() {
resp, _ := http.Get("https://cubsoftware.site/api/time/now")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
var data map[string]any
json.Unmarshal(body, &data)
fmt.Println(data["unix"], data["discord"])
}
using System.Net.Http.Json;
var client = newHttpClient();
var data = await client.GetFromJsonAsync<Dictionary<string, object>>(
"https://cubsoftware.site/api/time/now"
);
Console.WriteLine(data["unix"]);
Console.WriteLine(data["discord"]);
import java.net.URI;
import java.net.http.*;
import java.util.Map;
import com.fasterxml.jackson.databind.ObjectMapper;
var client = HttpClient.newHttpClient();
var req = HttpRequest.newBuilder()
.uri(URI.create("https://cubsoftware.site/api/time/now"))
.build();
var res = client.send(req, HttpResponse.BodyHandlers.ofString());
var data = newObjectMapper().readValue(res.body(), Map.class);
System.out.println(data.get("unix"));
System.out.println(data.get("discord"));
require'net/http'require'json'
uri = URI('https://cubsoftware.site/api/time/now')
data = JSON.parse(Net::HTTP.get(uri))
puts data['unix'], data['discord']
Try It
Live request
Edit the path and send it. This runs against the real endpoint.
Press Send to run the request.
Rate Limits
10 requests per second per IP, across every endpoint.
We use cookies to keep you logged in, remember your preferences, and improve your experience.
By clicking Accept All you agree to our use of cookies as described in our Privacy Policy.
Cookies declined — some features like staying logged in may not work as expected.
Cookie Settings
Choose which cookies you allow. Your choice is saved and can be changed at any time using the settings button on every page.
Essential
Keeps you logged in, secures your session, and allows tools like the affiliate dashboard and account page to work. Warning: turning this off will sign you out immediately. You can still log in, but you won't stay signed in between visits.Disabling means you must sign in again every time you open the site.
Functional
Saves things like your saved settings, UI preferences, and other choices so you don't have to re-configure them every visit. Disabling this means preferences reset when you close the tab.
Analytics & Tracking
Used for affiliate referral tracking (the __cub_vid visitor cookie) and understanding how tools are used so we can improve them. No data is sold or shared with third parties. Disabling this means affiliate links won't track your visit.