{
  "openapi": "3.0.1",
  "info": {
    "title": "Altex.ro Scraper: Prices, Stock, Specs and Reviews",
    "description": "Scrape altex.ro for price and stock monitoring: price, old price, promotions, stock, brand, EAN, images, seller and rating for any category, search, SKU list or the whole catalogue. Add specs, reviews, Q&A, per-store stock and seller profiles when you need them. Pay only per product.",
    "version": "0.1",
    "x-build-id": "PthmEIr6MDvchz1Ua"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataizi-srl~altex-ro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataizi-srl-altex-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~altex-ro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataizi-srl-altex-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~altex-ro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataizi-srl-altex-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 or product URLs",
            "type": "array",
            "description": "altex.ro category pages (the address contains /cpl/) or product pages (/cpd/), for example https://altex.ro/laptopuri/cpl/. Filters in the address (/filtru/...) are not read: use the filter fields below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Words to search on altex.ro, at least 3 characters each, for example espressor or iphone 15. Search returns at most what the site's search shows for a term. For a complete list, use a category URL. Brand and attribute filters do not apply to search results.",
            "items": {
              "type": "string",
              "minLength": 3
            }
          },
          "skus": {
            "title": "Product codes (SKUs)",
            "type": "array",
            "description": "altex.ro product codes, shown on each product page as \"Cod produs\" and in the sku column of any result. Looked up in batches, so long lists are fast. Filters do not apply to product codes.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          "allProducts": {
            "title": "Whole catalogue",
            "type": "boolean",
            "description": "Scrape every product on altex.ro (the site's sitemaps list nearly 590,000). Set Maximum products to 0 to get them all. With list data only, this takes about 2.5 to 4.5 hours. Category URLs, search terms and product codes are not needed and are not used. Extras on the whole catalogue take far longer, so run them category by category.",
            "default": false
          },
          "reconcileWithSitemap": {
            "title": "Add products missed by the listings",
            "type": "boolean",
            "description": "Only with Whole catalogue. Compares the result with altex.ro's product sitemaps and adds products the category listings did not show. Makes the run longer.",
            "default": false
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Keep only these brands, written in lowercase as in the site's brand links, for example samsung or apple. Several brands keep products of any of them.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "minPrice": {
            "title": "Minimum price (lei)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products costing at least this much, in whole lei."
          },
          "maxPrice": {
            "title": "Maximum price (lei)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products costing at most this much, in whole lei."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep products rated at least this many stars, from 1 to 5."
          },
          "onlyPromotions": {
            "title": "Only products on promotion",
            "type": "boolean",
            "description": "Keep only products the site shows with a promotion.",
            "default": false
          },
          "onlyOpenBox": {
            "title": "Only products with open-box offers",
            "type": "boolean",
            "description": "Keep only products that also have open-box (resigilat) units on sale.",
            "default": false
          },
          "soldByAltexOnly": {
            "title": "Only products sold by Altex",
            "type": "boolean",
            "description": "Leave out products sold by marketplace sellers.",
            "default": false
          },
          "onlyInStock": {
            "title": "Only products in stock",
            "type": "boolean",
            "description": "Skip products that cannot be ordered now. Skipped products are not charged.",
            "default": false
          },
          "sellerIds": {
            "title": "Marketplace seller ids",
            "type": "array",
            "description": "Keep products offered by these sellers. A seller's id is in the sellerId column of any result (1 is Altex).",
            "items": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          },
          "storeIds": {
            "title": "In stock at these stores",
            "type": "array",
            "description": "Keep products in stock at these Altex stores. Store ids are in the storeIdsWithStock column of any result, or the storeId column of the Store stock dataset.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          },
          "extraFilters": {
            "title": "Extra site filters",
            "type": "array",
            "description": "Any other filter the site offers, written as attribute:value, for example televizoare_rezolutie:4k. To find one, tick the filter on altex.ro and read it from the address bar after /filtru/: .../filtru/brand-3334/apple/ becomes brand:apple. The run log warns you if the site ignored a filter.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_]+:[^\\s:]+$"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best_buy",
              "best_deal",
              "price",
              "name",
              "reviews_count"
            ],
            "type": "string",
            "description": "The order products are collected in. Matters when you set Maximum products. Leave empty for the site's own order: best sellers in categories, best match in search."
          },
          "sortDirection": {
            "title": "Sort direction",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Leave empty for the natural direction: lowest first for Price and Name, highest first for the others."
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many products. Set 0 for no limit. Each product row is one result you pay for. The default of 50 keeps a first run quick.",
            "default": 50
          },
          "includeDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Adds description, specifications, gallery, every seller's offer, category trail, warranties, open-box units and rating breakdown. One extra request per product. The price per product does not change.",
            "default": false
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Adds reviews as rows in the Reviews dataset: rating, title, text, date, author name, verified buyer, votes, photos and replies. Find them in the Output tab. The price per product does not change.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Newest reviews to collect per product, 1 to 100.",
            "default": 20
          },
          "includeQuestions": {
            "title": "Questions and answers",
            "type": "boolean",
            "description": "Adds questions and their answers as rows in the Questions dataset. Find them in the Output tab. The price per product does not change.",
            "default": false
          },
          "maxQuestionsPerProduct": {
            "title": "Questions per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Questions to collect per product, 1 to 100.",
            "default": 20
          },
          "includeStoreAvailability": {
            "title": "Stock in each store",
            "type": "boolean",
            "description": "Adds one row per Altex store per product (about 117 stores) to the Store stock dataset: store name, city, address, opening hours, phone, manager and whether it has the product. One of the slowest extras. The price per product does not change.",
            "default": false
          },
          "includeSellerDetails": {
            "title": "Seller profile",
            "type": "boolean",
            "description": "Adds the marketplace seller's company name, tax id (CUI), trade register number, address, phone, e-mail and description. Fetched once per seller. The price per product does not change.",
            "default": false
          },
          "includeInstallmentPlans": {
            "title": "Instalment plans",
            "type": "boolean",
            "description": "Adds the instalment options: number of months, monthly amount and total. One extra request per product. The price per product does not change.",
            "default": false
          },
          "includePageExtras": {
            "title": "Delivery, returns and warranty",
            "type": "boolean",
            "description": "Reads the product page itself for the delivery estimate, return policy, warranty line, colour and every image link. The slowest extra, about one second per product. The price per product does not change.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Off by default. Switch on Apify Proxy if altex.ro starts refusing requests. Only Apify Proxy datacenter works: residential groups and custom proxy URLs are refused before the run starts.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}