API Documentation
Professional REST API for real-time Satta Matka results. Auto-synced every 2 minutes from verified sources with 99.9% uptime.
Base API URL
https://api.matkawin.fun/api/
Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /get_today.php | Today's live results with market status |
| GET | /get_results.php | Today + Yesterday results |
| GET | /get_history.php | Historical results with date filtering |
| GET | /get_markets.php | List all active markets |
Authentication
Every request must include your api_key as a query parameter. You'll receive your key after purchasing a plan.
Rate Limits
Each plan has a daily request limit. The remaining quota is returned in every response.
| Plan | Daily Limit | Markets | Webhooks |
|---|---|---|---|
| Starter | 1,000 requests/day | All Markets | ❌ |
| Professional | 5,000 requests/day | All Markets | ✅ |
| Agency | Unlimited | All Markets + Priority | ✅ |
Get Today's Results
Fetch live results for all markets for today. Returns market status (waiting, open, closed) and calculated jodi.
Parameters
| Parameter | Type | Description |
|---|---|---|
api_key | stringrequired | Your API access key |
market | stringoptional | Filter by market name (e.g., KALYAN) |
Code Examples
<?php
$url = "https://api.matkawin.fun/api/get_today.php?api_key=YOUR_KEY";
$response = json_decode(file_get_contents($url), true);
if ($response['status'] === 'success') {
foreach ($response['data'] as $market) {
echo $market['market'] . ": " . $market['result'] . "\n";
// Output: KALYAN: 238-05-339
}
}
?>
const axios = require('axios');
const res = await axios.get('https://api.matkawin.fun/api/get_today.php', {
params: { api_key: 'YOUR_KEY', market: 'KALYAN' }
});
res.data.data.forEach(m => {
console.log(`${m.market}: ${m.result} (${m.status})`);
});
import requests
url = "https://api.matkawin.fun/api/get_today.php"
params = {"api_key": "YOUR_KEY"}
r = requests.get(url, params=params)
data = r.json()
for market in data["data"]:
print(f"{market['market']}: {market['result']}")
curl "https://api.matkawin.fun/api/get_today.php?api_key=YOUR_KEY&market=KALYAN"
Response
{
"status": "success",
"provider": "Matka Result API Pro",
"date": "2026-05-17",
"total_markets": 18,
"requests_remaining": 948,
"data": [
{
"market": "KALYAN",
"date": "2026-05-17",
"open_pana": "238",
"close_pana": "339",
"jodi": "35",
"result": "238-35-339",
"market_time": "16:00:00 - 18:00:00",
"status": "closed"
}
]
}
Get Results (Today + Yesterday)
Fetch results for today and yesterday. Useful for apps that need to show the latest available results.
| Parameter | Type | Description |
|---|---|---|
api_key | stringrequired | Your API key |
market | stringoptional | Filter by market name |
Get History
Query historical results by specific date or date range. Perfect for building chart panels and analytics.
| Parameter | Type | Description |
|---|---|---|
api_key | stringrequired | Your API key |
date | stringoptional | Specific date (YYYY-MM-DD) |
from | stringoptional | Range start (YYYY-MM-DD) |
to | stringoptional | Range end (YYYY-MM-DD) |
market | stringoptional | Filter by market name |
Example Queries
GET /api/get_history.php?api_key=KEY&date=2026-05-15
GET /api/get_history.php?api_key=KEY&from=2026-05-01&to=2026-05-15
GET /api/get_history.php?api_key=KEY&market=KALYAN&from=2026-01-01&to=2026-05-15
Get Markets
Returns a list of all active markets with their opening and closing times.
Response
{
"status": "success",
"total": 18,
"data": [
{ "name": "KALYAN", "open_time": "16:00:00", "close_time": "18:00:00" },
{ "name": "MILAN DAY", "open_time": "15:00:00", "close_time": "17:00:00" },
{ "name": "MAIN BAZAR", "open_time": "21:30:00", "close_time": "00:05:00" }
]
}
Error Codes
All errors return a standard JSON structure with status code and human-readable message.
{
"status": "error",
"code": 401,
"message": "Invalid or inactive API Key"
}
| HTTP Code | Meaning | Solution |
|---|---|---|
401 | Missing or invalid API key | Check your api_key parameter |
403 | API key expired or IP not whitelisted | Renew your plan or add your IP |
429 | Daily request limit exceeded | Upgrade plan or wait until tomorrow |
Webhooks (Pro & Agency)
Get instant push notifications when new results are published. No polling needed — results are delivered to your server in real-time.
Setup
Contact admin via WhatsApp to configure your webhook URL. Your server will receive a POST request whenever a result is published.
Webhook Payload
{
"event": "result_update",
"market": "KALYAN",
"date": "2026-05-17",
"open": "238",
"close": "339",
"timestamp": 1747468800
}