Get Match Result API
curl --request GET \
--url https://api.gamezop.com/v1/match-result \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gamezop.com/v1/match-result"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gamezop.com/v1/match-result', 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.gamezop.com/v1/match-result",
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://api.gamezop.com/v1/match-result"
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://api.gamezop.com/v1/match-result")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gamezop.com/v1/match-result")
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{
"data": {
"property_id": "1234",
"game_code": "rJWyhp79RS",
"room_id": "SNAKE_AND_LADDERS_5e0",
"match_id": "ab9ce5a2995c5da2047a",
"scores": [
{
"puid": "user-123",
"is_bot": false,
"rank": 1,
"score": 10
},
{
"puid": "user-456",
"is_bot": true,
"rank": 2,
"score": 9
}
],
"match_status": "COMPLETED",
"match_start_time": "2025-06-11T06:00:00.000Z"
},
"success": true,
"message": ""
}Integration
Get Match Result API
Fetch the result of any Battle match played by your users.
GET
/
v1
/
match-result
Get Match Result API
curl --request GET \
--url https://api.gamezop.com/v1/match-result \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gamezop.com/v1/match-result"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gamezop.com/v1/match-result', 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.gamezop.com/v1/match-result",
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://api.gamezop.com/v1/match-result"
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://api.gamezop.com/v1/match-result")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gamezop.com/v1/match-result")
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{
"data": {
"property_id": "1234",
"game_code": "rJWyhp79RS",
"room_id": "SNAKE_AND_LADDERS_5e0",
"match_id": "ab9ce5a2995c5da2047a",
"scores": [
{
"puid": "user-123",
"is_bot": false,
"rank": 1,
"score": 10
},
{
"puid": "user-456",
"is_bot": true,
"rank": 2,
"score": 9
}
],
"match_status": "COMPLETED",
"match_start_time": "2025-06-11T06:00:00.000Z"
},
"success": true,
"message": ""
}Licensed
This feature is only available with the licensed model. Contact us to know more.
- Your endpoint missed a result because it was down or returned an error.
- You want to check a match that’s still in progress. The response then has
match_status: "IN_PROGRESS"and the latest scores. - You want to check your records against Gamezop’s before paying out prizes.
match_id: the one your Create Match API returned, or the one Gamezop generated if you haven’t built that API. You receive it in the Receive Winners API request and in client-side callbacks.
To call this API, use the bearer token from Settings & Admin > API Tokens in the Gamezop Business Dashboard. This isn’t the token you may have shared for your own endpoints.
Authorizations
You can find the Bearer token for this API under Settings & Admin > API Tokens within the Gamezop Business Dashboard.
Query Parameters
The match_id you want the result for. The match's match_id: the one your Create Match API returned, or the one Gamezop generated if you haven't built that API. You receive it in the Receive Winners API request and in client-side callbacks.
Was this page helpful?