Skip to main content
GET
/
v1
/
linkedin
/
learning
/
{course_slug}
Get Course
curl --request GET \
  --url https://api.scrapebadger.com/v1/linkedin/learning/{course_slug} \
  --header 'X-API-Key: <x-api-key>'
import requests

url = "https://api.scrapebadger.com/v1/linkedin/learning/{course_slug}"

headers = {"X-API-Key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};

fetch('https://api.scrapebadger.com/v1/linkedin/learning/{course_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scrapebadger.com/v1/linkedin/learning/{course_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.scrapebadger.com/v1/linkedin/learning/{course_slug}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<x-api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.scrapebadger.com/v1/linkedin/learning/{course_slug}")
.header("X-API-Key", "<x-api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.scrapebadger.com/v1/linkedin/learning/{course_slug}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'

response = http.request(request)
puts response.read_body
{
  "course": {
    "slug": "<string>",
    "url": "<string>",
    "name": "<string>",
    "description": "<string>",
    "provider": "<string>",
    "workload": "<string>",
    "rating_value": 123,
    "rating_count": 123,
    "instructors": [
      {}
    ]
  }
}
Fetch a LinkedIn Learning course by its course_slug (the /learning/<slug> segment of the URL). Returns the course’s title, description, provider, workload, rating and instructors. Credits: 5

Authorization

X-API-Key
string
required
Your ScrapeBadger API key.

Path Parameters

course_slug
string
required
Course slug, e.g. learning-python.

Query Parameters

country
string
default:"us"
Country/locale for the request.

Response

course
object
The LearningCourse.

Example

curl "https://api.scrapebadger.com/v1/linkedin/learning/learning-python" \
  -H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
  "https://api.scrapebadger.com/v1/linkedin/learning/learning-python",
  { headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const { course } = await res.json();
import requests

res = requests.get(
    "https://api.scrapebadger.com/v1/linkedin/learning/learning-python",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
course = res.json()["course"]
Response
{
  "course": {
    "slug": "learning-python",
    "url": "https://www.linkedin.com/learning/learning-python",
    "name": "Learning Python",
    "description": "Get started with Python, the popular general-purpose programming language.",
    "provider": "LinkedIn Learning",
    "workload": "2h 15m",
    "rating_value": 4.7,
    "rating_count": 18400,
    "instructors": [
      {
        "name": "Joe Marini",
        "job_title": "Product & Engineering Leader",
        "url": "https://www.linkedin.com/in/joemarini"
      }
    ]
  }
}