# edX course API

Get edX Course data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, url, and retrieve structured data including course display title, edX course key, reported course price, verified certificate track price, and price currency code to compare mooc tracks and pricing, verify enrollment windows, and index university curricula.

Documentation: https://openany.si/market/apis/edx/edx-course-api/?offering=01d0609e-505b-4303-8e11-8e5a6a52dc21
API ID: 01d0609e-505b-4303-8e11-8e5a6a52dc21
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/edx/v1/course
Page update time: 2026-12-03T02:55:15.027Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:55:14.056Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "edX course API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Course link (edx.org/learn/<subject>/<course>)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "active_run": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "enrollment_end": {
          "type": "null"
        },
        "enrollment_start": {
          "type": "string"
        },
        "instructors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "image": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "organization": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            }
          }
        },
        "key": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "max_effort_hours_per_week": {
          "type": "integer"
        },
        "min_effort_hours_per_week": {
          "type": "integer"
        },
        "pacing": {
          "type": "string"
        },
        "price": {
          "type": "integer"
        },
        "seats": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "credit_hours": {
                "type": "null"
              },
              "credit_provider": {
                "type": "null"
              },
              "currency": {
                "type": "string"
              },
              "price": {
                "type": "integer"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "start": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "transcript_languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "uuid": {
          "type": "string"
        },
        "video": {
          "type": "string"
        },
        "weeks_to_complete": {
          "type": "integer"
        }
      }
    },
    "audit_available": {
      "type": "boolean"
    },
    "availability": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cached": {
      "type": "boolean"
    },
    "created": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "end_date": {
      "type": "string"
    },
    "enroll_by": {
      "type": "null"
    },
    "enrollable": {
      "type": "boolean"
    },
    "enrollment_count": {
      "type": "integer"
    },
    "faq": {
      "type": "null"
    },
    "fetched_at": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "instructors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bio_url": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "organization": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      }
    },
    "key": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "level": {
      "type": "string"
    },
    "modified": {
      "type": "string"
    },
    "pacing": {
      "type": "string"
    },
    "prerequisites": {
      "type": "string"
    },
    "price": {
      "type": "integer"
    },
    "programs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "uuid": {
            "type": "string"
          }
        }
      }
    },
    "rating": {
      "type": "null"
    },
    "rating_count": {
      "type": "null"
    },
    "recent_enrollment_count": {
      "type": "integer"
    },
    "runs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "enrollment_end": {
            "type": "null"
          },
          "enrollment_start": {
            "type": "string"
          },
          "instructors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "image": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "organization": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                }
              }
            }
          },
          "key": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "max_effort_hours_per_week": {
            "type": "integer"
          },
          "min_effort_hours_per_week": {
            "type": "integer"
          },
          "pacing": {
            "type": "string"
          },
          "price": {
            "type": "integer"
          },
          "seats": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "credit_hours": {
                  "type": "null"
                },
                "credit_provider": {
                  "type": "null"
                },
                "currency": {
                  "type": "string"
                },
                "price": {
                  "type": "integer"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "start": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "transcript_languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "uuid": {
            "type": "string"
          },
          "video": {
            "type": "string"
          },
          "weeks_to_complete": {
            "type": "integer"
          }
        }
      }
    },
    "schools": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "logo": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      }
    },
    "short_description": {
      "type": "string"
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "start_date": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "subjects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "syllabus": {
      "type": "null"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "title": {
      "type": "string"
    },
    "track_type": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "upcoming_run_start": {
      "type": "null"
    },
    "url": {
      "type": "string"
    },
    "uuid": {
      "type": "string"
    },
    "verified_cert_price": {
      "type": "integer"
    },
    "video": {
      "type": "string"
    },
    "weeks_to_complete": {
      "type": "integer"
    },
    "what_you_will_learn": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/edx/v1/course?output=json&raw=0&url=https%3A%2F%2Fwww.edx.org%2Flearn%2Fcomputer-science%2Fharvard-university-cs50-s-introduction-to-computer-science' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "active_run": {
    "currency": "USD",
    "end": "2027-06-30T23:59:00.000Z",
    "enrollment_end": null,
    "enrollment_start": "2015-01-01T00:00:00.000Z",
    "instructors": [
      {
        "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/1752b28e-8ac9-40a0-b468-326e03cafdd4-fbb503634b91.jpg",
        "name": "David J. Malan",
        "organization": "Harvard University",
        "title": "Gordon McKay Professor of the Practice of Computer Science"
      },
      {
        "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/bc8ebc13-d0a3-406d-a486-8abaf599f4f2-e4bb91efd038.jpg",
        "name": "Doug Lloyd",
        "organization": "Harvard University",
        "title": "Senior Preceptor in Computer Science"
      },
      {
        "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/0a4f3eeb-93aa-4db9-956b-236dc9a1f65e-3f9866938764.png",
        "name": "Brian Yu",
        "organization": "Harvard University",
        "title": "Senior Preceptor in Computer Science"
      }
    ],
    "key": "course-v1:HarvardX+CS50+X",
    "language": "en-us",
    "max_effort_hours_per_week": 18,
    "min_effort_hours_per_week": 6,
    "pacing": "self_paced",
    "price": 219,
    "seats": [
      {
        "credit_hours": null,
        "credit_provider": null,
        "currency": "USD",
        "price": 0,
        "type": "audit"
      },
      {
        "credit_hours": null,
        "credit_provider": null,
        "currency": "USD",
        "price": 219,
        "type": "verified"
      }
    ],
    "start": "2016-02-17T00:00:00.000Z",
    "status": "published",
    "title": "CS50's Introduction to Computer Science",
    "transcript_languages": [
      "ar-sa",
      "de-de",
      "en-us",
      "es-mx",
      "fr-fr",
      "hi",
      "id",
      "pt-br",
      "sw",
      "te",
      "tr",
      "zh-Hans"
    ],
    "type": "Verified and Audit",
    "url": "https://www.edx.org/learn/computer-science/harvard-university-cs50-s-introduction-to-computer-science",
    "uuid": "a36f67ec-6637-11e6-a8e3-22000bdde520",
    "video": "https://www.youtube.com/watch?v=ib4NNsp2qW4",
    "weeks_to_complete": 12
  },
  "audit_available": true,
  "availability": [
    "Current"
  ],
  "cached": false,
  "created": "2019-09-11T14:18:11.319Z",
  "credits_used": 1,
  "currency": "USD",
  "description": "This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan, CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. The on-campus version of CS50x , CS50, is Harvard's largest course. Students who earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project are eligible for a certificate. This is a self-paced course–you may take CS50x on your own schedule. HarvardX requires individuals who enroll in its courses on edX to abide by the terms of the edX honor code. HarvardX will take appropriate corrective action in response to violations of the edX honor code , which may include dismissal from the HarvardX course; revocation of any certificates received for the HarvardX course; or other remedies as circumstances warrant. No refunds will be issued in the case of corrective action for such violations. Enrollees who are taking HarvardX courses as part of another program will also be governed by the academic policies of those programs. HarvardX pursues the science of learning. By registering as an online learner in an HX course, you will also participate in research about learning. Read our research statement to learn more. Harvard University and HarvardX are committed to maintaining a safe and healthy educational and work environment in which no member of the community is excluded from participation in, denied the benefits of, or subjected to discrimination or harassment in our program. All members of the HarvardX community are expected to abide by Harvard policies on nondiscrimination, including sexual harassment, and the edX Terms of Service. If you have any questions or concerns, please contact harvardx@harvard.edu and/or report your experience through the edX contact form .",
  "end_date": "2027-06-30T23:59:00.000Z",
  "enroll_by": null,
  "enrollable": true,
  "enrollment_count": 7134848,
  "faq": null,
  "fetched_at": "2026-11-19T12:19:29.582Z",
  "id": "b2237e54-25d2-4dce-b091-175ebd1304a0",
  "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/course/image/da1b2400-322b-459b-97b0-0c557f05d017-a3d1899c3344.png",
  "instructors": [
    {
      "bio_url": "https://www.edx.org/bio/david-j-malan",
      "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/1752b28e-8ac9-40a0-b468-326e03cafdd4-fbb503634b91.jpg",
      "name": "David J. Malan",
      "organization": "Harvard University",
      "title": "Gordon McKay Professor of the Practice of Computer Science"
    },
    {
      "bio_url": "https://www.edx.org/bio/doug-lloyd",
      "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/bc8ebc13-d0a3-406d-a486-8abaf599f4f2-e4bb91efd038.jpg",
      "name": "Doug Lloyd",
      "organization": "Harvard University",
      "title": "Senior Preceptor in Computer Science"
    },
    {
      "bio_url": "https://www.edx.org/bio/brian-yu",
      "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/0a4f3eeb-93aa-4db9-956b-236dc9a1f65e-3f9866938764.png",
      "name": "Brian Yu",
      "organization": "Harvard University",
      "title": "Senior Preceptor in Computer Science"
    }
  ],
  "key": "HarvardX+CS50x",
  "language": "en-us",
  "level": "Introductory",
  "modified": "2024-11-26T14:34:59.240Z",
  "pacing": "self_paced",
  "prerequisites": "None.",
  "price": 219,
  "programs": [
    {
      "title": "Computer Science for Cybersecurity",
      "type": "Professional Certificate",
      "url": "certificates/professional-certificate/harvardx-computer-science-for-cybersecurity",
      "uuid": "54c7ce9c-5a40-4e12-ab87-d562833387c4"
    },
    {
      "title": "Computer Science for Web Programming",
      "type": "Professional Certificate",
      "url": "certificates/professional-certificate/harvardx-computer-science-for-web-programming",
      "uuid": "90f4789c-2549-4670-ade7-12cc8b590f5c"
    },
    {
      "title": "Computer Science for Databases using SQL",
      "type": "Professional Certificate",
      "url": "certificates/professional-certificate/harvardx-computer-science-for-databases-using-sql",
      "uuid": "0a185424-0687-4bdc-aed9-4574b736c1d6"
    },
    {
      "title": "Computer Science for Data Science",
      "type": "Professional Certificate",
      "url": "certificates/professional-certificate/harvardx-computer-science-for-data-science",
      "uuid": "3543defa-7662-46c0-be1e-94c14de91ea3"
    },
    {
      "title": "Computer Science for Artificial Intelligence",
      "type": "Professional Certificate",
      "url": "certificates/professional-certificate/harvardx-computer-science-for-artifical-intelligence",
      "uuid": "8c5c1af9-761b-49b4-9f52-f6f48856d906"
    },
    {
      "title": "Computer Science for Python Programming",
      "type": "Professional Certificate",
      "url": "certificates/professional-certificate/harvardx-computer-science-for-python-programming",
      "uuid": "e250b08e-be2a-4b48-a43c-c9ae47f6cf14"
    }
  ],
  "rating": null,
  "rating_count": null,
  "recent_enrollment_count": 279779,
  "runs": [
    {
      "currency": "USD",
      "end": "2027-06-30T23:59:00.000Z",
      "enrollment_end": null,
      "enrollment_start": "2015-01-01T00:00:00.000Z",
      "instructors": [
        {
          "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/1752b28e-8ac9-40a0-b468-326e03cafdd4-fbb503634b91.jpg",
          "name": "David J. Malan",
          "organization": "Harvard University",
          "title": "Gordon McKay Professor of the Practice of Computer Science"
        },
        {
          "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/bc8ebc13-d0a3-406d-a486-8abaf599f4f2-e4bb91efd038.jpg",
          "name": "Doug Lloyd",
          "organization": "Harvard University",
          "title": "Senior Preceptor in Computer Science"
        },
        {
          "image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/people/profile_images/0a4f3eeb-93aa-4db9-956b-236dc9a1f65e-3f9866938764.png",
          "name": "Brian Yu",
          "organization": "Harvard University",
          "title": "Senior Preceptor in Computer Science"
        }
      ],
      "key": "course-v1:HarvardX+CS50+X",
      "language": "en-us",
      "max_effort_hours_per_week": 18,
      "min_effort_hours_per_week": 6,
      "pacing": "self_paced",
      "price": 219,
      "seats": [
        {
          "credit_hours": null,
          "credit_provider": null,
          "currency": "USD",
          "price": 0,
          "type": "audit"
        },
        {
          "credit_hours": null,
          "credit_provider": null,
          "currency": "USD",
          "price": 219,
          "type": "verified"
        }
      ],
      "start": "2016-02-17T00:00:00.000Z",
      "status": "published",
      "title": "CS50's Introduction to Computer Science",
      "transcript_languages": [
        "ar-sa",
        "de-de",
        "en-us",
        "es-mx",
        "fr-fr",
        "hi",
        "id",
        "pt-br",
        "sw",
        "te",
        "tr",
        "zh-Hans"
      ],
      "type": "Verified and Audit",
      "url": "https://www.edx.org/learn/computer-science/harvard-university-cs50-s-introduction-to-computer-science",
      "uuid": "a36f67ec-6637-11e6-a8e3-22000bdde520",
      "video": "https://www.youtube.com/watch?v=ib4NNsp2qW4",
      "weeks_to_complete": 12
    }
  ],
  "schools": [
    {
      "key": "HarvardX",
      "logo": "https://prod-discovery.edx-cdn.org/organization/logos/44022f13-20df-4666-9111-cede3e5dc5b6-2cc39992c67a.png",
      "name": "Harvard University"
    }
  ],
  "short_description": "An introduction to the intellectual enterprises of computer science and the art of programming.",
  "skills": [
    "Algorithms",
    "C (Programming Language)",
    "Cascading Style Sheets (CSS)",
    "Computer Science",
    "Cryptography",
    "Data Structures",
    "Finance",
    "Forensic Sciences",
    "HyperText Markup Language (HTML)",
    "JavaScript (Programming Language)",
    "Python (Programming Language)",
    "Resource Management",
    "SQL (Programming Language)",
    "Security Software"
  ],
  "start_date": "2016-02-17T00:00:00.000Z",
  "subject": "Computer Science",
  "subjects": [
    "Computer Science",
    "Engineering"
  ],
  "syllabus": null,
  "tags": [
    "c",
    "c-programming",
    "computer-programming",
    "partner",
    "python",
    "sql",
    "stardust-2019",
    "web-development"
  ],
  "title": "CS50's Introduction to Computer Science",
  "track_type": "Verified and Audit",
  "type": "Course",
  "upcoming_run_start": null,
  "url": "https://www.edx.org/learn/computer-science/harvard-university-cs50-s-introduction-to-computer-science",
  "uuid": "da1b2400-322b-459b-97b0-0c557f05d017",
  "verified_cert_price": 219,
  "video": "https://www.youtube.com/watch?v=iUBfoA4a5G0",
  "weeks_to_complete": 12,
  "what_you_will_learn": [
    "A broad and robust understanding of computer science and programming",
    "How to think algorithmically and solve programming problems efficiently",
    "Concepts like abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development",
    "Familiarity in a number of languages, including C, Python, SQL, and JavaScript plus CSS and HTML",
    "How to engage with a vibrant community of like-minded learners from all levels of experience",
    "How to develop and present a final programming project to your peers"
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/edx/edx-course-api/?offering=01d0609e-505b-4303-8e11-8e5a6a52dc21

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
