API documentation
Base address: https://api.matkasoftware.com/v1. Every response is JSON. Times are Indian Standard Time (IST).
Quick start
- Create a free account. Your API key is shown once, right after sign-up. Copy it somewhere safe.
- Send it in the
X-API-Keyheader with any request:
curl -H "X-API-Key: YOUR_KEY" https://api.matkasoftware.com/v1/results/sridevi
<?php
$ch = curl_init('https://api.matkasoftware.com/v1/results/sridevi');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_KEY'],
CURLOPT_TIMEOUT => 10,
]);
$res = json_decode(curl_exec($ch), true);
if ($res['ok']) {
echo $res['data']['market'] . ': ' . $res['data']['result'];
}const res = await fetch('https://api.matkasoftware.com/v1/results/sridevi', {
headers: { 'X-API-Key': process.env.MATKA_API_KEY },
});
const { ok, data, error } = await res.json();
if (ok) console.log(`${data.market}: ${data.result}`);
else console.error(error.message);import requests
r = requests.get(
'https://api.matkasoftware.com/v1/results/sridevi',
headers={'X-API-Key': 'YOUR_KEY'},
timeout=10,
)
res = r.json()
if res['ok']:
print(res['data']['market'], res['data']['result'])Every response has ok (true or false). When ok is true the answer is in data; when false, error.code and error.message say what went wrong.
Authentication
Send your key in one of these ways (the header is best):
| How | Example |
|---|---|
| Header | X-API-Key: mk_live_… |
| Bearer token | Authorization: Bearer mk_live_… |
| Query string | ?api_key=mk_live_… (avoid: addresses end up in logs) |
Keep your key on your server. If it leaks, make a new key in your dashboard and revoke the old one. You can also lock a key to your server's IP address in the dashboard.
Limits
Each plan has a number of requests per day and per minute. The day resets at midnight IST. /v1/me is free and never counts. Every counted response has these headers:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed today |
X-RateLimit-Remaining | Requests left today |
X-RateLimit-Reset | When the count resets (Unix time) |
Retry-After | Seconds to wait, after a per-minute limit |
The free plan allows 50 requests a day and 5 a minute, with today's results only. The free allowance is per IP address too: several free accounts used from one server share it. See pricing for more.
Errors
{
"ok": false,
"error": { "code": "daily_limit", "message": "You have used all 50 requests for today…" }
}
| HTTP | code | When |
|---|---|---|
| 400 | bad_date, bad_range, market_required | A parameter is wrong |
| 401 | missing_key, invalid_key | No key, or the key is wrong or revoked |
| 403 | plan_feature, history_limit, ip_not_allowed, account_blocked | Your plan or settings do not allow it |
| 404 | unknown_market, not_found | No such market or endpoint |
| 429 | daily_limit, minute_limit, too_many_requests, too_many_bad_keys | Too many requests (for your plan, from your IP address, or with wrong keys) |
| 503 | maintenance | Short maintenance; try again soon |
Markets
All markets with their open and close times (24-hour IST) and the days they run. Use the slug in other endpoints.
{ "ok": true, "data": [
{ "market": "Kalyan", "slug": "kalyan", "open_time": "15:45", "close_time": "17:45",
"closes_next_day": false, "open_days": ["Mon","Tue","Wed","Thu","Fri","Sat"],
"holidays": [ { "from": "2026-11-08", "to": "2026-11-09", "note": "Diwali" } ] }
] }
holidays lists the market's announced holidays in the next 60 days. On a holiday the market's status is holiday.
Results for a day
Every market's result for that date. Without date you get today's board (same as /v1/live). Dates older than your plan's history give history_limit.
One market
One market. Without date you get the market's current day. Night markets that close after midnight (like Main Bazar) stay on the previous date until they close.
{ "ok": true, "data": {
"market": "Kalyan", "slug": "kalyan", "date": "2026-12-03",
"open_time": "15:45", "close_time": "17:45", "status": "declared",
"open_patti": "128", "open_ank": 1, "close_ank": 9, "close_patti": "450",
"jodi": "19", "result": "128-19-450",
"open_declared_at": "2026-12-03T15:47:10+05:30", "close_declared_at": "2026-12-03T17:48:02+05:30"
} }
Live board
Today's board for every market, with waiting_for set to "open" or "close" when a market's time has passed and its result has not come yet. Add since to get only markets that changed after that moment: use the meta.next_since value from your previous call. This is the cheapest way to poll.
{ "ok": true, "data": [ … ], "meta": { "server_time": 1796311204, "next_since": 1796311204 } }
Charts
Day-by-day history for jodi and panel charts, oldest first. Defaults to the last 90 days; up to 10 years per request. Holidays are left out. Needs a plan with charts.
{ "ok": true, "data": [
{ "date": "2024-01-02", "day": "Tue", "open_patti": "337", "open_ank": 3, "close_ank": 8, "close_patti": "189", "jodi": "38" }
], "meta": { "market": "Kalyan", "slug": "kalyan", "from": "2024-01-01", "to": "2024-03-31", "count": 78 } }
Kalyan Jackpot
A card every 5 minutes from 9:00 AM to 1:00 AM: a number card with its suit, or a JOKER. You get the day's draws, oldest first, and the latest one in meta.latest. The game day runs past midnight, so a draw at 12:30 AM belongs to the day before; without date you get the current game day. Past days follow your plan's history window.
{ "ok": true, "data": [
{ "no": 1, "time": "09:05", "card": "7", "suit": "diamonds", "symbol": "♦", "joker": false, "label": "7 ♦" },
{ "no": 2, "time": "09:10", "card": "JOKER", "suit": null, "symbol": null, "joker": true, "label": "JOKER" }
], "meta": { "game": "Kalyan Jackpot", "date": "2026-12-03", "start": "09:00", "end": "01:00", "every_minutes": 5, "count": 2,
"latest": { "no": 2, "time": "09:10", … }, "next_draw": "09:15", "server_time": 1796311204 } }
Kolkata FF
The day's Kolkata FF (Kolkata Fatafat) board: 8 bazis Monday to Saturday, 4 on Sunday. Each bazi gives a patti and its single (the last digit of the patti's digit sum). status is upcoming, waiting (time passed, result not in yet), declared or holiday.
{ "ok": true, "data": [
{ "bazi": 1, "time": "10:30", "status": "declared", "patti": "128", "single": 1, "declared_at": "2026-12-03T10:41:12+05:30" },
{ "bazi": 2, "time": "12:00", "status": "upcoming", "patti": null, "single": null, "declared_at": null }
], "meta": { "game": "Kolkata FF", "date": "2026-12-03", "holiday": null, "server_time": 1796311204 } }
One row a day with every bazi's result (null for a bazi without one), oldest first. Defaults to the last 30 days; up to 10 years per request. Needs a plan with charts.
{ "ok": true, "data": [
{ "date": "2024-01-02", "day": "Tue", "results": [ { "patti": "128", "single": 1 }, { "patti": "390", "single": 2 }, null, … ] }
], "meta": { "game": "Kolkata FF", "from": "2024-01-01", "to": "2024-01-31", "count": 26 } }
Your account
Your plan, its limits and how many requests you have used today. Not counted in the daily limit (it does count in the per-minute limit).
Result fields
| Field | Meaning |
|---|---|
status | pending (nothing yet), open_declared, declared (open and close), holiday |
open_patti, close_patti | Three-digit panna as a string ("128", "550"); null until declared |
open_ank, close_ank | Last digit of the patti's digit sum |
jodi | Open ank followed by close ank, as a string ("19", "05") |
result | Ready to show: 128-19-450, 128-1*-*** or ***-**-*** |
*_declared_at | When the API received that half (ISO 8601, IST) |
Webhooks
On plans with webhooks, set a URL in your dashboard. Each time a result is published, corrected or removed we send a POST with a JSON body:
{ "event": "result.open", "sent_at": "2026-12-03T20:50:04+05:30", "data": { …same as /v1/results/{market}… } }
Events: result.open, result.close, result.corrected, result.removed, market.holiday. Answer with any 2xx code within 6 seconds. If you do not, we retry after 1, 5 and 30 minutes.
Every webhook has a X-MK-Signature: sha256=… header: an HMAC-SHA256 of the raw body with your webhook secret (in your dashboard). Check it before trusting the data:
// PHP
$body = file_get_contents('php://input');
$sig = 'sha256=' . hash_hmac('sha256', $body, 'YOUR_WEBHOOK_SECRET');
if (!hash_equals($sig, $_SERVER['HTTP_X_MK_SIGNATURE'] ?? '')) { http_response_code(401); exit; }
$event = json_decode($body, true);
// Node.js (Express, with express.raw({ type: 'application/json' }))
const sig = 'sha256=' + crypto.createHmac('sha256', SECRET).update(req.body).digest('hex');
if (!crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(req.get('X-MK-Signature') || ''))) return res.sendStatus(401);
Good practice
- Poll
/v1/live?since=…once a minute around result times instead of calling every market separately. Better still, use webhooks. - Cache chart history on your side; it does not change once a day is complete.
- Show
resultas it is for the board, and use the separate fields for charts and statistics. - Results can very rarely be corrected. Listen for
result.correctedor compare with/v1/resultslater in the day.