> For the complete documentation index, see [llms.txt](https://syticks.gitbook.io/merpi-by-syticks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://syticks.gitbook.io/merpi-by-syticks/api-reference/bus-ticketing-routes-terminals-schedules-buses-purchase-etc/get-single-bus-endpoint.md).

# Get Single Bus Endpoint

## Get a Single Bus

> This endpoint allows users to fetch the details of a bus using the bus\_id and returns details like name, ID, and the seating arrangement of the bus.

```json
{"openapi":"3.0.3","info":{"title":"Syticks API","version":"1.0.0"},"paths":{"/api/v1/merpi/transport/buses/{bus_id}":{"get":{"summary":"Get a Single Bus","description":"This endpoint allows users to fetch the details of a bus using the bus_id and returns details like name, ID, and the seating arrangement of the bus.","operationId":"getSingleBus","parameters":[{"name":"bus_id","in":"path","required":true,"schema":{"type":"integer"},"description":"The ID of the bus."}],"responses":{"200":{"description":"Bus details retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"status":{"type":"integer","description":"HTTP status code representing the response status."},"message":{"type":"string","description":"Human-readable description of the response."},"data":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier for the bus."},"name":{"type":"string","description":"Name of the bus."},"image":{"type":"string","description":"URL of the bus image."},"seats":{"type":"integer","description":"Total number of seats available on the bus."},"price":{"type":"string","description":"Price of the bus ticket (might be a string due to currency formatting)."},"rows":{"type":"integer","description":"Number of rows of seats."},"columns":{"type":"integer","description":"Number of columns of seats."},"seat_grid":{"type":"array","description":"A 2D array representing the seat layout of the bus.","items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier for the seat."},"seat":{"type":"boolean","description":"Indicates whether it’s a seat or an aisle."},"row":{"type":"integer","description":"Row number of the seat."},"column":{"type":"integer","description":"Column number of the seat."}}}}}}}}}}}},"400":{"description":"Bad request due to invalid input."},"404":{"description":"Bus not found."},"500":{"description":"Server error."}}}}}}
```
