Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
This API is not authenticated.
Endpoints
POST api/login
Example request:
curl --request POST \
"http://matkaonline24.com/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"rokon123@gmail.com\",
\"password\": \"Um$\\\\&]:e{*|\"
}"
const url = new URL(
"http://matkaonline24.com/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "rokon123@gmail.com",
"password": "Um$\\&]:e{*|"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/login';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'rokon123@gmail.com',
'password' => 'Um$\\&]:e{*|',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/login'
payload = {
"email": "rokon123@gmail.com",
"password": "Um$\\&]:e{*|"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (200, success):
{
"success": true,
"data": {
"token": "9|AITM4kk6xI47ClPaoh3CdfrQzuITDvQ8AsOcCfua7da00c0f",
"name": "testuserone"
},
"message": "User signed in"
}
Example response (401, Not authorized):
"data": {
"success": false,
"message": "Unauthorised.",
"data": {
"error": "Unauthorised"
}
}
Example response (422, validation failed):
"data": {
"email": [
"The email field is required."
],
"password": [
"The password field is required."
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/register
Example request:
curl --request POST \
"http://matkaonline24.com/api/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"quidem\",
\"email\": \"rokon123@gmail.com\",
\"username\": \"rokon123\",
\"password\": \"}a?H7N*V7at59at\",
\"password_confirmation\": \"non\",
\"country\": \"BD\",
\"mobile\": 20249.351493963
}"
const url = new URL(
"http://matkaonline24.com/api/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "quidem",
"email": "rokon123@gmail.com",
"username": "rokon123",
"password": "}a?H7N*V7at59at",
"password_confirmation": "non",
"country": "BD",
"mobile": 20249.351493963
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/register';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'quidem',
'email' => 'rokon123@gmail.com',
'username' => 'rokon123',
'password' => '}a?H7N*V7at59at',
'password_confirmation' => 'non',
'country' => 'BD',
'mobile' => 20249.351493963,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/register'
payload = {
"name": "quidem",
"email": "rokon123@gmail.com",
"username": "rokon123",
"password": "}a?H7N*V7at59at",
"password_confirmation": "non",
"country": "BD",
"mobile": 20249.351493963
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (200, success):
"data": {
"name": "testuserone",
"token": "8|xhGFH0aID8zuQ0VyEex76fRkuWytgKENeqbYvE6115b91ec6"
},
"message": "User created successfully."
Example response (422, validation failed):
"data": {
"name": [
"The name field is required."
],
"email": [
"The email field is required."
],
"username": [
"The username field is required."
],
"password": [
"The password field is required. The password must be at least 8 characters"
],
"password_confirmation": [
"The password confirmation field is required. The password must be at least 8 characters"
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-sliders
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-sliders" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-sliders"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-sliders';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-sliders'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 26,
"title": this is the name of the slider,
"image": "1677045128.jpg",
"status": "on",
"created_at": "2023-02-22T05:52:08.000000Z",
"updated_at": "2023-02-22T05:52:08.000000Z"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-game-types
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-game-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-game-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-game-types';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-game-types'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 1,
"name": "KALYAN LOTTERY",
"image": "1677084554.png",
"created_at": "2022-12-08T11:38:04.000000Z",
"updated_at": "2023-02-22T16:49:14.000000Z"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-kallyan-winners
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-kallyan-winners" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-kallyan-winners"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-kallyan-winners';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-kallyan-winners'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 916649,
"result_date": "2023-12-04 00:00:00",
"game_time_id": 42,
"category": 8,
"number": "27",
"point": "1",
"credit_point": "95",
"user_id": 837,
"is_win": 1,
"has_zero": "0",
"has_double_zero": null,
"created_at": "2023-12-05T00:06:16.000000Z",
"updated_at": "2023-12-05T00:06:16.000000Z"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-thai-winners
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-thai-winners" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-thai-winners"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-thai-winners';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-thai-winners'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 448,
"user_id": 4074,
"category_id": 2,
"amount": "3",
"direct_amount": "1",
"ramble_amount": "0",
"number": "7",
"created_at": "2023-12-01T08:56:24.000000Z",
"updated_at": "2023-12-01T08:56:24.000000Z",
"deleted_at": null
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-thai-rates
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-thai-rates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-thai-rates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-thai-rates';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-thai-rates'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 1,
"name": "3up direct & rumble",
"discount": "20",
"type_id": 3,
"status": 0,
"rate": 500,
"ramble": 100,
"created_at": "2023-01-06T05:53:38.000000Z",
"updated_at": "2023-02-15T19:19:12.000000Z"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-kallyan-rates
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-kallyan-rates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-kallyan-rates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-kallyan-rates';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-kallyan-rates'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 9,
"game_type_id": 1,
"game_category_id": "8",
"game_sub_category_id": null,
"rate": "Rs100 x 9500",
"discount": "0",
"status": "on",
"created_at": "2023-02-17T02:57:07.000000Z",
"updated_at": "2023-02-26T05:03:17.000000Z"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-front-notices
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-front-notices" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-front-notices"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-front-notices';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-front-notices'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 2,
"notice_1": "<div style=\"text-align: left;\"><b style=\"\"><font color=\"#ff0000\" style=\"\">📝Play Thai & Kalyan Lottery </font></b></div><div style=\"text-align: left;\"><font color=\"#339933\" style=\"\" size=\"2\"><b>3up Direct Rate: $1×500 20%Discount</b></font></div><div style=\"text-align: left;\"><font color=\"#339933\" size=\"2\"><b>3up Rumble Rate: $1×100 20%Discount </b></font></div><div style=\"text-align: left;\"><font color=\"#339933\" size=\"2\"><b>Down Direct Rate: $1×80 10%Discount</b></font></div><div style=\"text-align: left;\"><font color=\"#339933\" style=\"\" size=\"2\"><b>Kalyan Lottery. Game Total Rate has been increased. Now Game Total Rate: Rs100×1000</b></font></div><div style=\"text-align: left;\"><b style=\"\"><font style=\"\"><font color=\"#ff3399\" style=\"\" size=\"4\">💰</font><font color=\"#ff0000\" style=\"font-size: 1rem;\">Get Bonus</font></font></b></div><div style=\"text-align: left;\"><font size=\"2\" color=\"#ff0000\"><b style=\"\">5% Referral commission for every <font style=\"\"><font style=\"\">deposit life time</font></font></b></font></div><div style=\"text-align: left;\"><font color=\"#009900\" style=\"font-size: 1rem;\"><b><u>Play></u></b></font><font color=\"#000000\" style=\"font-size: small;\"> kalyan Lottery </font><br></div><div style=\"text-align: left;\"><b style=\"\"><font color=\"#009900\" style=\"\" size=\"3\"><u style=\"\">Play></u></font></b><font color=\"#000000\" style=\"font-size: small;\"> Thai National Lottery</font></div><div style=\"text-align: left;\"><b style=\"\"><font color=\"#009900\" style=\"\" size=\"3\"><u style=\"\">Upcoming></u></font></b><font color=\"#000000\" style=\"font-size: small;\"> Bangkok Weekly Lottery</font></div><div style=\"text-align: left;\"><b style=\"\"><font color=\"#009900\" style=\"\" size=\"3\"><u style=\"\">Upcoming></u></font></b><font color=\"#000000\" style=\"font-size: small;\"> Matka Monthly Lottery</font></div><div style=\"text-align: left;\"><font style=\"\" color=\"#009900\" size=\"3\"><b style=\"\"><u style=\"\">Upcoming></u></b></font><font style=\"font-size: small; color: rgb(0, 0, 0);\"> Live Table & Sports & Ludo</font></div><div style=\"text-align: left;\"><font color=\"rgba(0, 0, 0, 0)\" style=\"\" size=\"2\">🌍</font><font color=\"#ff0000\" style=\"font-size: small;\">Visit </font><font color=\"#ff0000\" style=\"font-size: small;\">www.betglo24.com</font></div><div style=\"text-align: left;\"><font color=\"#ff0000\" size=\"2\" style=\"\">🌍Visit www.matkaonline24.com</font><img style=\"text-align: var(--bs-body-text-align); color: var(--bs-body-color); font-size: 1rem;\"></div>",
"notice_2": "🎤 Get 5% referral commission for every deposit life time. play kalyan thai bankok matka monthly lottery & win unlimited money. we accept 20+ payment method. deposit time morning 09:00 am to night 10:00 pm & withdrawal time morning 10:00 am to evening 05:00 pm 🌍Visit our web link: www.betglo24.com \r\nwww.matkaonline24.com",
"notice_3": "🎤 Get 5% referral commission for every deposit life time. play kalyan thai bankok matka monthly lottery & win unlimited money. we accept 20+ payment method. join matka online 24 ⭐⭐⭐ 🎤 Get 5% referral commission for every deposit. play kalyan thai bankok matka monthly lottery & win unlimited money. we accept 20+ payment method. join matka online 24 ⭐⭐⭐",
"created_at": "2022-12-23T22:17:59.000000Z",
"updated_at": "2023-03-16T02:51:56.000000Z"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-user-balance
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-user-balance" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-user-balance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-user-balance';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-user-balance'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"success": true,
"data": "0.00000000",
"message": "data retrive successfully."
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-payment-gateways
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-payment-gateways" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-payment-gateways"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-payment-gateways';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-payment-gateways'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-game-category/{id}
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-game-category/sit" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-game-category/sit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-game-category/sit';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-game-category/sit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 4,
"game_type_id": 1,
"name": "GAME TOTAL",
"base_name": "total",
"created_at": "2022-12-08T12:41:42.000000Z",
"updated_at": "2023-02-26T05:02:49.000000Z",
"winning_rate": "10",
"status": "0"
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-kallyan-game
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-kallyan-game" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-kallyan-game"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-kallyan-game';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-kallyan-game'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200, success):
{
"success": true,
"data": [
{
"id": 1,
"name": "Milan Morning",
"created_at": "2022-12-24T00:09:55.000000Z",
"updated_at": "2023-03-09T04:59:54.000000Z",
"type_id": 5,
"status": 0,
"game_time": [
{
"id": 2,
"bazar_id": 1,
"status": 0,
"open_time": "00:00:00",
"close_time": "10:25:00",
"created_at": "2022-12-24T00:46:14.000000Z",
"updated_at": "2023-02-26T05:06:28.000000Z"
},
{
"id": 3,
"bazar_id": 1,
"status": 1,
"open_time": "00:00:00",
"close_time": "11:35:00",
"created_at": "2022-12-24T07:30:14.000000Z",
"updated_at": "2023-02-22T07:59:59.000000Z"
}
]
},
],
"message": "data retrive successfully."
}
Example response (400, something wrong with URL or parameters):
{
"message": "something wrong with URL or parameters"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all deposits from user.
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-user-deposit-history" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-user-deposit-history"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-user-deposit-history';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-user-deposit-history'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/send-deposit
Example request:
curl --request POST \
"http://matkaonline24.com/api/send-deposit" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": \"1000\",
\"method_code\": 0,
\"transaction_id\": \"in\",
\"mobile\": 2287.029348,
\"agent_id\": 7,
\"method_currency\": \"RS\"
}"
const url = new URL(
"http://matkaonline24.com/api/send-deposit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": "1000",
"method_code": 0,
"transaction_id": "in",
"mobile": 2287.029348,
"agent_id": 7,
"method_currency": "RS"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/send-deposit';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'amount' => '1000',
'method_code' => 0,
'transaction_id' => 'in',
'mobile' => 2287.029348,
'agent_id' => 7,
'method_currency' => 'RS',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/send-deposit'
payload = {
"amount": "1000",
"method_code": 0,
"transaction_id": "in",
"mobile": 2287.029348,
"agent_id": 7,
"method_currency": "RS"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (200, success):
"data": {
"user_id": 4,
"method_code": "1000",
"method_currency": "RS",
"amount": "100",
"final_amo": "100",
"agent_id": "1",
"trx": "tredty",
"detail": "01312808289",
"status": 2,
"updated_at": "2023-12-05T14:23:30.000000Z",
"created_at": "2023-12-05T14:23:30.000000Z",
"id": 15
},
"message": "User created successfully."
Example response (422, validation failed):
"data": {
"amount": [
"The amount field is required."
],
"method_code": [
"The method_code field is required."
],
"transaction_id": [
"The transaction_id field is required."
],
"mobile": [
"The mobile field is required."
],
"agent_id": [
"The agent_id field is required."
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/send-withdraw
Example request:
curl --request POST \
"http://matkaonline24.com/api/send-withdraw" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": \"1000\",
\"method_id\": \"error\",
\"mobile\": 2089.8,
\"method_code\": 0,
\"method_currency\": \"RS\",
\"transaction_id\": \"doloribus\"
}"
const url = new URL(
"http://matkaonline24.com/api/send-withdraw"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": "1000",
"method_id": "error",
"mobile": 2089.8,
"method_code": 0,
"method_currency": "RS",
"transaction_id": "doloribus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/send-withdraw';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'amount' => '1000',
'method_id' => 'error',
'mobile' => 2089.8,
'method_code' => 0,
'method_currency' => 'RS',
'transaction_id' => 'doloribus',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/send-withdraw'
payload = {
"amount": "1000",
"method_id": "error",
"mobile": 2089.8,
"method_code": 0,
"method_currency": "RS",
"transaction_id": "doloribus"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (200, success):
"data": {
"user_id": 4,
"method_id": "1",
"amount": "1000",
"final_amount": "1000",
"agent_id": "1",
"trx": "CYJM1NGA7OOW",
"withdraw_information": "01233",
"status": 2,
"updated_at": "2023-12-05T14:47:30.000000Z",
"created_at": "2023-12-05T14:47:30.000000Z",
"id": 363
},
"message": "User created successfully."
Example response (422, validation failed):
"data": {
"amount": [
"The amount field is required."
],
"method_id": [
"The method_id field is required."
],
"agent_id": [
"The agent_id field is required."
],
"mobile": [
"The mobile field is required."
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all withdrawls from user.
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-user-withdraw-history" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-user-withdraw-history"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-user-withdraw-history';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-user-withdraw-history'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
API endpoint for sending a balance transfer request from one user to another.
Example request:
curl --request POST \
"http://matkaonline24.com/api/balance-transfer" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"to_user\": \"ex\",
\"amount\": 1.03015
}"
const url = new URL(
"http://matkaonline24.com/api/balance-transfer"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"to_user": "ex",
"amount": 1.03015
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/balance-transfer';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'to_user' => 'ex',
'amount' => 1.03015,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/balance-transfer'
payload = {
"to_user": "ex",
"amount": 1.03015
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
balance
numeric The remaining balance of the sender after the transfer.
message
string
A message indicating the result of the transfer.
Get all blance transfer from user.
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/get-user-transfer-history" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/get-user-transfer-history"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/get-user-transfer-history';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/get-user-transfer-history'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/profile-update
Example request:
curl --request POST \
"http://matkaonline24.com/api/profile-update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"firstname\": \"rerum\",
\"lastname\": \"\\\"John\\\"\",
\"mobile\": 64.402128595,
\"address\": \"autem\"
}"
const url = new URL(
"http://matkaonline24.com/api/profile-update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"firstname": "rerum",
"lastname": "\"John\"",
"mobile": 64.402128595,
"address": "autem"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/profile-update';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'firstname' => 'rerum',
'lastname' => '"John"',
'mobile' => 64.402128595,
'address' => 'autem',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/profile-update'
payload = {
"firstname": "rerum",
"lastname": "\"John\"",
"mobile": 64.402128595,
"address": "autem"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (200, {):
"success": true,
"data": {
"id": 4,
"firstname": "MR",
"lastname": "John",
"username": "testuserone",
"email": "testuserone@gmail.com",
"country_code": "BD",
"mobile": "123654",
"ref_by": 0,
"balance": "0.00000000",
"image": null,
"address": "bougra",
"status": 1,
"ev": 1,
"sv": 1,
"ver_code_send_at": null,
"ts": 0,
"tv": 1,
"tsc": null,
"kyc_data": null,
"kv": 1,
"profile_complete": 1,
"ban_reason": null,
"is_agent": null,
"created_at": "2023-12-05T04:36:22.000000Z",
"updated_at": "2023-12-06T14:10:16.000000Z",
"balance_transfer": null,
"withdraw": null,
"personal_access_tokens": null
},
"message": "data sent successfully."
}
Example response (422, validation failed):
"data": {
"firstname": [
"The firstname field is required."
],
"lastname": [
"The lastname field is required."
],
"mobile": [
"The mobile field is required."
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a new game bid.
This function validates the request, checks game time, user balance, and processes the game bid transaction.
Example request:
curl --request POST \
"http://matkaonline24.com/api/game-play" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"bazar_id\": 13,
\"category_id\": 18,
\"number\": [
20129.93
],
\"point\": [
23110.722047456
],
\"point[]\": 17,
\"number[]\": 7
}"
const url = new URL(
"http://matkaonline24.com/api/game-play"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"bazar_id": 13,
"category_id": 18,
"number": [
20129.93
],
"point": [
23110.722047456
],
"point[]": 17,
"number[]": 7
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/game-play';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'bazar_id' => 13,
'category_id' => 18,
'number' => [
20129.93,
],
'point' => [
23110.722047456,
],
'point[]' => 17,
'number[]' => 7,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/game-play'
payload = {
"bazar_id": 13,
"category_id": 18,
"number": [
20129.93
],
"point": [
23110.722047456
],
"point[]": 17,
"number[]": 7
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a new Thai game bid.
This function validates the request, checks game availability, time constraints, processes the game bid transaction, and updates user balance and admin records.
Example request:
curl --request POST \
"http://matkaonline24.com/api/thai-game-play" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"number\": [
1.1480191
],
\"category_id\": 6,
\"total_amount\": 11,
\"d_amount[]\": 5,
\"r_amount[]\": 20,
\"number[]\": 6,
\"total_discount_amount\": 5
}"
const url = new URL(
"http://matkaonline24.com/api/thai-game-play"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"number": [
1.1480191
],
"category_id": 6,
"total_amount": 11,
"d_amount[]": 5,
"r_amount[]": 20,
"number[]": 6,
"total_discount_amount": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/thai-game-play';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'number' => [
1.1480191,
],
'category_id' => 6,
'total_amount' => 11,
'd_amount[]' => 5,
'r_amount[]' => 20,
'number[]' => 6,
'total_discount_amount' => 5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/thai-game-play'
payload = {
"number": [
1.1480191
],
"category_id": 6,
"total_amount": 11,
"d_amount[]": 5,
"r_amount[]": 20,
"number[]": 6,
"total_discount_amount": 5
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout the authenticated user.
Example request:
curl --request GET \
--get "http://matkaonline24.com/api/log-out" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://matkaonline24.com/api/log-out"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://matkaonline24.com/api/log-out';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://matkaonline24.com/api/log-out'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.