example-data.com
Menu
Browse docs and collections

Overview

courses / #3

The Complete Guide to Leadership

instructorUserId
Jarrell Flatley @jarrell_flatley39
title
The Complete Guide to Leadership
slug
the-complete-guide-to-leadership-3
description
Socius currus cognomen succedo appono creator. Xiphias tolero cariosus vis suasoria.
category
business
difficulty
intermediate
language
German
durationHours
51.3
priceFrom
0
currency
USD
thumbnailUrl
https://picsum.photos/seed/course-3/800/450
rating
4.9
ratingCount
17
enrollmentCount
99
isPublished
true
createdAt
updatedAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/courses/3" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/courses/3"
);
const course = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/courses.d.ts https://example-data.com/types/courses.d.ts
import type { Course } from "./types/courses";

const res = await fetch(
  "https://example-data.com/api/v1/courses/3"
);
const course = (await res.json()) as Course;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/courses/3"
)
course = res.json()

Response

{
  "id": 3,
  "instructorUserId": 61,
  "title": "The Complete Guide to Leadership",
  "slug": "the-complete-guide-to-leadership-3",
  "description": "Socius currus cognomen succedo appono creator. Xiphias tolero cariosus vis suasoria.",
  "category": "business",
  "difficulty": "intermediate",
  "language": "German",
  "durationHours": 51.3,
  "priceFrom": 0,
  "currency": "USD",
  "thumbnailUrl": "https://picsum.photos/seed/course-3/800/450",
  "rating": 4.9,
  "ratingCount": 17,
  "enrollmentCount": 99,
  "isPublished": true,
  "createdAt": "2024-07-03T14:03:45.292Z",
  "updatedAt": "2024-08-22T04:06:38.511Z"
}