{
  "openapi": "3.0.1",
  "info": {
    "title": "PCGarage.ro Scraper: Prices, Stock, Specs and Reviews",
    "description": "Scrape pcgarage.ro for price, promotion and stock monitoring: price, old price, discount, open-box offers, stock, brand, MPN, rating and category from any category, search or product URL. Add specs, warranty and reviews when you need them. Romanian proxy included. Pay per product and page opened.",
    "version": "0.1",
    "x-build-id": "lGjZOaSwCKaVQ3ZCi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataizi-srl~pcgarage-ro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataizi-srl-pcgarage-ro-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/dataizi-srl~pcgarage-ro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataizi-srl-pcgarage-ro-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/dataizi-srl~pcgarage-ro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataizi-srl-pcgarage-ro-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": "Category, search or product URLs",
            "type": "array",
            "description": "Addresses on www.pcgarage.ro: a category such as https://www.pcgarage.ro/placi-video/, a category with one site filter (/placi-video/filtre/stoc/), a search page or a product page. Other sites are not accepted. Addresses the site's robots rules do not allow are skipped, and the run log says which.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "categories": {
            "title": "Category names",
            "type": "array",
            "description": "The short name from a category's web address: `placi-video` for https://www.pcgarage.ro/placi-video/. An unknown name is skipped and the log says so.",
            "items": {
              "type": "string",
              "minLength": 2
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Words to search on pcgarage.ro, one per line. The scraper reads the result pages the site's own search returns. For a complete list of a product type, use a category instead.",
            "items": {
              "type": "string",
              "minLength": 2
            }
          },
          "siteFilter": {
            "title": "Site filter",
            "enum": [
              "none",
              "stoc",
              "discount",
              "noi",
              "desigilate",
              "bonus",
              "rating-4",
              "rating-5",
              "garantie-24-luni",
              "garantie-36-luni"
            ],
            "type": "string",
            "description": "One of PC Garage's own filters, applied to every category: In stock, Discounted, New, Open-box (desigilate), With a bonus product, Rating 4 and up, Rating 5, Warranty 24 months, Warranty 36 months. Only one at a time, because the site does not allow combining them. It does not apply to search terms or product URLs.",
            "default": "none"
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Keep only products of these brands, for example `ASUS`, `MSI`. Spelling and capitals do not matter. If a brand is not found, the log lists the brands the scraper did see.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "minPrice": {
            "title": "Minimum price (RON)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products priced at or above this amount, in lei."
          },
          "maxPrice": {
            "title": "Maximum price (RON)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products priced at or below this amount, in lei."
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products that are in stock or in limited stock. Products the supplier holds are not counted. The site lists in-stock products first, so the scraper stops a category at the first page with none.",
            "default": false
          },
          "discountedOnly": {
            "title": "Discounted only",
            "type": "boolean",
            "description": "Keep only products that show an old price.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only products with at least this many stars, from 1 to 5."
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops after this many products. The default is 100, which is also the sample run: raise it for bigger jobs. Each product is one result you pay for.",
            "default": 100
          },
          "maxPagesPerSource": {
            "title": "Maximum pages per source",
            "minimum": 1,
            "type": "integer",
            "description": "Stops each category or search after this many pages of 20 products. Useful with filters that keep few products. Leave empty to read every page up to Maximum products."
          },
          "includeDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Opens each product page for the full specification table, warranty, description, gallery, rating breakdown and delivery figures. Slower: about 3,600 products per hour at most. Each product page opened is charged as a product page, on top of the product row (see Pricing).",
            "default": false
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Collects customer reviews with the reviewer's display name and town, and the replies, into a separate dataset called `reviews`. Open it on the run's Output tab. Products the list shows with no reviews are skipped. Slower: up to 2 more pages per product, the product page plus the all-reviews page when the product has more reviews than its page shows. Each of those pages is charged as a product page, on top of the product row; review rows are not charged (see Pricing).",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Maximum reviews per product",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "From 1 to 20 reviews for each product (one page of the site's review list). Used only with Reviews.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave this switched off. The scraper then connects through its own Romanian residential proxy, included in the price, so you pay no separate proxy bill. PC Garage refuses datacenter proxies, so choosing one of those makes the run stop with a clear message. A residential proxy from another country is switched to Romania. Your own proxy addresses are not supported.",
            "default": {
              "useApifyProxy": false
            }
          },
          "_transport": {
            "title": "Test setting: transport",
            "type": "string",
            "description": "Internal test setting. Leave empty."
          },
          "_browser": {
            "title": "Test setting: browser",
            "type": "string",
            "description": "Internal test setting. Leave empty."
          },
          "_fixtureDir": {
            "title": "Test setting: fixture folder",
            "type": "string",
            "description": "Internal test setting. Leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}