{
  "openapi": "3.0.1",
  "info": {
    "title": "Sbazar Music, Books and Games Scraper",
    "description": "Scrape books, music, films, games, and instruments 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": "mT2vE8b435RlE6o6y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dadhalfdev~sbazar-music-books-games-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dadhalfdev-sbazar-music-books-games-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-music-books-games-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dadhalfdev-sbazar-music-books-games-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-music-books-games-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dadhalfdev-sbazar-music-books-games-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 Hudba, knihy, hry a zábava. Overrides every filter when set."
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Same as the Sbazar search box. Optional."
          },
          "subcategory": {
            "title": "Subcategory",
            "enum": [
              "",
              "317-blu-ray-dvd-filmy",
              "6-hry-hracky",
              "482-autodrahy",
              "481-auticka",
              "483-drevene-hracky",
              "493-elektricka-vozitka",
              "25-herni-prislusenstvi",
              "487-hracky-na-zahradu",
              "476-hracky-pro-miminka",
              "484-karnevalove-kostymy-masky",
              "479-kocarky-pro-panenky",
              "285-lego-stavebnice",
              "26-modely",
              "485-mice-balonky",
              "71-ostatni-hracky",
              "286-panenky",
              "287-plysove-hracky",
              "24-pocitacove-hry",
              "478-puzzle-hlavolamy",
              "477-stolni-spolecenske-hry",
              "486-vlacky",
              "316-hudba-cd",
              "318-hudebni-nastroje-prislusenstvi",
              "803-hudebni-nastroje",
              "70-ostatni",
              "399-zvukova-aparatura",
              "409-kapely-muzikanti",
              "31-knihy-literatura",
              "296-beletrie-proza",
              "297-biografie",
              "298-cestopisy-mapy-mistopis",
              "299-cizojazycne-knihy",
              "301-detektivky-thrillery-horory",
              "302-dobrodruzne-knihy",
              "303-encyklopedie",
              "304-historicke-knihy",
              "305-kucharky-recepty",
              "306-odborne-knihy",
              "52-ostatni-knihy",
              "307-poezie",
              "243-pohadky-knizky-pro-deti",
              "309-sci-fi-fantasy-knihy",
              "310-slovniky",
              "311-ucebnice-skripta",
              "54-casopisy",
              "836-vouchery-kupony-poukazky",
              "321-vstupenky"
            ],
            "type": "string",
            "description": "Same shelves as on the Hudba, knihy, hry a zábava 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}