{
  "openapi": "3.0.1",
  "info": {
    "title": "iQIYI Scraper",
    "description": "Easily scrape video data from iQIYI(爱奇艺) search results and profiles, like title, album, image, interaction data, uploader data and more.",
    "version": "0.0",
    "x-build-id": "CYZXcM9fSFjHIjdLY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/natanielsantos~iqiyi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-natanielsantos-iqiyi-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/natanielsantos~iqiyi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-natanielsantos-iqiyi-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/natanielsantos~iqiyi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-natanielsantos-iqiyi-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": {
          "urls": {
            "title": "Profile URLs or Video/Album URLs",
            "type": "array",
            "description": "List of URLs to scrape. It can be a list of video URLs, profile URLs or album URLs from iQiyi.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "🔍 Search Terms",
            "type": "array",
            "description": "Search terms to query on iQiyi. The Actor will search for each term and scrape results until it reaches the maxItems limit.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "latest",
              "popular"
            ],
            "type": "string",
            "description": "Sorting order for search results. 'Relevance' sorts by relevance to the search term, 'Latest' sorts by publish date with newest first, and 'Popular' sorts by popularity with most popular first.",
            "default": "relevance"
          },
          "category": {
            "title": "Category",
            "enum": [
              "all",
              "movie",
              "tv_series",
              "documentary",
              "animation",
              "music",
              "variety_shows",
              "entertainment",
              "game",
              "travel",
              "trailers",
              "fashion",
              "short_films",
              "sports",
              "life",
              "advertisement",
              "comedy",
              "finance",
              "news_and_info",
              "car",
              "originals",
              "military",
              "mother_and_baby",
              "technology",
              "talk_shows",
              "health",
              "beauty",
              "square_dance",
              "trending"
            ],
            "type": "string",
            "description": "Category to filter search results by. If 'All' is selected, no category filter will be applied.",
            "default": "all"
          },
          "publishDate": {
            "title": "Publish Date",
            "enum": [
              "all",
              "last_24_hours",
              "last_7_days",
              "last_30_days"
            ],
            "type": "string",
            "description": "Filter search results by publish date. 'All Time' includes all results, 'Last 24 Hours' includes videos published in the last 24 hours, 'Last 7 Days' includes videos published in the last week, 'Last 30 Days' includes videos published in the last month.",
            "default": "all"
          },
          "site": {
            "title": "Site",
            "enum": [
              "all",
              "iqiyi",
              "tencent_video",
              "sohu",
              "youku",
              "tudou",
              "acfun",
              "bilibili",
              "ifeng",
              "cntv",
              "m1905"
            ],
            "type": "string",
            "description": "Filter search results by video hosting site. 'All Sites' includes results from all supported sites, while selecting a specific site will only include results from that site.",
            "default": "all"
          },
          "quality": {
            "title": "Quality",
            "enum": [
              "all",
              "hd",
              "ultra_hd",
              "720p",
              "1080p"
            ],
            "type": "string",
            "description": "Filter search results by video quality. 'All Qualities' includes all results regardless of quality, while selecting a specific quality will only include videos that match that quality.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max Items (per search term or profile)",
            "type": "integer",
            "description": "Maximum number of items to scrape for each search term. Set 0 to scrape all available items.",
            "default": 100
          },
          "scrapeAdditionalInfo": {
            "title": "Scrape Additional Info (Uploader data and interaction data",
            "type": "boolean",
            "description": "Whether to scrape additional information such as uploader data (uploader name, uploader avatar, uploader follower count, etc.) and interaction data (like count, sub count, comment count, etc.). Enabling this option may reduce the run time.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}