example-data.com
Menu
Browse docs and collections

Overview

courses / #1

The Complete Guide to SEO

instructorUserId
Edward Jacobson @edward_jacobson38
title
The Complete Guide to SEO
slug
the-complete-guide-to-seo-1
description
Dolorum demergo appello sopor vere terra spargo vinculum tollo. Vinum ars tandem cerno sunt dignissimos.
category
marketing
difficulty
intermediate
language
English
durationHours
24.5
priceFrom
182.64
currency
USD
thumbnailUrl
https://picsum.photos/seed/course-1/800/450
rating
4.2
ratingCount
92
enrollmentCount
191
isPublished
true
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/courses/1"
);
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/1"
);
const course = (await res.json()) as Course;

Python example

import requests

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

Response

{
  "id": 1,
  "instructorUserId": 38,
  "title": "The Complete Guide to SEO",
  "slug": "the-complete-guide-to-seo-1",
  "description": "Dolorum demergo appello sopor vere terra spargo vinculum tollo. Vinum ars tandem cerno sunt dignissimos.",
  "category": "marketing",
  "difficulty": "intermediate",
  "language": "English",
  "durationHours": 24.5,
  "priceFrom": 182.64,
  "currency": "USD",
  "thumbnailUrl": "https://picsum.photos/seed/course-1/800/450",
  "rating": 4.2,
  "ratingCount": 92,
  "enrollmentCount": 191,
  "isPublished": true,
  "createdAt": "2024-07-10T05:31:49.481Z",
  "updatedAt": "2024-08-25T23:52:33.141Z"
}