Minecraft Verification
The supported Minecraft versions are: 1.8.0 -> Latest version. It does not support the Bugrock Bedrock Edition yet.
Get a verified User
Section titled “Get a verified User”Returns the information about a verified user
GET/api/minecraft/get-user
https://api.cookie-api.com/api/minecraft/get-user
Authentication Learn how to get an API key and authorize your Request
URL Parameters | |
---|---|
length | Length of the sequence |
min | Minimum value |
max | Maximum value |
curl --location 'https://api.cookie-api.com/api/minecraft/get-user?code=12345' \--header 'Authorization: API_Key'
import requests
url = 'https://api.cookie-api.com/api/minecraft/get-user'params = { 'code': '12345'}headers = { 'Authorization': 'API_Key'}
response = requests.get(url, headers=headers, params=params)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/minecraft/get-user?code=12345';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'GET', headers }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/minecraft/get-user?code=12345"
req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatal(err) } req.Header.Set("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/minecraft/get-user?code=12345', method: 'GET', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let data = '';
res.on('data', chunk => { data += chunk; });
res.on('end', () => { console.log(JSON.parse(data)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'json'require 'uri'
url = URI.parse('https://api.cookie-api.com/api/minecraft/get-user?code=12345')request = Net::HTTP::Get.new(url)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(url.hostname, url.port, use_ssl: true) do |http| http.request(request)end
puts JSON.parse(response.body)
use reqwest::blocking::Client;use reqwest::header::HeaderMap;use serde_json::Value;
fn main() { let url = "https://api.cookie-api.com/api/minecraft/get-user?code=12345";
let client = Client::new(); let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client.get(url) .headers(headers) .send() .unwrap();
let body: Value = res.json().unwrap(); println!("{:?}", body);}
Responses
{ "player_id": "1d25b1dc57e14bb9bd93f574f75cb4d0", "player_name": "The_Tea_Cookie", "success": true, "verified_at": "1747083427"}
How does it work?
Section titled “How does it work?”-
Join the verification server
Section titled “Join the verification server”The user can join via
verify.cookie-api.com
ormc.cookie-api.com
. (Both have a different connection logic. If you are having problems, try the other of the 2 domains.)You can also use your own domain. More info: here
-
Verification Code
Section titled “Verification Code”Once the user has joined the they will see their verification code both in the Chat and in a Book (opened by default):
-
Fetch the user
Section titled “Fetch the user”You can now take the endpoint from above and provide it the code that you/the user recieved. That Endpoint will then return Information about the user: