Course Finder API: the guide for partners
What this is
The Course Finder API for partners. It is read only.
Your address
Every call goes to https://api-coursefinder.vidhyamarg.com/api/v1/...
Your keys
There are two kinds of key.
- A server key, which starts
cfs_, is for calls from your servers. Never put it in a web page or an app. Do not send anOriginheader with it: some HTTP clients and proxies add one, and a server key withOriginis refused. - A browser key, which starts
cfb_, is for calls from your web pages. It works only from the websites listed on it, anyone can read it from your page, and it has lower limits.
Send the key as Authorization: Bearer <key> on every request, never in the address.
A key that was ever put in an address, a log, a chat or a public page must be treated as leaked: ask us to revoke it and issue a new one.
What you can call
Five routes. The examples use invented values, and the answers are shortened.
The program list
/api/v1/programs, 20 programs a page, at most 50 pages. Its filters:
countrylevelareadisciplineuniversityintaketuition_currencytuition_mintuition_maxenglish_testenglish_scoreduration_minduration_maxmodesteminternshipscholarshipsortpageq
Example request:
GET /api/v1/programs?stem=true&page=2
Authorization: Bearer <key>
Answer:
{
"data": [
{
"public_id": "Ab12Cd34Ef56",
"name": "Example Program",
...
}
],
"meta": {
"page": 2,
"per_page": 20,
"total": 25,
"total_capped": false
}
}
A program
/api/v1/programs/<public_id>
Example request:
GET /api/v1/programs/Ab12Cd34Ef56
Authorization: Bearer <key>
Answer:
{
"data": {
"public_id": "Ab12Cd34Ef56",
"name": "Example Program",
...
}
}
A university
/api/v1/universities/<public_id>
Example request:
GET /api/v1/universities/Zy98Xw76Vu54
Authorization: Bearer <key>
Answer:
{
"data": {
"public_id": "Zy98Xw76Vu54",
"name": "Example University",
...
}
}
The lookups
/api/v1/lookups: the countries, study levels, study areas, disciplines and currencies the filters take.
Example request:
GET /api/v1/lookups
Authorization: Bearer <key>
Answer:
{
"data": {
"countries": [
{
"name": "Example Land",
"slug": "example-land"
}
],
...
}
}
The university picker
/api/v1/universities?q=, with the parameters q and country.
Example request:
GET /api/v1/universities?q=example
Authorization: Bearer <key>
Answer:
{
"data": [
{
"public_id": "Zy98Xw76Vu54",
"name": "Example University",
...
}
]
}
What your account includes
Your account may cover only some countries, study levels or universities, and may leave out some groups of fields: Fees, Scholarships, Entry requirements, Rankings, Intakes.
- A record outside your account answers as if it did not exist.
- A filter for a field group you do not have answers as an unknown parameter.
Limits
- Your limits are per minute and per day, set for your account.
- A 429 answer carries
Retry-After, in seconds. - For browser keys, each visitor also has their own limits.
- If you need more, ask us.
Answers
- 200: the answer.
- 401
invalid_key: the key is not valid. - 403
server_key_in_browser: a server key was sent with anOriginheader. - 403
origin_not_allowed: the website is not listed on the browser key. - 404
not_found: there is no such record or address. - 410
not_listed: the record is no longer listed. - 422
validation_failed: the request is not valid;detailssays why. - 429
rate_limited: a limit is used up; wait the seconds inRetry-After. - 500
server_error: something went wrong on our side. - 503
busy: too many requests at once; wait the seconds inRetry-After. - 503
timeout, withoutRetry-After: try again shortly.
An error answer's body has this shape, details only when there are any:
{
"error": {
"code": "validation_failed",
"message": "...",
"details": { ... }
}
}
A 413, or another answer that is not this JSON, comes from the front door: send a smaller request, or wait a minute.
Calling from a browser
- Your page's address must be exactly one of the websites on the key: scheme, host and port, and https only.
- Browsers send a preflight first; it is answered for you.
- Read
Retry-Afterfrom 429 answers.
Changes
/api/v1 only gains things. A breaking change would come as /api/v2, with notice.