Skip to main content

Using /categories Endpoint

In this tutorial, we will be using the /categories endpoint to get the available primary categories
The /categories endpoint returns a list containing the names of the primary categories, which can then be passed in as category names while using the other endpoints.

Example Requests

Here is an example request using Python's requests library:

import requests

url = "https://bpsapi.rajtech.me/categories"

request = requests.get(url)
print(request.text)

Example Response

{
"status": "success",
"http_status": 200,
"data": [
"general",
"exam"
]
}

Thanks for reading!