BusSearch

Post   https://travel.bospay.co.in/api/V1/Bus/Travel/BusSearch


The BusSearch API provides detailed information about available bus services between two cities on a specified date. It returns data such as bus types, timings, available seats, boarding/dropping points, fare breakdowns, and booking eligibility. This is used to show bus options in travel booking systems.

Body Parameters
{
    "from_City": "3",
    "to_City": "102",
    "travelDate": "09/12/2025",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "AOP-554"
}
Request Parameters
Name Type Description
from_City String This requires the 'From_City' value of the selected city.
to_City String This requires the 'To_City' value of the selected city.
travelDate String This requires the Date of Journey, which should be in the (MM/DD/YYYY) format.
Responses

200

200

Response

200

RESPONSE BODY

Json

401

401

Response

401

RESPONSE BODY

Object

responsecode integer

status boolean

message string


Did this page help you?     Yes    No

Language
shell Shell
python Python
node Node
c# C#
php PHP

cURL

curl --location --request POST 'https://travel.bospay.co.in/api/V1/Bus/Travel/BusSearch' \
--header 'Content-Type: application/json' \
--data  '{
  "from_City": "3",
  "to_City": "102",
  "travelDate": "09/12/2025",
  "iP_Address": "27.XXX.XX.76",
  "request_Id": "REQ123456",
  "imeI_Number": "353535353535353",
  "registrationID": "AOP-554"
}'
                                
impo   rt requests
import json

url = 'https://travel.bospay.co.in/api/V1/Bus/Travel/BusSearch'
payload = "{
    "from_City": "3",
    "to_City": "102",
    "travelDate": "09/12/2025",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "AOP-554"
}" 

headers = {
  "Content-type" : "application/json"
}

response = requests.request("POST", url, headers=headers, data=payload)

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "POST",
  "url" : 'https://travel.bospay.co.in/api/V1/Bus/Travel/BusSearch',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
    "from_City": "3",
    "to_City": "102",
    "travelDate": "09/12/2025",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "AOP-554"
  }' 
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,'https://travel.bospay.co.in/api/V1/Bus/Travel/BusSearch')
var content = new StringContent(
  "{
    "from_City": "3",
    "to_City": "102",
    "travelDate": "09/12/2025",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
"registrationID": "AOP-554"
  }",
  null,"application/json"
); 

request.Content = content;
var response =  await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
                                
<?php
$curl =  curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL =>  'https://travel.bospay.co.in/api/V1/Bus/Travel/BusSearch',
  CURLOPT_RETURNTRANSFER =>  true,
  CURLOPT_ENCODING =>  '',
  CURLOPT_MAXREDIRS =>  10,
  CURLOPT_TIMEOUT =>  0,
  CURLOPT_FOLLOWLOCATION =>  true,
  CURLOPT_HTTP_VERSION =>  CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST =>  'POST',
  CURLOPT_POSTFIELDS =>  '{
    "from_City": "3",
    "to_City": "102",
    "travelDate": "09/12/2025",
    "iP_Address": "27.XXX.XX.76",
    "request_Id": "REQ123456",
    "imeI_Number": "353535353535353",
    "registrationID": "AOP-554"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
