{
  "openapi": "3.0.1",
  "info": {
    "title": "GOG.com Game & Price Scraper",
    "description": "Scrape GOG.com games, DLC and packs — multi-currency prices across 18 storefronts in one run, plus genres, ratings, reviews, system support, languages and full descriptions. No API key required.",
    "version": "0.0",
    "x-build-id": "upocFnGEmITXx1ILu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unfenced-group~gog-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unfenced-group-gog-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~gog-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unfenced-group-gog-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~gog-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unfenced-group-gog-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": {
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword(s) to search the GOG catalog (e.g. \"witcher\", \"cyberpunk\"). Leave empty to browse the whole catalog by the chosen sort order.",
            "default": ""
          },
          "country": {
            "title": "Storefront country",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "PL",
              "BR",
              "CA",
              "AU",
              "CH",
              "RU",
              "CN",
              "DK",
              "SE",
              "NO",
              "CZ",
              "HU",
              "ZA",
              "TR"
            ],
            "type": "string",
            "description": "Single storefront to price against. Each storefront returns prices in its own native currency. Ignored if 'Storefront countries' or 'All countries' is set.",
            "default": "US"
          },
          "countries": {
            "title": "Storefront countries (multi)",
            "type": "array",
            "description": "Price each game across multiple storefronts in a single run — GOG's prices in every selected country, side by side. Overrides the single-country field.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "DE",
                "FR",
                "PL",
                "BR",
                "CA",
                "AU",
                "CH",
                "RU",
                "CN",
                "DK",
                "SE",
                "NO",
                "CZ",
                "HU",
                "ZA",
                "TR"
              ],
              "enumTitles": [
                "🇺🇸 United States (USD)",
                "🇬🇧 United Kingdom (GBP)",
                "🇩🇪 Germany (EUR)",
                "🇫🇷 France (EUR)",
                "🇵🇱 Poland (PLN)",
                "🇧🇷 Brazil (BRL)",
                "🇨🇦 Canada (CAD)",
                "🇦🇺 Australia (AUD)",
                "🇨🇭 Switzerland (CHF)",
                "🇷🇺 Russia (RUB)",
                "🇨🇳 China (CNY)",
                "🇩🇰 Denmark (DKK)",
                "🇸🇪 Sweden (SEK)",
                "🇳🇴 Norway (NOK)",
                "🇨🇿 Czechia (CZK)",
                "🇭🇺 Hungary (HUF)",
                "🇿🇦 South Africa (ZAR)",
                "🇹🇷 Türkiye (TRY)"
              ]
            },
            "default": []
          },
          "allCountries": {
            "title": "All storefronts",
            "type": "boolean",
            "description": "Price every supported storefront (18 native currencies) in one run. Overrides both country fields.",
            "default": false
          },
          "productType": {
            "title": "Product type",
            "enum": [
              "game",
              "dlc",
              "pack"
            ],
            "type": "string",
            "description": "Which catalog to scrape: full games, DLC, or packs/bundles.",
            "default": "game"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "desc:trending",
              "desc:bestselling",
              "desc:releaseDate",
              "asc:price",
              "desc:price",
              "desc:reviewsRating",
              "desc:discount",
              "asc:title"
            ],
            "type": "string",
            "description": "Order in which the catalog is browsed (also the priority order when capping at Max results).",
            "default": "desc:trending"
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Filter the catalog to one or more genres.",
            "items": {
              "type": "string",
              "enum": [
                "action",
                "adventure",
                "arcade",
                "building",
                "card-game",
                "combat",
                "economic",
                "educational",
                "fighting",
                "horror",
                "platformer",
                "puzzle",
                "racing",
                "rpg",
                "shooter",
                "simulation",
                "sports",
                "strategy",
                "survival",
                "visual-novel"
              ]
            },
            "default": []
          },
          "systems": {
            "title": "Operating systems",
            "type": "array",
            "description": "Filter to games available on the selected operating systems.",
            "items": {
              "type": "string",
              "enum": [
                "windows",
                "mac",
                "linux"
              ]
            },
            "default": []
          },
          "discountedOnly": {
            "title": "On sale only (server-side)",
            "type": "boolean",
            "description": "Restrict the catalog query to currently discounted products.",
            "default": false
          },
          "excludeUnreleased": {
            "title": "Exclude unreleased titles",
            "type": "boolean",
            "description": "Drop 'coming soon' titles that have no price yet (useful when scraping newest releases).",
            "default": false
          },
          "priceFilter": {
            "title": "Price filter (post-extraction)",
            "enum": [
              "all",
              "free",
              "paid",
              "onSale"
            ],
            "type": "string",
            "description": "Keep only free, paid, or on-sale titles (evaluated against the first selected storefront).",
            "default": "all"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return titles priced at or above this amount (in the first storefront's currency)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return titles priced at or below this amount (in the first storefront's currency)."
          },
          "minRating": {
            "title": "Min rating (0–5)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only return titles with a GOG review rating at or above this value (0–5 scale)."
          },
          "releasedAfter": {
            "title": "Released after",
            "type": "string",
            "description": "Only return titles released on or after this date (YYYY-MM-DD).",
            "default": ""
          },
          "releasedBefore": {
            "title": "Released before",
            "type": "string",
            "description": "Only return titles released on or before this date (YYYY-MM-DD).",
            "default": ""
          },
          "fetchDetails": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "Fetch full description, supported languages, system compatibility, DLC count, videos, and related products for every result. Slower but much richer.",
            "default": false
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "Optional list of specific GOG numeric product IDs to scrape directly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional list of GOG game URLs (e.g. https://www.gog.com/game/the_witcher) to scrape directly.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of products to return.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}