DP Boss API Documentation

Get instant access to live market results, full listings, and historical chart records.

API Status: Operational

Introduction

This API provides live market results, full comprehensive market listings, and deep historical monthly chart data. All data payloads are returned in lightning-fast, structured JSON format.

Authentication

All requests require authentication via an API Key. This should be passed directly inside your query parameters string on every request sequence.

Authentication Example
https://api.codehap.com/dp/?key=YOUR_API_KEY
Query Parameter Matrix
Parameter Required Description
key Yes Your uniquely assigned developer security API key.

Endpoint 1: Live Markets

GET
Description

Returns recently updated markets or markets scheduled to refresh or settle parameters within the next 15 minutes.

Endpoint
GET https://api.codehap.com/dp/?key=YOUR_API_KEY&type=live
Parameters
Parameter Required Description
key Yes API Key
type Yes Value parameter fixed exactly to live
Example Request
https://api.codehap.com/dp/?key=YOUR_API_KEY&type=live
Example JSON Response
{
  "success": true,
  "current_time": "2026-06-15 16:12:30",
  "count": 17,
  "data": [
    {
      "id": 32,
      "game_name": "PAREL DAY",
      "open_time": "14:00:00",
      "close_time": "16:00:00",
      "number_open": "257",
      "number_main": "4",
      "number_close": null,
      "updated_at": "2026-06-15 14:24:19",
      "status": "closed_recently"
    },
    {
      "id": 60,
      "game_name": "SUPER GOA DAY",
      "open_time": "14:15:00",
      "close_time": "16:15:00",
      "number_open": "225",
      "number_main": "9",
      "number_close": null,
      "updated_at": "2026-06-15 14:23:51",
      "status": "running"
    },
    {
      "id": 81,
      "game_name": "ROSE BAZAR DAY",
      "open_time": "14:30:00",
      "close_time": "17:45:00",
      "number_open": "178",
      "number_main": "6",
      "number_close": null,
      "updated_at": "2026-06-15 14:54:44",
      "status": "running"
    },
    {
      "id": 65,
      "game_name": "MEENA BAZAR DAY",
      "open_time": "14:30:00",
      "close_time": "16:30:00",
      "number_open": "340",
      "number_main": "7",
      "number_close": "124",
      "updated_at": "2026-06-15 16:10:02",
      "status": "completed"
    }
  ]
}

Endpoint 2: Markets List

GET
Description

Returns all available registered markets coupled along with today's complete operational output results data mapping properties.

Endpoint
GET https://api.codehap.com/dp/?key=YOUR_API_KEY&type=markets
Parameters
Parameter Required Description
key Yes API Key
type Yes Value parameter fixed exactly to markets
short No Define property data field target rules sorting assignment.
order No Explicit arrangement processing order direction format flag.
Sorting Options

Users can sort data layouts cleanly via direction keys:

order=asc
order=desc

Example URL usage context pattern:

https://api.codehap.com/dp/?key=YOUR_API_KEY&type=markets&order=desc
Available Sort Fields

You can execute explicit data sorting matching against any of these schema keys:

id
game_name
open_time
close_time

Example sort configurations implementation targeting properties:

https://api.codehap.com/dp/?key=YOUR_API_KEY&type=markets&short=game_name
Combined Complex Parameters Example
https://api.codehap.com/dp/?key=YOUR_API_KEY&type=markets&short=game_name&order=asc
Example JSON Response
{
  "success": true,
  "date": "2026-06-15",
  "count": 143,
  "data": [
    {
      "id": 123,
      "game_name": "NTR MORNING",
      "open_time": "09:10:00",
      "close_time": "10:10:00",
      "number_open": "660",
      "number_main": "20",
      "number_close": "118",
      "result_date": "2026-06-15"
    },
    {
      "id": 116,
      "game_name": "RATNA MORNING",
      "open_time": "09:35:00",
      "close_time": "10:30:00",
      "number_open": "479",
      "number_main": "08",
      "number_close": "134",
      "result_date": "2026-06-15"
    },
    {
      "id": 134,
      "game_name": "MANGAL MORNING",
      "open_time": "09:35:00",
      "close_time": "10:35:00",
      "number_open": "339",
      "number_main": "55",
      "number_close": "780",
      "result_date": "2026-06-15"
    },
    {
      "id": 72,
      "game_name": "SITA MORNING",
      "open_time": "09:45:00",
      "close_time": "10:45:00",
      "number_open": "588",
      "number_main": "17",
      "number_close": "269",
      "result_date": "2026-06-15"
    },
    {
      "id": 117,
      "game_name": "GEETA MORNING",
      "open_time": "10:00:00",
      "close_time": "11:00:00",
      "number_open": "149",
      "number_main": "48",
      "number_close": "369",
      "result_date": "2026-06-15"
    }
  ]
}

Endpoint 3: History / Monthly Chart

GET
Description

Exposes structured query operations mapping historic data results directly inside standard monthly structural timeline matrix blocks.

Endpoint
GET https://api.codehap.com/dp/?key=YOUR_API_KEY&type=history&id=2
Parameters
Parameter Required Description
key Yes API Key
type Yes Value parameter fixed exactly to history
id Yes The targeted unique numerical entity identifier for the market.
month No Explicit target window calendar month filter set exactly as: YYYY-MM
Current Month Query Context Example
https://api.codehap.com/dp/?key=YOUR_API_KEY&type=history&id=2
Specific Target Month Query Context Example
https://api.codehap.com/dp/?key=YOUR_API_KEY&type=history&id=2&month=2026-05
Example JSON Response
{
  "success": true,
  "market": {
    "id": 3,
    "game_name": "SRIDEVI",
    "open_time": "11:35:00",
    "close_time": "12:35:00"
  },
  "month": "2026-06",
  "records": 15,
  "history": [
    {
      "result_date": "2026-06-15",
      "number_open": "237",
      "number_main": "23",
      "number_close": "689"
    },
    {
      "result_date": "2026-06-14",
      "number_open": "239",
      "number_main": "42",
      "number_close": "679"
    },
    {
      "result_date": "2026-06-13",
      "number_open": "249",
      "number_main": "54",
      "number_close": "167"
    },
    {
      "result_date": "2026-06-12",
      "number_open": "158",
      "number_main": "45",
      "number_close": "159"
    },
    {
      "result_date": "2026-06-11",
      "number_open": "260",
      "number_main": "88",
      "number_close": "233"
    }
  ]
}

Error Handling Responses

Unsuccessful execution contexts will pass status code elements containing operational boolean error configurations alongside messaging explanations.

Invalid API Key Mapping Setup
{
  "status": false,
  "message": "Invalid API Key"
}
Missing Required Context Parameter
{
  "status": false,
  "message": "Required parameter missing"
}
Invalid Market Query ID Reference Matrix
{
  "status": false,
  "message": "Market not found"
}

Frequently Asked Questions

Standard developer access profiles allow queries mapping thresholds up to a processing operational limit of 10000 standard server initialization requests per minute.

All API response streams return serialized layout instances architecturalized exclusively inside standard UTF-8 application JSON profiles.

Need Enterprise Integration Support?

Get connected to infrastructure optimization networks if complex architectural configuration scaling deployment questions surface during integration cycles.

Contact Developer Support