API endpoints
We have the following types of data available for each published lesson:
This endpoint returns the video transcript and video captions file for a given lesson.
Name | Type | Description | Example |
|---|---|---|---|
lesson | string | The slug of the lesson | checking-understanding-of-basic-transformations |
Name | Type | Description |
|---|---|---|
transcript | string | The transcript for the lesson video |
vtt | string | The contents of the .vtt file for the lesson video, which maps captions to video timestamps. |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
{
"transcript": "Hello, I'm Mrs. Lashley. I'm looking forward to guiding you through your learning today...",
"vtt": "WEBVTT\n\n1\n00:00:06.300 --> 00:00:08.070\n<v ->Hello, I'm Mrs. Lashley.</v>\n\n2\n00:00:08.070 --> 00:00:09.240\nI'm looking forward to guiding you\n\n3\n00:00:09.240 --> 00:00:10.980\nthrough your learning today..."
}This endpoint returns the types of available assets for a given lesson, and the download endpoints for each. This endpoint contains licence information for any third-party content contained in the lesson’s downloadable resources. Third-party content is exempt from the open-government license, and users will need to consider whether their use is covered by the stated licence, or if they need to procure their own agreement.
Name | Type | Description | Example |
|---|---|---|---|
lesson | string | The lesson slug identifier | child-workers-in-the-victorian-era |
type [optional] | string | Use the this type and the lesson slug in conjunction to get a signed download URL to the asset type from the /api/lessons/{slug}/asset/{type} endpoint | slideDeck |
Name | Type | Description |
|---|---|---|
oakUrl | string | The Oak National URL for the lesson |
attribution | array[string] | Licence information for any third-party content contained in the lessons' downloadable resources |
assets | array[object] | List of assets |
type | string | Use the this type and the lesson slug in conjunction to get a signed download URL to the asset type from the /api/lessons/{slug}/asset/{type} endpoint |
label | string | The label for the asset |
url | string | The download endpoint for the asset. |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
{
"oakUrl": "https://www.thenational.academy/teachers/lessons/using-numerals",
"attribution": [
"Copyright XYZ Authors",
"Creative Commons Attribution Example 4.0"
],
"assets": [
{
"label": "Worksheet",
"type": "worksheet",
"url": "https://open-api.thenational.academy/api/v0/lessons/using-numerals/assets/worksheet"
},
{
"label": "Worksheet Answers",
"type": "worksheetAnswers",
"url": "https://open-api.thenational.academy/api/v0/lessons/using-numerals/assets/worksheetAnswers"
},
{
"label": "Video",
"type": "video",
"url": "https://open-api.thenational.academy/api/v0/lessons/using-numerals/assets/video"
}
]
}This endpoint will stream the downloadable asset for the given lesson and type. There is no response returned for this endpoint as it returns a content attachment.
Name | Type | Description | Example |
|---|---|---|---|
lesson | string | The lesson slug | child-workers-in-the-victorian-era |
type | string | Use the this type and the lesson slug in conjunction to get a signed download URL to the asset type from the /api/lessons/{slug}/asset/{type} endpoint | slideDeck |
Name | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
{}This endpoint returns a summary for a given lesson
Name | Type | Description | Example |
|---|---|---|---|
lesson | string | The slug of the lesson | joining-using-and |
Name | Type | Description |
|---|---|---|
lessonTitle | string | The lesson title |
canonicalUrl | string | The canonical Oak National URL for the lesson |
oakUrl | string | The Oak National URL for the lesson |
unitSlug | string | The unit slug identifier |
unitTitle | string | The unit title |
subjectSlug | string | The subject slug identifier |
subjectTitle | string | The subject slug identifier |
keyStageSlug | string | The key stage slug identifier |
keyStageTitle | string | The key stage title |
lessonKeywords | array[object] | The lesson's keywords and their descriptions |
properties | [object Object] | |
keyword | string | The keyword |
description | string | A definition of the keyword |
keyLearningPoints | array[object] | The lesson's key learning points |
keyLearningPoint | string | A key learning point |
misconceptionsAndCommonMistakes | array[object] | The lesson’s anticipated common misconceptions and suggested teacher responses |
misconception | string | A common misconception |
response | string | Suggested teacher response to a common misconception |
pupilLessonOutcome | string | Suggested teacher response to a common misconception |
teacherTips | array[object] | Helpful teaching tips for the lesson |
items | object | A teaching tip |
contentGuidance | array, null | Full guidance about the types of lesson content for the teacher to consider (where appropriate) |
contentGuidanceArea | string | Category of content guidance |
supervisionlevel_id | number | The ID of the supervision level for the identified type of content. See ‘What are the types of content guidance?’ for more information. |
contentGuidanceLabel | string | Content guidance label |
contentGuidanceDescription | string | A detailed description of the type of content that we suggest needs guidance. |
supervisionLevel | string, null | The ID of the supervision level for the identified type of content. See ‘What are the types of content guidance?’ for more information. |
downloadsAvailable | boolean | Whether the lesson currently has any downloadable assets availableNote: this field reflects the current availability of downloadable assets, which reflects the availability of early-release content available for the hackathon. All lessons will eventually have downloadable assets available. |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
message | string | The error message |
code | string | The error code |
issues | array[object] | An array of issues that were responsible for the error |
{
"lessonTitle": "Using vector tools to draw and modify shapes",
"canonicalUrl": "https://www.thenational.academy/teachers/programmes/computing-secondary-ks3/units/developing-vector-graphics/lessons/using-vector-tools-to-draw-and-modify-shapes",
"oakUrl": "https://www.thenational.academy/teachers/lessons/using-vector-tools-to-draw-and-modify-shapes",
"unitSlug": "developing-vector-graphics",
"unitTitle": "Developing vector graphics",
"subjectSlug": "computing",
"subjectTitle": "Computing",
"keyStageSlug": "ks3",
"keyStageTitle": "Key Stage 3",
"lessonKeywords": [
{
"keyword": "vector graphic",
"description": "an image made up of lines and shapes"
},
{
"keyword": "z-order",
"description": "the order of overlapping objects"
},
{
"keyword": "layer",
"description": "the level on which an object (e.g. text, shapes and photos) can be placed relative to other objects"
}
],
"keyLearningPoints": [
{
"keyLearningPoint": "Vector graphics are made from shapes described by coordinates, not pixels."
},
{
"keyLearningPoint": "Vector illustrations are built using simple shapes."
},
{
"keyLearningPoint": "Vector graphics use z-order to show which shapes are in front and are visible."
}
],
"misconceptionsAndCommonMistakes": [
{
"misconception": "Vector graphics are made from pixels and can lose quality when resized.",
"response": "Vector graphics are made from lines and shapes. They do not lose quality when resized."
}
],
"pupilLessonOutcome": "I can use software to draw and modify vector shapes.",
"teacherTips": [
{
"teacherTip": "You need to be familiar with the basic tools and features of vector editing software. The Inkscape tutorials may be useful — oak.link/inkscape-tutorials"
}
],
"contentGuidance": null,
"supervisionLevel": null,
"downloadsAvailable": true
}