Build an authorize URL for logging users in. Free, no key, no account.
3
Response Fields
FREE
No API Key Needed
JSON
Response Format
Base URL
Basehttps://cubsoftware.site
Authentication
No API key required — this endpoint is publicly accessible.
Please include a descriptive User-Agent header identifying your app.
OAuth2 URLs
GET/api/discord/oauth-urlDiscord
Build an authorize URL for logging users in.
Parameter
Type
Required
Description
client_id
string
required
Your application ID.
redirect_uri
string
optional
Must match one saved in the Developer Portal exactly.
scopes
string
optional
OAuth2 scopes. Default identify.
state
string
optional
Opaque value returned to you, for CSRF protection.
Example Response
{
"note": "redirect_uri must match one saved in the Developer Portal exactly.",
"scopes": [
"guilds",
"identify"
],
"url": "https://discord.com/oauth2/authorize?client_id=123456789012345678&response_type=code&scope=guilds%20identify"
}
const res = awaitfetch('https://cubsoftware.site/api/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds');
const data = await res.json();
console.log(data.url);
const https = require('https');
https.get('https://cubsoftware.site/api/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds', (res) => {
let body = '';
res.on('data', chunk => body += chunk);
res.on('end', () => {
const data = JSON.parse(body);
console.log(data.url);
});
});
import requests
res = requests.get('https://cubsoftware.site/api/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds')
data = res.json()
print(data['url'])
package main
import (
"encoding/json""fmt""io""net/http"
)
funcmain() {
resp, _ := http.Get("https://cubsoftware.site/api/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
var data map[string]any
json.Unmarshal(body, &data)
fmt.Println(data["url"])
}
using System.Net.Http.Json;
var client = newHttpClient();
var data = await client.GetFromJsonAsync<Dictionary<string, object>>(
"https://cubsoftware.site/api/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds"
);
Console.WriteLine(data["url"]);
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/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds"))
.build();
var res = client.send(req, HttpResponse.BodyHandlers.ofString());
var data = newObjectMapper().readValue(res.body(), Map.class);
System.out.println(data.get("url"));
require'net/http'require'json'
uri = URI('https://cubsoftware.site/api/discord/oauth-url?client_id=123456789012345678&scopes=identify,guilds')
data = JSON.parse(Net::HTTP.get(uri))
puts data['url']
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.