"buses": [
    { 
        "ac": true,
        "arrival_Time": "5:00 AM",
        "available_Seats": 10,
        "boardingDetails": [
            { 
                "boarding_Address": "test",
                "boarding_Contact": "1234567890",
                "boarding_Id": "24514",
                "boarding_Landmark": "test12",
                "boarding_Name": "Adyar",
                "boarding_Time": "10:27 PM"
      } 
   ], 
   "bookable": true,
   "bus_Key"": "VKPfEuH0uNZ6GiZV4xbdFR7RZ6wXwo6BiXL6wdlfRA0AcpG7ExPxE3E/RecVewkhbZMIn8/uwU+TuFqHL2G8Th2hhtB1LCN/SrfTDyM0hnQFS/PgxQUQf9wDvl0953KDZyeOk2mxkiDLTODKhuRoUg4xgFFAu0TZWJ9pIAJ1dm5oONEE9vs533BOdta0ElzUBAIG1pIbvSCiTznU+eSqLqr5RXFJ9bXXuGi7d904S8wuChBCUoemAX+6U4h0h6ngokX2RbhW02jcm2KZHDj5vTOyY6PnsV2vgNeDFVy02SQAZiSAnuI1+W7sGKu5LKhSD3BPD/oiIrjNBqQBCsFopNRYmwUi6xfQU0h8OviPhVaSBI+tiA7bUrDNKhdxlU4FzZ5zTXzGmnrHwneYo6LYhEl2/EJTGz6YuLCmB9E1vdPI1lwYkcvG3FMf32dmGA2+qFyCWYsuhV5fk64TeBAbieoJUXZLHxLwDEJONgmzfNyojklfxuvPe9/QFAEZbigxpaB0+V7/dpXB75hQu9llqdfOAjc8IQvkq1v2/N1kuJlpVRi898lN3soWvo7NUr5nt6DVnpbdSxDnUD/VqSK47TtKq2VxskE/Ks3ja4pX+/KjRlxNI47wOIy/fTrWiPRd74+cuNj3kfEULnK2CwfZppzvD6WuzsAuGtcu2wc9ZgvwW7/vinHffX40DWPFY6xTwL3Q4ndoxXwK0779/tnbZZKFH6H/EPlEB+kz20jU8VmqVKBD/1LUGdxzitfZrhW2iCHt3skYqn88G8J7IN/Z/KeQ5u2TFqovEuIFXnL9HTgzPCO17cFKhhSRsvm/sDJT7JpthuDoAzHosv70DrLTcg==",
   "bus_Type": "Espano Divo A/C Seater Air Suspension (2+1)",
   "departure_Time": "10:27 PM",
   "dropPoint_Mandatory": false,
   "droppingDetails": [
       { 
            "dropping_Address": "Nandi hills, Nandi hills,",
            "dropping_Contact": "23456789",
            "dropping_Id": "156524",
            "dropping_Landmark": "test",
            "dropping_Name": "BABUSABPALYA (Pickup Bus)",
            "dropping_Time": "5:00 AM"
      } 
    ], 
    "fareMasters": [
        { 
            "basic_Amount": 10,
            "cancellation_Charges": 0,
            "fareDetails": [
                { 
                       "amount": 0,
                       "fare_Desc": "OperatorServiceCharge",
                       "refundable": true
                }, 
                { 
                       "amount": 0.5,
                       "fare_Desc": "GST",
                       "refundable": true
                }, 
                { 
                       "amount": 0,
                       "fare_Desc": "TollFee",
                       "refundable": true
               }, 
               { 
                       "amount": 0,
                       "fare_Desc": "levyFare",
                       "refundable": true
                }, 
                { 
                      "amount": 0,
                      "fare_Desc": "BookingFee",
                      "refundable": true
               }, 
               { 
                      "amount": 0,
                      "fare_Desc": "Others",
                      "refundable": true
               }   
       ], 
       "gst": 0,
       "gross_Commission": 0,
       "net_Commission": 0,
       "other_Amount": 0.5,
       "service_Fee_Amount": 0,
       "total_Amount": 10.5,
       "trade_Markup_Amount": 0
     } 
  ], 
  "from_City": "3",
  "getFareMandatory": false,
  "operator_Name": "TESTING ACCOUN",
  "partial_Cancellation_Allowed": true,
  "seat_Layout": false,
  "seat_Type": 0,
  "to_City": "102",
  "travelDate": "12/9/2025",
  "vehicle_Type": "BUS",
  "mTicket": true
} 
], 
"response_Header": {
    "error_Code": "0000",
    "error_Desc": "SUCCESS",
    "error_InnerException": "",
    "request_Id": "REQ123456",
    "status_Id": "11"
}, 
"search_Key": "MPWCxTAk3ODCZqhbeC037xXXG86MnHCWW4Q0GFKe8IagIcjf3FUc7/7Evgfn9moU//l8TH8ZFDMl2+p4Gc12iN1J99RzTSF/SGTCaonmJh5Q7j/cBkgV9+uhBpB5vwg6+WoO45nmuAYcR5g/WYhefplIpdCv0Olh+xs8DxH6qPWpk7175xzZvnMpgxy4NLPFrnMeQ9S/45m0WK4SJPtBKpxtR3E5sVRwtXJAmzYsX7KV9okICZAHAWBXkrm0BBsNCLFTagnnDLsp5Wcgn86sdHr27RTP/jZ6V5emvwrtckCoERHnryOlAWbmPaD+3JzRW6ICWQ+W2o8I0ot45Wp0PG6JsJc0YdY6fjubCmUV8jPKT4zqOKi8iPyYtAYYWYihdxO2DHq9FPwL5UAKH6G4fA==",
"statuss": "FALSE",
"message": "",
"value": ""
}
                                
{
    "code": "207",
    "description": "Amount is Requaired",
    "merchantTrxnRefId": null,
    "token": null,
    "status": "False"
}