OpenAny
Get API keyAPI Key
APIDataSearch & Research

edx logo
edX Learning Program API

Get edX Learning Program 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 edX program UUID, program display title, program credential type, program availability status, and reported total program price to map certificate course sequences, and link to partner institutions.

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 Learning Program 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 Learning Program API

edX Learning Program API

Pass an edx.org program link (or path) in the required url query parameter. The response returns title, subtitle, type, status, total_price, weeks_to_complete, min/max_hours_per_week, schools[] and ordered courses[] with individual keys and prices.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: url (edx.org program URL or path). Optional raw=0, fields and fresh=1.
Selected implementation apish · edX Learning Program Details API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Map certificate course sequences: Read ordered courses[] with keys, titles and prices inside a Professional Certificate or MicroMasters.
  • Compare total program cost and time: Benchmark total_price, weeks_to_complete and weekly effort hours across competing programs.
  • Link to partner institutions: Use schools[].slug with the edX Partner Institution API to explore other offerings from the same university.

Returned Data

Field Meaning
uuid edX program UUID
title Program display title
type Program credential type
status Program availability status
total_price Reported total program price
weeks_to_complete Estimated completion duration in weeks
min_hours_per_week Minimum estimated weekly effort hours
schools[].name Partner university or institution name
courses[].title Constituent course title
courses[].price Individual constituent course price

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/program \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --data-urlencode url=https://www.edx.org/certificates/professional-certificate/harvardx-computer-science-for-artifical-intelligence

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 Learning Program 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
An edx.org program link (or its path).
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 Learning Program Details 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/program
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

An edx.org program link (or its path).

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
  • banner_imagestring
  • cachedboolean
  • card_imagestring
  • coursesobject[]
    • currencystring
    • keystring
    • orderinteger
    • priceinteger
    • titlestring
    • uuidstring
  • created_atstring
  • credits_usedinteger
  • fetched_atstring
  • labelsunknown[]
  • max_hours_per_weekinteger
  • min_hours_per_weekinteger
  • overviewnull
  • recent_enrollment_countinteger
  • schoolsobject[]
    • keystring
    • logonull
    • namestring
    • slugstring
    • urlstring
  • statusstring
  • subtitlestring
  • titlestring
  • total_priceinteger
  • typestring
  • updated_atstring
  • urlstring
  • uuidnull
  • 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 recording · HTTP 200

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
    An edx.org program link (or its path).
    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/program?output=json&raw=0&url=https%3A%2F%2Fwww.edx.org%2Fcertificates%2Fprofessional-certificate%2Fharvardx-computer-science-for-artifical-intelligence' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "banner_image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/programs/banner_images/8c5c1af9-761b-49b4-9f52-f6f48856d906-0d8963669c24.jpg",
      "cached": false,
      "card_image": "https://prod-discovery.edx-cdn.org/cdn-cgi/image/width=auto,height=auto,quality=75,format=webp/media/programs/card_images/8c5c1af9-761b-49b4-9f52-f6f48856d906-569ce5564e34.jpg",
      "courses": [
        {
          "currency": "USD",
          "key": "HarvardX+CS50AI",
          "order": 1,
          "price": 299,
          "title": "CS50's Introduction to Artificial Intelligence with Python",
          "uuid": "3a31db71-de8f-45f1-ae65-11981ed9d680"
        },
        {
          "currency": "USD",
          "key": "HarvardX+CS50x",
          "order": 2,
          "price": 219,
          "title": "CS50's Introduction to Computer Science",
          "uuid": "da1b2400-322b-459b-97b0-0c557f05d017"
        }
      ],
      "created_at": "2020-01-27T15:16:22.537Z",
      "credits_used": 1,
      "fetched_at": "2026-11-19T09:20:29.627Z",
      "labels": [],
      "max_hours_per_week": 30,
      "min_hours_per_week": 6,
      "overview": null,
      "recent_enrollment_count": 358442,
      "schools": [
        {
          "key": "HarvardX",
          "logo": null,
          "name": "Harvard University",
          "slug": "harvardx",
          "url": "https://www.edx.org/school/harvardx"
        }
      ],
      "status": "active",
      "subtitle": "Learn programming fundamentals and how to use machine learning in Python.",
      "title": "Computer Science for Artificial Intelligence",
      "total_price": 518,
      "type": "Professional Certificate",
      "updated_at": "2024-12-03T06:50:44.548Z",
      "url": "https://www.edx.org/certificates/professional-certificate/harvardx-computer-science-for-artifical-intelligence",
      "uuid": null,
      "weeks_to_complete": 19,
      "what_you_will_learn": [
        "A broad and robust understanding of computer science and programming",
        "Graph search algorithms",
        "Reinforcement learning",
        "Machine learning",
        "Artificial intelligence principles",
        "How to design intelligent systems",
        "How to use AI in Python programs"
      ]
    }

Common questions

What types of edX URLs does url accept?

Pass an edx.org program link such as a Professional Certificate, MicroMasters or MicroBachelors URL, or its path.

Does courses[] include individual prices for each course?

Yes. Each entry in courses[] reports order, key, title, price and currency alongside the program total_price.

Does this endpoint return lecture-level syllabi for every course?

No. It summarizes the program and constituent courses; call the edX Course API for individual course syllabi and run dates.

Are enrollment numbers included?

When published, the response includes recent_enrollment_count.

How do I check current program pricing without stale cache data?

Pass fresh=1 to bypass the 24-hour cache.

How do I reduce JSON response size?

Pass raw=0 to omit bulky raw blocks or specify fields.

Use edX Learning Program API with your agent

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