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

MethodEndpointDescription
GET/get_today.phpToday's live results with market status
GET/get_results.phpToday + Yesterday results
GET/get_history.phpHistorical results with date filtering
GET/get_markets.phpList all active markets

Authentication

Every request must include your api_key as a query parameter. You'll receive your key after purchasing a plan.

REQUIRED ?api_key=your_secret_key_here
Security Notice: Never expose your API key in client-side JavaScript. Always make API calls from your server backend.

Rate Limits

Each plan has a daily request limit. The remaining quota is returned in every response.

PlanDaily LimitMarketsWebhooks
Starter1,000 requests/dayAll Markets
Professional5,000 requests/dayAll Markets
AgencyUnlimitedAll Markets + Priority

Get Today's Results

Fetch live results for all markets for today. Returns market status (waiting, open, closed) and calculated jodi.

GET /api/get_today.php

Parameters

ParameterTypeDescription
api_keystringrequiredYour API access key
marketstringoptionalFilter 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

✅ 200 OK
{
  "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.

GET /api/get_results.php
ParameterTypeDescription
api_keystringrequiredYour API key
marketstringoptionalFilter by market name

Get History

Query historical results by specific date or date range. Perfect for building chart panels and analytics.

GET /api/get_history.php
ParameterTypeDescription
api_keystringrequiredYour API key
datestringoptionalSpecific date (YYYY-MM-DD)
fromstringoptionalRange start (YYYY-MM-DD)
tostringoptionalRange end (YYYY-MM-DD)
marketstringoptionalFilter 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.

GET /api/get_markets.php

Response

✅ 200 OK
{
  "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.

❌ Error Response Format
{
  "status": "error",
  "code": 401,
  "message": "Invalid or inactive API Key"
}
HTTP CodeMeaningSolution
401Missing or invalid API keyCheck your api_key parameter
403API key expired or IP not whitelistedRenew your plan or add your IP
429Daily request limit exceededUpgrade 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

📨 POST to your webhook URL
{
  "event": "result_update",
  "market": "KALYAN",
  "date": "2026-05-17",
  "open": "238",
  "close": "339",
  "timestamp": 1747468800
}