Learning Assets by Locale and Type
To retrieve a page of learning assets, given some criteria, issue a GET call to the following endpoint: GET https://api.linkedin.com/v2/learningAssets?q=localeAndType
Documentation: https://docs.microsoft.com/en-us/linkedin/learning/integrations/locale-and-type-api#learningassets-localeandtype-finder
Access to LinkedIn Learning APIs is available to members of our Partner Program and organizations that have purchased LinkedIn Learning site licenses.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
q | string | The value of this parameter should always be: localeAndType. | |
sourceLocale.language | string | The locale language of the learning assets. The value of this parameter should be de, en, es, fr, or ja. These values correspond to the locales "de_DE", "en_US", "es_ES", "fr_FR", and "ja_JP". | |
sourceLocale.country | string | The locale country of the learning assets. The value of this parameter should be DE, US, ES, FR, or JP. These values correspond to the locales "de_DE", "en_US", "es_ES", "fr_FR", and "ja_JP". | |
expandDepth | number | The number of levels in the learning asset hierarchy to include asset details. This parameter is optional; please see the Specifying the level of asset details section for an explanation with examples. | |
includeRetired | boolean | Whether to include retired learning assets. The value of this parameter should be true or false. | |
start | number | The start index of learning assets for the page. | |
count | number | The number of learning assets to include in the page. Please choose a reasonable value if overriding the default; the API will return an error if the requested page exceeds the 2 MB response size limit of the framework. | |
assetType | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
referer | string |
RESPONSES
status: OK
"{\n \"elements\": [\n {\n \"urn\": \"urn:li:lyndaCourse:110715\",\n \"contents\": [\n {\n \"asset\": {\n \"urn\": \"urn:li:lyndaChapter:(urn:li:lyndaCourse:110715,114477)\",\n \"contents\": [\n {\n \"asset\": {\n \"urn\": \"urn:li:lyndaVideo:(urn:li:lyndaCourse:110715,114478)\",\n \"contents\": [],\n \"type\": \"VIDEO\",\n \"title\": {\n \"locale\": {\n \"country\": \"US\",\n \"language\": \"en\"\n },\n \"value\": \"Welcome\"\n }\n }\n },\n …\n ],\n \"paging\": {\n \"total\": 5810,\n \"count\": 20,\n \"start\": 1000,\n \"links\": [\n {\n \"rel\": \"prev\",\n \"href\":\n\"/v2/learningAssets?assetType=COURSE\u0026count=20\u0026expandDepth=1\u0026includeRetired=false\u0026q=localeAndType\u0026sourceLocale.country=US\u0026sourceLocale.language=en\u0026start=980\",\n \"type\": \"application/json\"\n },\n {\n \"rel\": \"next\",\n \"href\":\n\"/v2/learningAssets?assetType=COURSE\u0026count=20\u0026expandDepth=1\u0026includeRetired=false\u0026q=localeAndType\u0026sourceLocale.country=US\u0026sourceLocale.language=en\u0026start=1020\",\n \"type\": \"application/json\"\n }\n ]\n }\n}"