{
  "openapi": "3.0.1",
  "info": {
    "title": "Tencent App Store Scraper",
    "description": "Scrape app listings from the Tencent App Store (应用宝 / sj.qq.com): name, developer, category, rating, download count, version, APK size, permissions, ICP filing, screenshots, editorial description and iOS cross-platform link. Browse rankings or fetch by package name. No API key required.",
    "version": "0.0",
    "x-build-id": "U0nsA0Z81bht56jLV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unfenced-group~tencent-app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unfenced-group-tencent-app-store-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/unfenced-group~tencent-app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unfenced-group-tencent-app-store-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/unfenced-group~tencent-app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unfenced-group-tencent-app-store-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": [
              "detail",
              "browse",
              "list",
              "category",
              "tag",
              "topic"
            ],
            "type": "string",
            "description": "How to select apps. 'detail' scrapes exact package names or URLs you provide. 'browse' pulls the homepage featured & ranking apps. 'list' pulls a curated list (top/hot/new/pre-registration). 'category' pulls a game category. 'tag' pulls a tag/genre list. 'topic' pulls an editorial topic collection. Every mode returns the full detail field set per app.",
            "default": "detail"
          },
          "packageNames": {
            "title": "Package names",
            "type": "array",
            "description": "Android package names to scrape in 'detail' mode, e.g. com.tencent.mm (WeChat), com.tencent.tmgp.sgame (Honor of Kings).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional sj.qq.com URLs. App detail URLs (https://sj.qq.com/appdetail/{package}) are scraped directly; category, tag, list or topic URLs are used as discovery sources.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listType": {
            "title": "Curated list",
            "enum": [
              "popular-app",
              "hot-game",
              "new-game",
              "reserve-game",
              "wechat-game",
              "recommend"
            ],
            "type": "string",
            "description": "Which curated list to pull in 'list' mode. popular-app = top apps; hot-game = trending games; new-game = new releases; reserve-game = pre-registration games; wechat-game = WeChat mini-games; recommend = editor picks.",
            "default": "popular-app"
          },
          "categorySlug": {
            "title": "Game category slug",
            "type": "string",
            "description": "Game category to pull in 'category' mode (the /game/{slug} pages). Examples: rpg, avg, chess, slg02, xiuxianyizhi, chuangxinpinlei, danji, booking.",
            "default": ""
          },
          "tagSlug": {
            "title": "Tag / genre slug",
            "type": "string",
            "description": "Tag to pull in 'tag' mode (the /tag/{slug} pages). Examples: moba, rpg, mmorpg, roguelike, openworld, sandbox, fighting, shooting, tencent, ios, wangzherongyao, yuanshen. Around 70 tags exist.",
            "default": ""
          },
          "topicId": {
            "title": "Topic ID",
            "type": "string",
            "description": "Numeric editorial topic ID to pull in 'topic' mode, e.g. 200074806. Topic IDs appear in the recommendedTopics field of any app record.",
            "default": ""
          },
          "appType": {
            "title": "App type filter",
            "enum": [
              "all",
              "games",
              "apps"
            ],
            "type": "string",
            "description": "Keep only games, only non-game apps, or all.",
            "default": "all"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only apps with an average rating at or above this value (0–5). Apps with no rating are excluded when set."
          },
          "minDownloads": {
            "title": "Minimum downloads",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only apps with at least this many downloads."
          },
          "categoryFilter": {
            "title": "Category / tag keyword filter",
            "type": "string",
            "description": "Keep only apps whose category, primary tag or tag aliases contain this text (case-insensitive), e.g. 社交, moba, 工具.",
            "default": ""
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of app records to return. Set to 0 for unlimited. Discovery lists return roughly 20–60 apps per source page.",
            "default": 20
          },
          "skipReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Skip apps already returned in a previous run (matched by app ID across runs, 90-day memory). Useful for daily-change feeds.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}