Get ID by ZBD Gamertag
curl --request GET \
--url https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG} \
--header 'apikey: <apikey>'import requests
url = "https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}"
headers = {"apikey": "<apikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<apikey>'}};
fetch('https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}', 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://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <apikey>"
],
]);
$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://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<apikey>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}")
.header("apikey", "<apikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<apikey>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "0a59bf56-daa3-4888-8330-cbc02eba3a6e"
}
}
{
"success": false,
"message": "No user found with this gamertag"
}
Gamertags
Get ID by ZBD Gamertag
Retrieve Gamertag from a ZBD user ID.
GET
/
v0
/
user-id
/
gamertag
/
{GAMERTAG}
Get ID by ZBD Gamertag
curl --request GET \
--url https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG} \
--header 'apikey: <apikey>'import requests
url = "https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}"
headers = {"apikey": "<apikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<apikey>'}};
fetch('https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}', 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://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <apikey>"
],
]);
$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://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<apikey>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}")
.header("apikey", "<apikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebedee.io/v0/user-id/gamertag/{GAMERTAG}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<apikey>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "0a59bf56-daa3-4888-8330-cbc02eba3a6e"
}
}
{
"success": false,
"message": "No user found with this gamertag"
}
Description
Make use of this endpoint to get a given User’s ID when provided with a ZBD Gamertag.Usage
This is needed because ZBD Gamertags are akin to social media handles, they are swappable. In the scenario where a Developer is using a ZBD Gamertag as the identifier for transaction limits and/or thresholds (for example), a user could simply change their ZBD Gamertag and try to bypass those constraints. Using a truly unique and immutable ID like theUser ID will provide Developers with the needed assurances.
Configuration
Path Parameters
string
required
ZBD Gamertag
Header Parameters
string
required
ZBD Project API Key
{
"success": true,
"data": {
"id": "0a59bf56-daa3-4888-8330-cbc02eba3a6e"
}
}
{
"success": false,
"message": "No user found with this gamertag"
}
Was this page helpful?