{
  "openapi": "3.0.1",
  "info": {
    "title": "Sbazar Electronics Scraper",
    "description": "Scrape phones, computers, TVs, and other electronics on Sbazar. Use the same listing filters as the site or paste a URL — the URL wins when set.",
    "version": "0.1",
    "x-build-id": "kLVmgs9WLnIsaAeVX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dadhalfdev~sbazar-electronics-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dadhalfdev-sbazar-electronics-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/dadhalfdev~sbazar-electronics-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dadhalfdev-sbazar-electronics-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/dadhalfdev~sbazar-electronics-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dadhalfdev-sbazar-electronics-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": {
          "input_url": {
            "title": "Input URL",
            "type": "string",
            "description": "Paste a Sbazar search or listing URL from Elektro a počítače. Overrides every filter when set."
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Same as the Sbazar search box. Optional."
          },
          "subcategory": {
            "title": "Subcategory",
            "enum": [
              "",
              "50-audio-video",
              "589-cd-prehravace",
              "590-diskmany-prehravace-minidisku",
              "573-dvd-prehravace-rekordery",
              "591-hifi",
              "400-mp3-prehravace",
              "575-ostatni-audiovideo",
              "592-projektory",
              "570-reproduktory",
              "594-radia-diktafony-audioprehravace",
              "576-set-top-boxy",
              "595-sluchatka-mikrofony",
              "580-videokamery",
              "572-videoprehravace-rekordery",
              "593-zesilovace",
              "49-foto-bazar",
              "582-blesky",
              "578-kompaktni-fotoaparaty",
              "581-objektivy",
              "585-ostatni-foto-bazar",
              "51-prislusenstvi-k-fotoaparatum",
              "583-stativy",
              "579-zrcadlovky",
              "586-gps-navigace",
              "816-herni-konzole",
              "94-mobil-bazar",
              "837-chytre-hodinky",
              "292-htc",
              "237-iphone",
              "114-lg",
              "95-mobil-prislusenstvi",
              "48-mobily-ostatni",
              "115-motorola",
              "111-nokia",
              "117-panasonic",
              "119-samsung",
              "120-siemens",
              "122-sim-karty",
              "112-sony-ericsson",
              "73-ostatni-elektro",
              "584-pametove-karty",
              "32-pocitace",
              "143-notebooky",
              "144-ostatni",
              "57-pc-prislusenstvi",
              "68-pc-sestavy",
              "60-software",
              "597-satelity-satelitni-komplety",
              "815-tablety-ctecky-knih",
              "577-televize"
            ],
            "type": "string",
            "description": "Same shelves as on the Elektro a počítače page.",
            "default": ""
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, district, or region, same as the place box on the site. Leave empty for all of Czechia."
          },
          "radius_km": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Kilometres around the location. Leave empty to stay inside that place."
          },
          "price_min": {
            "title": "Minimum price (CZK)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in Czech koruna."
          },
          "price_max": {
            "title": "Maximum price (CZK)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in Czech koruna."
          },
          "only_free": {
            "title": "Free only",
            "type": "boolean",
            "description": "Only listings offered for free.",
            "default": false
          },
          "include_price_by_agreement": {
            "title": "Include negotiable prices",
            "type": "boolean",
            "description": "Keep listings where the price is by agreement. On by default, same as the site.",
            "default": true
          },
          "only_delivery": {
            "title": "Delivery only",
            "type": "boolean",
            "description": "Only listings you can buy with delivery.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "nejnovejsi",
              "nejlevnejsi",
              "nejdrazsi"
            ],
            "type": "string",
            "description": "Same sort options as the listing page.",
            "default": "nejnovejsi"
          },
          "max_results": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum rows to return (1–2000).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}