OpenAny
Get API keyAPI Key
APIDataSearch & Research

edx logo
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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

edX Course API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
edX Course API

edX Course API

Pass the full course link (edx.org/learn/<subject>/<course>) in the required url query parameter. The response returns title, description, audit_available, price, verified_cert_price, pacing, weeks_to_complete, syllabus, schools, instructors and detailed active_run seat options.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: url (edx.org/learn/<subject>/<course>). Optional raw=0, fields and fresh=1.
Selected implementation apish · edX course API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Compare MOOC tracks and pricing: Inspect audit_available, verified_cert_price and active_run.seats[] across university courses.
  • Verify enrollment windows: Read active_run.enrollment_start, enrollment_end, start and end timestamps.
  • Index university curricula: Collect syllabus, skills, prerequisites, what_you_will_learn and transcript_languages.

Returned Data

Field Meaning
title Course display title
key edX course key
audit_available Free audit track availability indicator
price Reported course price
verified_cert_price Verified certificate track price
currency Price currency code
pacing Course pacing mode such as self_paced or instructor_paced
weeks_to_complete Estimated weeks to complete
active_run.start Active course run start timestamp
active_run.instructors[].name Instructor name for the active run

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/edx/v1/course \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --data-urlencode url=https://www.edx.org/learn/computer-science/harvard-university-cs50-s-introduction-to-computer-science

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published edX Course API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

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

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
edX course API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/edx/v1/course
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
urlURL query parametersquerystringYes

Course link (edx.org/learn/<subject>/<course>).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

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[]

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits used$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 6

    Review these request fields before running. Keep the published provider and request method unchanged.

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

    Sample response · Documented HTTP 200

    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 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"
      ]
    }

Common questions

What URL format is required for the url parameter?

Pass a full edX course link matching edx.org/learn/<subject>/<course>.

Does this endpoint show whether a free audit track is available?

Yes. Check audit_available alongside active_run.seats[] to see available audit and verified tracks.

Are multiple seat types or credit hours returned?

Yes. active_run.seats[] lists available seat types, prices, currencies and optional credit_hours.

Can I see transcript and subtitle languages?

Yes. active_run.transcript_languages[] lists supported transcript languages for the active run.

Does it include university partner details?

Yes. The response includes schools and instructor organization details; use the edX Partner Institution API for a school's full catalog.

How do I fetch current enrollment dates without cache delay?

Pass fresh=1 to skip the 24-hour cache and raw=0 to omit bulky raw blocks.

Use edX Course API with your agent

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