{
  "openapi": "3.0.1",
  "info": {
    "title": "Hamiz Multi-Scraper (hamiz.com)",
    "description": "Scrape hamiz.com — Algeria's buy-and-sell marketplace. Paste a search, category, seller or product URL and get fixed prices in Algerian Dinar, discounts, availability, category path, seller, rating, specs and photos. No login needed.",
    "version": "0.0",
    "x-build-id": "3NlKaqD1UTMCZjMZe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hamza325~hamiz-multi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hamza325-hamiz-multi-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/hamza325~hamiz-multi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hamza325-hamiz-multi-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/hamza325~hamiz-multi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hamza325-hamiz-multi-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": {
          "pageUrl": {
            "title": "URL",
            "type": "string",
            "description": "Paste any hamiz.com page URL from the browser's address bar — the Actor detects what it points at and runs the matching task: a search page (https://hamiz.com/en/search/?q=iphone) runs that search with the link's keyword and page number — including its category scope when one was selected in the search-page filters (https://hamiz.com/ar/search/category-…/?q=…), so results stay narrowed the way the site shows them. A category page (https://hamiz.com/en/automobile.html) browses the category, a seller page (https://hamiz.com/en/dima-top) scrapes that seller's listings, a product page (https://hamiz.com/en/4-piece-car-window-sunshade-set-black-s6223.html) scrapes that product with the full detail data. A results URL starts the walk at the page stated in the link. The language prefix of the URL (/en/, /fr/, /ar/) picks the storefront language."
          },
          "startMode": {
            "title": "What to scrape",
            "enum": [
              "auto",
              "search",
              "category",
              "directUrls",
              "seller",
              "categories"
            ],
            "type": "string",
            "description": "Defaults to **auto** (URL detection): the **URL** field alone decides the task. Pick an explicit mode only when a run can't be expressed as one pasted URL — **Category tree snapshot** has no page URL, for example. In explicit modes the surface-specific field below is used, falling back to the **URL** field when its own field is empty.",
            "default": "auto"
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "Used when **What to scrape** (`startMode`) = **Search by keyword** (`search`). Free-text query, exactly as the site's own search box accepts it (e.g. `iphone`, `climatiseur`, `abaya`). Falls back to the **URL** field when it points at a search page."
          },
          "categoryUrl": {
            "title": "Category page URL",
            "type": "string",
            "description": "Used when **What to scrape** (`startMode`) = **Browse a category** (`category`). Paste the category page URL straight from the browser's address bar (e.g. `https://hamiz.com/en/automobile.html`). Nested category paths work the same way. Falls back to the **URL** field when its own field is empty."
          },
          "sellerUrl": {
            "title": "Seller page URL",
            "type": "string",
            "description": "Used when **What to scrape** (`startMode`) = **Seller listings** (`seller`). Paste the seller storefront URL straight from the browser's address bar (e.g. `https://hamiz.com/en/dima-top`). The run returns every product the seller has listed, one row per product. Falls back to the **URL** field when its own field is empty."
          },
          "startUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Used when **What to scrape** (`startMode`) = **Specific product URLs** (`directUrls`). The product page URLs, pasted straight from the browser's address bar (e.g. `https://hamiz.com/en/4-piece-car-window-sunshade-set-black-s6223.html`). Each URL is scraped with the full data the site offers: description, SKU, special and regular prices, stock state, seller card, image gallery, rating, and delivery note. Falls back to the **URL** field when its own field is empty.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after pushing this many rows. Applies in every mode. 0 = no cap.",
            "default": 200
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many page requests. One page = one request (search and grid pages carry 20 products each). Use 0 for no cap. The scraper stops on its own when a grid runs out.",
            "default": 20
          },
          "maxRequestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "type": "integer",
            "description": "Requests per minute. The site dislikes fast, machine-like traffic — the default keeps runs welcome, and higher values make blocks more likely, not runs faster.",
            "default": 30
          },
          "locale": {
            "title": "Language",
            "enum": [
              "ar",
              "fr",
              "en"
            ],
            "type": "string",
            "description": "Request language. Sets the site language prefix (`/en/`, `/fr/`, `/ar/`) — result URLs and interface labels follow it. The language prefix of the pasted **URL** takes precedence in URL-driven runs. Product titles and descriptions are seller-entered and never translated.",
            "default": "fr"
          },
          "dedupe": {
            "title": "Skip duplicate products",
            "type": "boolean",
            "description": "Skip products whose ID has already been pushed in this run. Duplicates are dropped at the request-queue level too, so re-running the Actor with the same settings is idempotent.",
            "default": true
          },
          "debugIncludeRaw": {
            "title": "Debug: include raw source record",
            "type": "boolean",
            "description": "Add a `raw` field with the original source record to each row",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}