{
  "openapi": "3.0.1",
  "info": {
    "title": "Coursera Course Analyzer — Skill Gaps & US Budgets",
    "description": "Analyze licensed Coursera JSON/CSV exports for skill gaps, US/USD learning budgets, supplied price changes and comparison reports. No live scraping.",
    "version": "1.1",
    "x-build-id": "cxuxzIN3vspItM55J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fascinating_lentil~coursera-courses-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fascinating_lentil-coursera-courses-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fascinating_lentil~coursera-courses-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fascinating_lentil-coursera-courses-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fascinating_lentil~coursera-courses-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fascinating_lentil-coursera-courses-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Data mode",
            "enum": [
              "demo",
              "import"
            ],
            "type": "string",
            "description": "Choose explicitly. Old search/proxy tasks receive a migration error. Demos create zero dataset rows/result fees, but start and platform usage apply."
          },
          "demoPreset": {
            "title": "Synthetic US learning preview",
            "enum": [
              "us-skills-comparison",
              "us-learning-budget",
              "us-catalog-change-review"
            ],
            "type": "string",
            "description": "Invented developer examples, not Coursera prices, course recommendations or real change history.",
            "default": "us-skills-comparison"
          },
          "importJson": {
            "title": "Licensed observations — JSON text",
            "type": "string",
            "description": "Paste an ARRAY as text, maximum 2 MiB / 1,000 observations / 60 fields per row. Required: courseId string, title, observedAt UTC date/timestamp. No URL/file fetching. Never include learner data, credentials or assessment content."
          },
          "importCsv": {
            "title": "Licensed observations — CSV text",
            "type": "string",
            "description": "Header plus 1–1,000 rows, maximum 2 MiB / 60 columns. Skills use | separators or a JSON list. Prices and hours must be unambiguous numeric values. See README context guide."
          },
          "importSource": {
            "title": "Export provider/source label",
            "type": "string",
            "description": "Required for import, maximum 160 characters. Public report label; never put credentials or personal data here. It does not establish source rights or accuracy."
          },
          "authorizedData": {
            "title": "I am licensed to use this export through this paid analysis service",
            "type": "boolean",
            "description": "TRUE required for import. Public visibility, ordinary learner/API access, or another scraper does not by itself establish commercial rights. Declaration is not a verified licence; demo does not require it.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum saved course analyses",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Import: first-seen unique course IDs, including all their supplied observations. Whole-course cap; omitted courses are not billed/exported. Demos have up to three invented previews, not dataset rows.",
            "default": 1
          },
          "requiredSkills": {
            "title": "Required skill tags",
            "type": "array",
            "description": "Up to 50 tags / 80 characters. Exact case/whitespace/Unicode-normalized matching only. No semantic equivalence, skill proficiency or employability inference.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "targetDifficulties": {
            "title": "Target supplied difficulty",
            "type": "array",
            "description": "Optional review criterion; missing difficulty remains unknown.",
            "items": {
              "type": "string",
              "enum": [
                "beginner",
                "intermediate",
                "advanced",
                "mixed"
              ]
            },
            "default": []
          },
          "budgetUsd": {
            "title": "Entered per-learner learning budget — USD",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Optional. Evaluated only for complete US/USD standard quotes with explicit billing, price-scope, tax basis and additional fees. Not a live price or team-license estimate."
          },
          "maximumStudyHours": {
            "title": "Maximum supplied study hours",
            "minimum": 0.01,
            "maximum": 10000,
            "type": "number",
            "description": "Optional; duration labels/month buckets are never converted into hours. Not a completion-time prediction."
          },
          "subscriptionPeriods": {
            "title": "Assumed subscription periods",
            "minimum": 1,
            "maximum": 36,
            "type": "integer",
            "description": "Multiply complete subscription quotes by this entered scenario. Monthly/annual contexts stay separate; no completion/certificate guarantee. No per-course sum of catalog subscriptions.",
            "default": 1
          },
          "priceChangeThresholdPercent": {
            "title": "Quoted price change threshold — %",
            "minimum": 0.01,
            "maximum": 1000,
            "type": "number",
            "description": "Latest two matching supplied standard offer observations only. Zero/unknown baselines, mismatched contexts or excessive gaps do not yield numerical alerts.",
            "default": 5
          },
          "comparisonWindowDays": {
            "title": "Maximum supplied comparison gap — days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Reports the latest pair in each context; not cross-run state, source refresh, monitoring service or notifications.",
            "default": 90
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}