{
  "openapi": "3.0.1",
  "info": {
    "title": "GoodShort Scraper — Catalog, Views, Followers, Genres & Tags",
    "description": "Scrape the GoodShort short-drama catalog: titles, genres & tags, episode counts, exact view and follower counts, synopses and covers. SSR-JSON based (no browser) — fast and cheap.",
    "version": "0.1",
    "x-build-id": "eNSN3bJV3QAho89IG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalbench~goodshort-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalbench-goodshort-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/signalbench~goodshort-scraper/runs": {
      "post": {
        "operationId": "runs-sync-signalbench-goodshort-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/signalbench~goodshort-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-signalbench-goodshort-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "trending",
              "category",
              "fullCatalog",
              "urlList",
              "search"
            ],
            "type": "string",
            "description": "What to scrape. **Trending** reads the homepage rails and every curated channel (~90 editorially-picked titles, the cheapest and most useful default). **By category** scrapes the genres you pick — GoodShort caps every genre listing at 96 unique titles. **Full catalog** crawls all 11 genres and then sweeps tag listings, which are almost entirely disjoint from the genre catalog and are the only way past ~437 titles. **Specific URLs** scrapes the GoodShort URLs you provide. **Search** resolves titles by keyword (GoodShort's public search returns at most 3 results per keyword).",
            "default": "trending"
          },
          "categories": {
            "title": "Categories (for \"By category\" mode)",
            "type": "array",
            "description": "Which genres to scrape. Each yields up to 96 unique titles — GoodShort's own ceiling, not a limit of this Actor. Several genres (Action, Thriller, Superpower, Suspense, Sci-Fi) hold fewer than 10 titles in total.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "fantasy",
                "urban",
                "romance",
                "thriller",
                "superpower",
                "ancient",
                "action",
                "sci-fi",
                "lgbtqia",
                "suspense"
              ],
              "enumTitles": [
                "All dramas",
                "Fantasy",
                "Urban",
                "Romance",
                "Thriller",
                "Superpower",
                "Ancient",
                "Action",
                "Sci-Fi",
                "LGBTQIA+",
                "Suspense"
              ]
            },
            "default": [
              "all"
            ]
          },
          "startUrls": {
            "title": "Start URLs (for \"Specific URLs\" mode)",
            "type": "array",
            "description": "GoodShort URLs to scrape. Accepts title pages (https://www.goodshort.com/drama/{slug}-{id}), category listings (/dramas/{slug}), tag listings (/tag/{slug}), the tag index (/tags/all) and channels (/channel/{slug}).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search keywords (for \"Search\" mode)",
            "type": "array",
            "description": "Keywords to resolve. **Note:** GoodShort's public search endpoint is an autocomplete — it returns a maximum of 3 results per keyword and does not paginate. Use it to resolve a title you already know by name, not for discovery.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of titles to store. This caps your cost — 1 stored title = 1 charge.",
            "default": 200
          },
          "maxTagsToCrawl": {
            "title": "Max tags to sweep (Full catalog mode only)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "GoodShort exposes 73 pages of ~2,000 tag slugs. Tag listings overlap the genre catalog by only ~2%, so sweeping them is the scale lever — but a full sweep is enormous. Each tag yields up to ~97 titles across 10 pages. Set to 0 to skip tags and crawl genres only.",
            "default": 50
          },
          "enrichFromDetailPage": {
            "title": "Fetch each title's detail page",
            "type": "boolean",
            "description": "Adds one request per title. Required for **follower counts** on homepage/channel results (the rail payload omits them) and for the first-episode publish date. Turn off for the fastest, cheapest run.",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en"
            ],
            "type": "string",
            "description": "Only English is supported. GoodShort's localisation is not URL-prefix based, so no other language can be requested reliably.",
            "default": "en"
          },
          "extractionMode": {
            "title": "Extraction mode",
            "enum": [
              "state",
              "domFallback"
            ],
            "type": "string",
            "description": "**Server state** parses the page's embedded JSON — full fidelity, recommended. **JSON-LD + DOM fallback** reads schema.org markup and page selectors instead; use it only if GoodShort changes its page structure. The fallback loses tags, follower counts and the exact integer view count (the DOM only exposes GoodShort's rounded display figure).",
            "default": "state"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. GoodShort serves plain HTML with no bot challenge, so the default datacenter proxy is enough; switch to residential if you hit blocks on a large run.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}