# /ugcbd/universities

`POST /api/ugcbd/universities`

Price: 10 credits

Get one university from the University Grants Commission of Bangladesh register: category, year of establishment, campuses, vice-chancellor, pro-vice-chancellor, treasurer and registrar, contacts, websites, UGC notes and the faculties with UGC-approved programmes

## How to use it

Pass a university's alias to ugcbd/programmes/search for its approved programmes; only private universities list faculties.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `university` (string, required) — UGC Bangladesh university alias, numeric id or page URL (examples: "north-south-university", "https://www.ugc.gov.bd/university/north-south-university")

## Response

### 200 — Successful Response

- `@type` (string) (default: "UgcbdUniversity")
- `id` (string, required) — University id (examples: "239")
- `alias` (string, nullable) — University alias (examples: "north-south-university")
- `url` (string, nullable) — University page on the UGC website
- `name` (string, nullable) — University name (examples: "North South University")
- `name_bengali` (string, nullable) — University name in Bengali
- `category_name` (string, nullable) — UGC category (examples: "Private Universities")
- `category_alias` (string, nullable) — UGC category alias (examples: "private-universities")
- `category_name_bengali` (string, nullable) — UGC category in Bengali
- `marker` (string, nullable) — Footnote mark UGC prints beside the university name (examples: "*", "**", "(1)")
- `established_year` (integer, nullable) — Year of establishment (examples: 1992)
- `present_campus` (string, nullable) — Address of the present campus
- `permanent_campus` (string, nullable) — Address of the permanent campus
- `address` (string, nullable) — Postal address
- `district` (string, nullable) — District
- `division` (string, nullable) — Division
- `vice_chancellor` (string, nullable) — Vice-chancellor
- `pro_vice_chancellor` (string, nullable) — Pro-vice-chancellor
- `treasurer` (string, nullable) — Treasurer
- `registrar` (string, nullable) — Registrar
- `contact_person` (string, nullable) — Contact person as published
- `emails` (array) — Contact email addresses (default: [])
- `phone` (string, nullable) — Telephone and mobile numbers as published (examples: "880255668200")
- `fax` (string, nullable) — Fax numbers as published (examples: "880255668202")
- `website_urls` (array) — University websites (default: [])
- `description` (string, nullable) — Short description of the university
- `special_note` (string, nullable) — Special note from UGC
- `notes` (array) — UGC notes on the university (default: [])
  - `@type` (string) (default: "UgcbdNote")
  - `id` (string, nullable) — Note id (examples: "23")
  - `title` (string, nullable) — Note heading (examples: "Department of Business Administration")
  - `text` (string, nullable) — Note text, mostly in Bengali
  - `kind` (string, nullable) — Note kind (examples: "warning", "information", "approval")
- `faculties` (array) — Faculties with UGC-approved programmes, each with its page (default: [])
  - `@type` (string) (default: "UgcbdFaculty")
  - `id` (string, nullable) — Faculty id (examples: "501")
  - `alias` (string, nullable) — Faculty alias (examples: "school-of-business")
  - `name` (string, nullable) — Faculty name (examples: "School of Business")
  - `name_bengali` (string, nullable) — Faculty name in Bengali
  - `description` (string, nullable) — Faculty description
  - `approval_date` (integer, nullable) — UGC approval date, unix seconds
  - `url` (string, nullable) — Faculty page listing its departments and programmes
- `course_groups` (array) — Course groups UGC lists (default: [])
  - `@type` (string) (default: "UgcbdCourseGroup")
  - `id` (string, nullable) — Course group id (examples: "1")
  - `title` (string, nullable) — Course group title (examples: "General Education Courses")
  - `title_bengali` (string, nullable) — Course group title in Bengali

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

No university is registered under this alias

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

