Skip to main content
POST
/
api
/
classcentral
/
courses
/
search
/classcentral/courses/search
curl --request POST \
  --url https://api.anysite.io/api/classcentral/courses/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "query": "",
  "subject": "cs",
  "free": true,
  "certificate": true,
  "university": true,
  "career": true,
  "sort": "relevancy"
}
'
[
  {
    "id": "<string>",
    "name": "<string>",
    "url": "<string>",
    "@type": "ClasscentralCourseCard",
    "alias": "<string>",
    "course_format": "<string>",
    "provider": "<string>",
    "institution": "<string>",
    "subject": "<string>",
    "level": "<string>",
    "language": "<string>",
    "description": "<string>",
    "workload": "<string>",
    "has_certificate": true,
    "is_free": true,
    "is_university": true,
    "is_classroom": true,
    "rating": 123,
    "rating_count": 123,
    "image": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of courses to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
query
string
default:""

Free-text search over course titles

Examples:

"python"

"machine learning"

subject
string | null

Restrict to a subject slug (e.g. 'cs', 'data-science', 'python')

Example:

"cs"

level
enum<string> | null

Course difficulty level

Available options:
beginner,
intermediate,
advanced
language
enum<string> | null

Primary course language

Available options:
arabic,
basque,
bengali,
chinese,
english,
french,
german,
hebrew,
hindi,
indonesian,
italian,
japanese,
korean,
polish,
portuguese,
russian,
spanish,
tamil,
telugu,
thai,
turkish,
urdu,
vietnamese
duration
enum<string> | null

Total course length bucket

Available options:
under_30min,
30_to_60min,
1_to_2h,
2_to_5h,
5_to_10h,
over_10h
free
boolean | null

Only free courses

certificate
boolean | null

Only courses that offer a certificate

university
boolean | null

Only courses from universities

career
boolean | null

Only career certificate programs

sort
enum<string>
default:relevancy

Result ordering

Available options:
relevancy,
newest,
highest_rated,
lowest_rated

Response

Successful Response

id
string
required
name
string
required
url
string
required
@type
string
default:ClasscentralCourseCard
alias
string | null
course_format
string | null
provider
string | null
institution
string | null
subject
string | null
level
string | null
language
string | null
description
string | null
workload
string | null
has_certificate
boolean | null
is_free
boolean | null
is_university
boolean | null
is_classroom
boolean | null
rating
number | null
rating_count
integer | null
image
string | null