> For the complete documentation index, see [llms.txt](https://attr.sygnal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://attr.sygnal.com/sa5-seo/json-ld/article-2.md).

# JSON-LD Course Info ❺🧪

{% hint style="danger" %}
**EXPERIMENTAL ALPHA** ⑤

DO NOT USE this in production code, as it may be removed. We'll see if this approach works. Testing with Google is in progress.&#x20;

**STATUS**

Testing Google response to our script generated JSON-LD.&#x20;
{% endhint %}

## &#x20;<a href="#display-captions-in-webflows-lightboxes" id="display-captions-in-webflows-lightboxes"></a>

## Overview <a href="#display-captions-in-webflows-lightboxes" id="display-captions-in-webflows-lightboxes"></a>

* [Course list](https://developers.google.com/search/docs/appearance/structured-data/course#guidelines): A rich result that lists courses from the same website.
* [Course info](https://developers.google.com/search/docs/appearance/structured-data/course-info): A carousel that shows detailed course information from a variety of websites.

<https://developers.google.com/search/docs/appearance/structured-data/course#guidelines>

### When to Use

Google actually has some fairly strict and easy requirements if you want to use this type of markup:

* only use it for educational content that fits the criteria for a course i.e. lectures, lessons, or modules in a particular subject
* the course must have ” an explicit educational outcome of knowledge and/or skill in a particular subject and/or topic, and be led by one or more instructors with a roster of students.”
* e.g. a general event such as “how to make eggs” is not a course

<https://jsonld.com/json-ld-course/>

## Usage Notes

```html
<script>
var article = new window.sa5.LdJsonCourse();
article.headline = `Article headline`;
article.addAuthor (`Bob Hershel`);
article.publisher = `Sygnal`;
article.generate();
</script>
```

```html
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Course",
  "name": "Introduction to Computer Science and Programming",
  "description": "Introductory CS course laying out the basics.",
  "provider": {
    "@type": "Organization",
    "name": "University of Technology - Eureka",
    "sameAs": "https://www.example.com"
  }
}
</script>
```

## Notes&#x20;

`hasCourseInstance`

`offers`

Required by Google GSC.&#x20;

<https://search.google.com/search-console/r/course-info?resource_id=sc-domain%3Asygnal.com>

{% embed url="<https://developers.google.com/search/docs/appearance/structured-data/video>" %}

## References

<https://developers.google.com/search/docs/appearance/structured-data/course-info>

<https://developers.google.com/search/docs/appearance/structured-data/course>

<https://jsonld.com/json-ld-course/>

<https://schema.org/Course>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://attr.sygnal.com/sa5-seo/json-ld/article-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
