{
  "openapi": "3.0.1",
  "info": {
    "title": "itch.io Games Scraper",
    "description": "Scrape public itch.io game listings and game pages for titles, developers, descriptions, platforms, tags, ratings, dates, and thumbnails. Browse top sellers, new and popular games, or other listings; fetching game-page details is optional.",
    "version": "0.0",
    "x-build-id": "mX5vmXq85oC9I43wn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axiomworks~itchio-games-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axiomworks-itchio-games-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/axiomworks~itchio-games-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axiomworks-itchio-games-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/axiomworks~itchio-games-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axiomworks-itchio-games-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional itch.io URLs, one per object: a browse page like https://itch.io/games/top-sellers or https://itch.io/games/genre-horror, or a game page like https://adamgryu.itch.io/pumpkin-carver. Leave empty to use listing/searchQuery/genre/tag. maxItems is shared across all URLs; a dead or unreachable URL is skipped with a log warning.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Full itch.io URL, e.g. https://itch.io/games/top-sellers or https://someone.itch.io/some-game."
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "listing": {
            "title": "Listing",
            "enum": [
              "top-sellers",
              "new-and-popular",
              "top-rated",
              "newest"
            ],
            "type": "string",
            "description": "Which itch.io ranking to browse when startUrls and searchQuery are empty: top-sellers, new-and-popular, top-rated or newest. Default top-sellers. Combine with genre, tag, platform and priceFilter.",
            "default": "top-sellers"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword search on itch.io, e.g. 'roguelike' or 'pixel art platformer'. Used only when startUrls is empty; it replaces listing, genre, tag and platform. Leave empty to browse a listing. A term with no matches returns 0 items and a status message.",
            "default": ""
          },
          "genre": {
            "title": "Genre",
            "type": "string",
            "description": "Genre slug appended to the browse listing, e.g. 'simulation', 'puzzle' or 'rpg' (lowercase, hyphenated, as in itch.io genre URLs). Ignored when startUrls or searchQuery is set.",
            "default": ""
          },
          "tag": {
            "title": "Tag",
            "type": "string",
            "description": "Tag slug appended to the browse listing, e.g. 'horror' or 'pixel-art' (lowercase, hyphenated, as in itch.io tag URLs). Ignored when startUrls or searchQuery is set. Can be combined with genre.",
            "default": ""
          },
          "priceFilter": {
            "title": "Price filter",
            "enum": [
              "any",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Keep only 'free' games (no price tag), only 'paid' games, or 'any' (default). Applied after fetching, so a strict filter on a small listing may return fewer than maxItems.",
            "default": "any"
          },
          "maxItems": {
            "title": "Maximum items",
            "type": "integer",
            "description": "Maximum game records across all URLs, 1-10000, default 50. Duplicate game IDs count once. Empty or blocked targets return no records and a status message.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "true (default): open each game page for rating, ratingCount, tags, genres, dates, full description, status, tools, languages and inputs; slower. false: listing-card fields only (title, developer, price, platforms, thumbnail), much faster.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. Default is direct connections, which works for itch.io; enable Apify Proxy if requests get blocked (403/429), retries then use a fresh proxy session.",
            "default": {
              "useApifyProxy": false
            }
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "",
              "windows",
              "osx",
              "linux",
              "android",
              "ios",
              "web"
            ],
            "type": "string",
            "description": "Limit generated browse listings to a platform: windows, osx (macOS), linux, android, ios, or web (browser). Default empty returns all platforms. Ignored when startUrls or searchQuery is supplied.",
            "default": ""
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}