{
  "openapi": "3.0.1",
  "info": {
    "title": "Unity Asset Store Scraper - Packages, Sales & Monitor",
    "description": "Scrape Unity Asset Store packages: prices, discounts, ratings, publishers, category listings, and sitemap full-catalog discovery. Optional HTML enrichment for versions and upgrades. Monitor price, version, and rating changes. No login.",
    "version": "0.1",
    "x-build-id": "Coj9MtAqM36qLkQIj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~unity-asset-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-unity-asset-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/crawloop~unity-asset-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-unity-asset-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/crawloop~unity-asset-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-unity-asset-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "asset_details",
              "batch_scan",
              "full_catalog",
              "monitor"
            ],
            "type": "string",
            "description": "What to scrape from the Unity Asset Store.",
            "default": "asset_details"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Package or category page URLs (asset IDs / category slugs are parsed automatically).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "assetIds": {
            "title": "Asset IDs",
            "type": "array",
            "description": "Numeric package IDs (e.g. 293522). Used by asset_details and monitor.",
            "items": {
              "type": "string"
            }
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "Category path for search mode (e.g. tools/animation, 3d/characters). Listing URL: /packages/{slug}."
          },
          "searchQuery": {
            "title": "Search query (experimental)",
            "type": "string",
            "description": "Optional keyword filter applied client-side to category listing names when Coveo is unavailable. Prefer categorySlug for reliable discovery.",
            "default": ""
          },
          "orderBy": {
            "title": "Listing sort",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Unity listing orderBy query param (1 = relevance/popular default on category pages).",
            "default": 1
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "When browsing categories, only keep assets marked onSale in the listing payload.",
            "default": false
          },
          "startId": {
            "title": "Start asset ID",
            "minimum": 1,
            "type": "integer",
            "description": "Inclusive start for batch_scan.",
            "default": 1
          },
          "endId": {
            "title": "End asset ID",
            "minimum": 1,
            "type": "integer",
            "description": "Inclusive end for batch_scan.",
            "default": 1000
          },
          "batchSize": {
            "title": "Batch size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "IDs per get-multiple-assets request (max ~100).",
            "default": 50
          },
          "enrichFromHtml": {
            "title": "Enrich from product HTML",
            "type": "boolean",
            "description": "Fetch package page React ENTITY for version, download size, SRP, upgrades, tags, LD+JSON fallback. Slower.",
            "default": false
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Parallel HTTP workers (1–32).",
            "default": 8
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Dataset row cap (0 = unlimited).",
            "default": 1000
          },
          "maxPages": {
            "title": "Max listing pages",
            "minimum": 0,
            "type": "integer",
            "description": "Cap category listing pages (~24 assets/page). 0 = until maxItems / exhausted.",
            "default": 5
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Client-side rate limit across workers.",
            "default": 8
          },
          "monitorStoreName": {
            "title": "Monitor KV store name",
            "type": "string",
            "description": "Named Key-Value store for monitor fingerprints.",
            "default": "unity-asset-store-monitor"
          },
          "monitorBaselineOnly": {
            "title": "Monitor baseline only",
            "type": "boolean",
            "description": "First monitor run: save fingerprints without emitting change events.",
            "default": false
          },
          "resetMonitorState": {
            "title": "Reset monitor state",
            "type": "boolean",
            "description": "Clear stored fingerprints before this run.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "Track price changes",
            "type": "boolean",
            "description": "Emit PRICE_DROP / PRICE_INCREASE / NEW_SALE events.",
            "default": true
          },
          "trackVersionUpdates": {
            "title": "Track version updates",
            "type": "boolean",
            "description": "Emit VERSION_UPDATE when version / latestReleaseDate changes.",
            "default": true
          },
          "trackRatingChanges": {
            "title": "Track rating changes",
            "type": "boolean",
            "description": "Emit RATING_CHANGE when average or count moves past thresholds.",
            "default": true
          },
          "trackNewAssets": {
            "title": "Track new assets",
            "type": "boolean",
            "description": "Emit NEW_ASSET for IDs not seen in previous monitor state.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy. Direct egress usually works for Asset Store APIs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}