{
  "openapi": "3.0.1",
  "info": {
    "title": "Coursera Scraper",
    "description": "Scrape Coursera search results: courses, Specializations, Professional Certificates, projects, and degrees with ratings, reviews, skills, providers, level, duration, languages, and free/Coursera Plus flags. Filter like the site. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "xVqAcVJ1ArXcpXBnE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~coursera-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-coursera-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/parsebird~coursera-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-coursera-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/parsebird~coursera-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-coursera-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",
        "properties": {
          "queries": {
            "title": "Search terms",
            "type": "array",
            "description": "Add Coursera search terms, one per line, such as python, machine learning, or data analytics. Each term is searched separately.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Coursera search URLs",
            "type": "array",
            "description": "Paste Coursera search URLs, e.g. https://www.coursera.org/search?query=data%20analytics&productDifficultyLevel=Beginner. The URL's search term, filters, and sort order are used.",
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Learning product",
            "type": "array",
            "description": "Keep only these product types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Courses",
                "Specializations",
                "Professional Certificates",
                "Guided Projects",
                "Projects",
                "Degrees",
                "Graduate Certificates",
                "University Certificates",
                "Postgraduate Diploma",
                "MasterTrack® Certificates"
              ]
            }
          },
          "levels": {
            "title": "Level",
            "type": "array",
            "description": "Keep only these difficulty levels.",
            "items": {
              "type": "string",
              "enum": [
                "Beginner",
                "Intermediate",
                "Advanced",
                "Mixed"
              ]
            }
          },
          "durations": {
            "title": "Duration",
            "type": "array",
            "description": "Keep only these durations.",
            "items": {
              "type": "string",
              "enum": [
                "Less Than 2 Hours",
                "1-4 Weeks",
                "1-3 Months",
                "3-6 Months",
                "6-12 Months",
                "1-4 Years"
              ]
            }
          },
          "topics": {
            "title": "Subject",
            "type": "array",
            "description": "Keep only these subjects.",
            "items": {
              "type": "string",
              "enum": [
                "Arts and Humanities",
                "Business",
                "Computer Science",
                "Data Science",
                "Health",
                "Information Technology",
                "Language Learning",
                "Math and Logic",
                "Personal Development",
                "Physical Science and Engineering",
                "Social Sciences"
              ]
            }
          },
          "languages": {
            "title": "Language",
            "type": "array",
            "description": "Language names as Coursera writes them, e.g. English, Spanish, Portuguese.",
            "items": {
              "type": "string"
            }
          },
          "partners": {
            "title": "Educator",
            "type": "array",
            "description": "Universities or companies offering the course, as Coursera names them, e.g. Google, IBM, University of Michigan.",
            "items": {
              "type": "string"
            }
          },
          "skills": {
            "title": "Skills",
            "type": "array",
            "description": "Skills as Coursera names them, e.g. Python Programming, Data Analysis.",
            "items": {
              "type": "string"
            }
          },
          "freeOnly": {
            "title": "Free courses only",
            "type": "boolean",
            "description": "Keep only results Coursera lists as free.",
            "default": false
          },
          "courseraPlusOnly": {
            "title": "Coursera Plus only",
            "type": "boolean",
            "description": "Keep only results included in a Coursera Plus subscription.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "BEST_MATCH",
              "NEW"
            ],
            "type": "string",
            "description": "Order of results, as on the Coursera search page."
          },
          "maxResults": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop each search term or URL after this many results. Coursera shows at most 10,000 results per search.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on result pages (100 results per page) for each search. Leave empty for no cap."
          },
          "deduplicate": {
            "title": "Skip duplicates across searches",
            "type": "boolean",
            "description": "Save each course only once, even if several search terms find it.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy is needed. The actor switches to Apify Proxy by itself if Coursera limits requests."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}