Skip to main content
POST
/
api
/
classcentral
/
subjects
/classcentral/subjects
curl --request POST \
  --url https://api.anysite.io/api/classcentral/subjects \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "subject": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "alias": "<string>",
    "name": "<string>",
    "url": "<string>",
    "@type": "ClasscentralSubject",
    "description": "<string>",
    "image": "<string>",
    "follower_count": 123,
    "course_count": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
subject
string
required

Class Central subject slug ('cs', 'data-science') or subject URL.

Minimum string length: 1
Pattern: ^(?:https?://[^\s]+|//[^\s]+|(?:www\.|classcentral\.com)[^\s]*|/?[A-Za-z0-9][A-Za-z0-9._/-]*)$
Examples:

"cs"

"https://www.classcentral.com/subject/data-science"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
alias
string
required
name
string
required
url
string
required
@type
string
default:ClasscentralSubject
description
string | null
image
string | null
follower_count
integer | null
course_count
integer | null