edX course API

Use the edX course API to retrieve course syllabus, price information, participating institutions, subject categories, difficulty levels and learning outcomes and skills as structured JSON from edX. Supply source-page URL in the query. Use these results to compare learning content and teaching arrangements when selecting courses or study programmes. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Course link (edx.org/learn/<subject>/<course>).
Optional parameters (5)
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

{
  "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 [email protected] 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"
  ]
}

Response result

Response structure

Inferred from examples
  • active_runobject
    • currencystring
    • endstring
    • enrollment_endnull
    • enrollment_startstring
    • instructorsobject[]
      • imagestring
      • namestring
      • organizationstring
      • titlestring
    • keystring
    • languagestring
    • max_effort_hours_per_weekinteger
    • min_effort_hours_per_weekinteger
    • pacingstring
    • priceinteger
    • seatsobject[]
      • credit_hoursnull
      • credit_providernull
      • currencystring
      • priceinteger
      • typestring
    • startstring
    • statusstring
    • titlestring
    • transcript_languagesstring[]
    • typestring
    • urlstring
    • uuidstring
    • videostring
    • weeks_to_completeinteger
  • audit_availableboolean
  • availabilitystring[]
  • cachedboolean
  • createdstring
  • credits_usedinteger
  • currencystring
  • descriptionstring
  • end_datestring
  • enroll_bynull
  • enrollableboolean
  • enrollment_countinteger
  • faqnull
  • fetched_atstring
  • idstring
  • imagestring
  • instructorsobject[]
    • bio_urlstring
    • imagestring
    • namestring
    • organizationstring
    • titlestring
  • keystring
  • languagestring
  • levelstring
  • modifiedstring
  • pacingstring
  • prerequisitesstring
  • priceinteger
  • programsobject[]
    • titlestring
    • typestring
    • urlstring
    • uuidstring
  • ratingnull
  • rating_countnull
  • recent_enrollment_countinteger
  • runsobject[]
    • currencystring
    • endstring
    • enrollment_endnull
    • enrollment_startstring
    • instructorsobject[]
      • imagestring
      • namestring
      • organizationstring
      • titlestring
    • keystring
    • languagestring
    • max_effort_hours_per_weekinteger
    • min_effort_hours_per_weekinteger
    • pacingstring
    • priceinteger
    • seatsobject[]
      • credit_hoursnull
      • credit_providernull
      • currencystring
      • priceinteger
      • typestring
    • startstring
    • statusstring
    • titlestring
    • transcript_languagesstring[]
    • typestring
    • urlstring
    • uuidstring
    • videostring
    • weeks_to_completeinteger
  • schoolsobject[]
    • keystring
    • logostring
    • namestring
  • short_descriptionstring
  • skillsstring[]
  • start_datestring
  • subjectstring
  • subjectsstring[]
  • syllabusnull
  • tagsstring[]
  • titlestring
  • track_typestring
  • typestring
  • upcoming_run_startnull
  • urlstring
  • uuidstring
  • verified_cert_priceinteger
  • videostring
  • weeks_to_completeinteger
  • what_you_will_learnstring[]

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use edX course API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.