List of courses that can be offered to a contact or purchased
Use the page[number] and page[size] query parameters to paginate results:
GET /v1/courses?page[number]=1&page[size]=10GET /v1/courses?page[number]=2&page[size]=25The response includes pagination links and meta data:
{
"links": {
"self": "https://api.kajabi.com/v1/courses?page[number]=2&page[size]=10",
"first": "https://api.kajabi.com/v1/courses?page[number]=1&page[size]=10",
"prev": "https://api.kajabi.com/v1/courses?page[number]=1&page[size]=10",
"next": "https://api.kajabi.com/v1/courses?page[number]=3&page[size]=10",
"last": "https://api.kajabi.com/v1/courses?page[number]=5&page[size]=10"
},
"meta": {
"total_pages": 5,
"total_count": 50,
"current_page": 2
}
}
Use the sort parameter to sort the results:
GET /v1/courses?sort=titleGET /v1/courses?sort=-titleResponse will include courses sorted by the specified field
{
"data": [
{
"id": "123",
"type": "courses",
"attributes": {
"title": "Advanced Marketing",
"description": "Master level marketing course",
"status": "active"
}
},
{
"id": "456",
"type": "courses",
"attributes": {
"title": "Marketing Basics",
"description": "Introduction to marketing",
"status": "active"
}
}
]
}
Use the fields parameter to request only specific attributes:
GET /v1/courses?fields[courses]=title,thumbnail_urlResponse will only include requested fields
{
"data": [{
"id": "123",
"type": "courses",
"attributes": {
"title": "Marketing Fundamentals",
"thumbnail_url": "https://example.com/thumbnail.jpg"
}
}]
}
Use the filter[site_id] parameter to get courses for a specific site:
GET /v1/courses?filter[site_id]=123Response will only include courses for that site
{
"data": [{
"id": "456",
"type": "courses",
"attributes": {
"title": "Marketing Fundamentals",
"description": "Introduction to marketing concepts",
"status": "active"
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
}
}
}]
}
Use the filter[title_cont] parameter to find courses where the title contains specific text:
GET /v1/courses?filter[title_cont]=marketingResponse will include courses with matching titles
{
"data": [{
"id": "456",
"type": "courses",
"attributes": {
"title": "Marketing Fundamentals",
"description": "Introduction to marketing concepts",
"status": "active"
}
}]
}
Use the filter[description_cont] parameter to find courses where the description contains specific text:
GET /v1/courses?filter[description_cont]=marketingResponse will include courses with matching descriptions
{
"data": [{
"id": "456",
"type": "courses",
"attributes": {
"title": "Marketing Fundamentals",
"description": "Introduction to marketing concepts and strategies",
"status": "active"
}
}]
}
You can combine pagination, sparse fields, filtering and sorting in a single request:
GET /v1/courses?page[number]=1&page[size]=10&filter[site_id]=123&sort=title&fields[courses]=title,thumbnail_urlResponse will include pagination, sorted filtered results with requested fields
{
"data": [{
"id": "456",
"type": "courses",
"attributes": {
"title": "Advanced Marketing",
"thumbnail_url": "https://example.com/thumbnail1.jpg"
}
},
{
"id": "789",
"type": "courses",
"attributes": {
"title": "Marketing Basics",
"thumbnail_url": "https://example.com/thumbnail2.jpg"
}
}],
"links": {
"self": "https://api.kajabi.com/v1/courses?page[number]=1&page[size]=10&filter[site_id]=123&sort=title&fields[courses]=title,thumbnail_url",
"first": "https://api.kajabi.com/v1/courses?page[number]=1&page[size]=10&filter[site_id]=123&sort=title&fields[courses]=title,thumbnail_url",
"next": "https://api.kajabi.com/v1/courses?page[number]=2&page[size]=10&filter[site_id]=123&sort=title&fields[courses]=title,thumbnail_url",
"last": "https://api.kajabi.com/v1/courses?page[number]=3&page[size]=10&filter[site_id]=123&sort=title&fields[courses]=title,thumbnail_url"
},
"meta": {
"total_pages": 3,
"total_count": 25,
"current_page": 1
}
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Sort order, use: title, for descending order use '-' e.g. &sort=-title
Number of documents
Partial attributes as specified, e.g. fields[courses]=title,thumbnail_url
Filter by site_id, for example ?filter[site_id]=111
Filter by title contains, for example ?filter[title_cont]=marketing
Filter by description contains, for example ?filter[description_cont]=marketing
Filter by publish status, for example ?filter[publish_status_eq]=published