curl --request GET \
--url https://app.d-sports.org/api/user/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.d-sports.org/api/user/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.d-sports.org/api/user/search', 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://app.d-sports.org/api/user/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.d-sports.org/api/user/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.d-sports.org/api/user/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.d-sports.org/api/user/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"users": [
{
"id": "<string>",
"name": "<string>",
"handle": "<string>",
"profileUrl": "<string>",
"profileUrlThumbhash": "<string>",
"bio": "<string>",
"location": "<string>",
"favoriteTeam": "<string>",
"stats": {
"followerCount": 123,
"followingCount": 123,
"totalPoints": 123
}
}
],
"total": 123,
"page": 123,
"totalPages": 123,
"query": "<string>"
}
}{
"success": false,
"error": "<string>",
"code": "VALIDATION_ERROR"
}Search users
Authenticated paginated user search. Default scope matches handle, name, and (for q length >= 2) location. scope=mention matches handle and name only and omits users without a handle — use this from @mention typeahead so a city fragment cannot outrank a handle. limit is accepted (1–50, default 20). Each row uses profileUrl (not avatar); there is no level field. handle is nullable on the default scope and non-empty on scope=mention. location is always returned as a profile field; only the default scope uses it for matching and ranking.
curl --request GET \
--url https://app.d-sports.org/api/user/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.d-sports.org/api/user/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.d-sports.org/api/user/search', 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://app.d-sports.org/api/user/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.d-sports.org/api/user/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.d-sports.org/api/user/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.d-sports.org/api/user/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"users": [
{
"id": "<string>",
"name": "<string>",
"handle": "<string>",
"profileUrl": "<string>",
"profileUrlThumbhash": "<string>",
"bio": "<string>",
"location": "<string>",
"favoriteTeam": "<string>",
"stats": {
"followerCount": 123,
"followingCount": 123,
"totalPoints": 123
}
}
],
"total": 123,
"page": 123,
"totalPages": 123,
"query": "<string>"
}
}{
"success": false,
"error": "<string>",
"code": "VALIDATION_ERROR"
}Authorizations
Clerk session token. Use Authorization: Bearer .
Query Parameters
1.*\S.*x >= 1Page size. Accepted; typeaheads should send their visible row count (e.g. 6) instead of slicing a full page client-side.
1 <= x <= 50Omit for the default explore search. mention matches handle and name only.
mention Was this page helpful?
