CodeLesson logo

CodeLesson API Documentation version 1

You can use the CodeLesson API to retrieve information about CodeLesson. CodeLesson API calls return information in JSON format which can be consumed from any programming language.

At the moment, all CodeLesson API calls are read-only and do not require authentication or an API key.

The base URL for all API calls is http://api.codelesson.com. So to retrieve the list of CodeLesson courses, retrieve http://api.codelesson.com/v1/courses/list.json.

Parameters are passed in the form of query string values following the document name; for example, to retrieve a list of certifications for a student with an email address of learner@example.com, retrieve http://api.codelesson.com/v1/certifications/user.json?email=learner@example.com

This API is updated from time to time. You can view the update history.

/v1/certifications/list.json

Retrieves the complete list of all certifications (also known as "achievements" or "badges") that students can earn on CodeLesson. (The badge is just one part of a certification, represented by the image value returned by this call.)

Parameters: none

Returns: id, name, description, image, created, modified

Get Data

/v1/certifications/user.json

Retrieves the certifications that have been earned by a single student. This call will only return data if the user has set their CodeLesson profile to be public; if the user's profile is not public, no data is returned and no error message is provided.

Parameters: email (the email address of the user)

Returns: id, name, description, image, type, email, created, modified. The type value can be one of Normal, Distinction, or Instructor.

Get Data

/v1/courses/list.json

Retrieves the list of all courses offered on CodeLesson.

Parameters: none

Returns: id, name, slug, description, long_description, icon_image_url, start_date, duration, short_url

Get Data Download Code Example (Python)