Skip to main content

I am working with the Docebo API and need to filter courses and sessions based on custom fields (additional fields). However, I am unable to filter courses using these fields in /learn/v1/courses. Could you please provide guidance on the following:

  1. How can I retrieve and filter courses based on custom fields (additional fields) through the Docebo API?
  2. Are there any specific endpoints or methods for querying custom fields associated with courses?
  3. If custom fields are not directly accessible via the course API, is there an alternative solution?
  4. Any API to filter sessions basis of additional fields?

Thank you for your assistance!

We’re looking to do the same thing. ​@Anmol - were you able to get any help with this?


I have brought up similar issues with Docebo, and there currently isn’t a great way to do what you need. 

I have found the only way to do this is by getting all courses through batch get all courses available on the platform:
 

/course/v1/courses

There are some filtering options here, but not for additional fields. However, if there are other paramters you need to satisfy, such as the type if you are looking for courses with ILT sessions. Since it’s paginated. You will have to iterate through every page (most page sizes defualt at 100, so thats 1 API call per 100 courses), then iterating though each course and pulling a “View Course’s Info”

/course/v1/courses/{id}

which is another call per course. 

For sessions, it’s a similar game:
/course/v1/sessions/{session_id}

 

Once you have that, you can set up a condition based on the additional fields and put the needed courses wherever you need them. If you have Connect, I recommend you use it, because it can very easily lead to a lot of calls very fast. If you can’t use Connect, I have set up a counter for the API calls that puts the program on a sleep for an hour to make sure I don’t hit the API call limit (with a buffer).


Reply