{
  "openapi": "3.0.1",
  "info": {
    "title": "Steam Market Intelligence: Top Sellers & Opportunity Tracker",
    "description": "Go beyond raw Steam scraping. Track top sellers, popular new releases, coming soon, specials, or custom Steam searches, then score each game with market intelligence: demand, quality, commercial strength, momentum, opportunity type, risk flags, and recommended actions.",
    "version": "1.0",
    "x-build-id": "ReAm1K9xi9OZPAt4S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lokki~steam-top-sellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lokki-steam-top-sellers-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/lokki~steam-top-sellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lokki-steam-top-sellers-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/lokki~steam-top-sellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lokki-steam-top-sellers-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": [
          "maxItems"
        ],
        "properties": {
          "filter": {
            "title": "Steam feed to analyze",
            "enum": [
              "topsellers",
              "popularnew",
              "comingsoon",
              "specials",
              "newreleases"
            ],
            "type": "string",
            "description": "Which public Steam ranking should the actor analyze? Top sellers is the strongest default for market research.",
            "default": "topsellers"
          },
          "query": {
            "title": "Optional niche or genre keyword",
            "type": "string",
            "description": "Narrow the feed to a market niche. Examples: survival, cozy, horror, automation, roguelike, deckbuilder, city builder. Leave blank for the full feed.",
            "default": ""
          },
          "steamSearchUrls": {
            "title": "Advanced: custom Steam search URLs",
            "type": "array",
            "description": "Optional. Paste public store.steampowered.com/search URLs when you already filtered Steam by tags, category, discount, platform, price, or release window. If provided, these URLs override the feed/query builder.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Games to analyze",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of Steam results to save. Recommended: 100 for most market research runs.",
            "default": 100
          },
          "country": {
            "title": "Pricing country",
            "type": "string",
            "description": "Steam country code for localized pricing. Common examples: US, GB, CA, AU, DE.",
            "default": "US"
          },
          "language": {
            "title": "Steam language",
            "type": "string",
            "description": "Language used for Steam text, review summaries, genres, and categories. Default: english.",
            "default": "english"
          },
          "includeIntelligence": {
            "title": "Add Steam Market Intelligence",
            "type": "boolean",
            "description": "Adds demand, quality, commercial, momentum, and opportunity scores, plus market position, opportunity type, pricing/audience/monetization signals, intelligence tags, risk flags, insight summaries, and recommended actions.",
            "default": true
          },
          "includeAppDetails": {
            "title": "Add developer, publisher, genres, and app metadata",
            "type": "boolean",
            "description": "Recommended on. Adds developer, publisher, genres, categories, recommendations, Metacritic score, short description, free-to-play status, and app type from Steam's public appdetails endpoint. Intelligence mode keeps this on automatically.",
            "default": true
          },
          "includeCurrentPlayers": {
            "title": "Add live current player count",
            "type": "boolean",
            "description": "Recommended on. Adds Steam's public current player count when available. Some apps, hardware listings, demos, and unreleased games do not expose this value. Intelligence mode keeps this on automatically.",
            "default": true
          },
          "requestDelayMs": {
            "title": "Delay between enrichment requests",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Polite delay in milliseconds between optional enrichment requests. Recommended: 250. Use 500-1000 for larger runs.",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}