{
  "openapi": "3.0.1",
  "info": {
    "title": "Blocket.se Classifieds Search & Price Filter Tool",
    "description": "Search Blocket.se by keyword across all categories, cars, electronics, or furniture, with a price range filter in SEK, and location, condition, and seller details per listing.",
    "version": "1.0",
    "x-build-id": "89yrp0BhFjySpLspX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~blocket-se-classifieds-search-and-price-filter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-blocket-se-classifieds-search-and-price-filter",
        "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/vexaloom-labs~blocket-se-classifieds-search-and-price-filter/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-blocket-se-classifieds-search-and-price-filter",
        "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/vexaloom-labs~blocket-se-classifieds-search-and-price-filter/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-blocket-se-classifieds-search-and-price-filter",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchAll",
              "searchCars",
              "searchElectronics",
              "searchFurniture",
              "details"
            ],
            "type": "string",
            "description": "Search Blocket listings, or fetch full details for specific ads.",
            "default": "searchAll"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword to search for, e.g. 'laptop', 'iPhone', 'IKEA soffa' or 'Volvo V60'. Ignored in details mode.",
            "default": "laptop"
          },
          "urls": {
            "title": "Ad URLs or IDs (details mode)",
            "type": "array",
            "description": "Blocket ad links such as https://www.blocket.se/recommerce/forsale/item/28292092, or bare ad IDs. Used only in details mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Min price (SEK)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Only keep ads priced at or above this amount in Swedish kronor."
          },
          "priceMax": {
            "title": "Max price (SEK)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Only keep ads priced at or below this amount in Swedish kronor."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "likeNew",
              "good",
              "ok",
              "broken"
            ],
            "type": "string",
            "description": "Filter by stated item condition. Applies to all categories except cars.",
            "default": "any"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "company"
            ],
            "type": "string",
            "description": "Keep only private sellers or only companies.",
            "default": "any"
          },
          "tradeType": {
            "title": "Ad type",
            "enum": [
              "any",
              "sell",
              "giveAway",
              "wanted"
            ],
            "type": "string",
            "description": "For sale, give away, or wanted ads. Applies to all categories except cars.",
            "default": "any"
          },
          "region": {
            "title": "Region",
            "enum": [
              "any",
              "blekinge",
              "dalarna",
              "gotland",
              "gavleborg",
              "halland",
              "jamtland",
              "jonkoping",
              "kalmar",
              "kronoberg",
              "norrbotten",
              "skane",
              "stockholm",
              "sodermanland",
              "uppsala",
              "varmland",
              "vasterbotten",
              "vasternorrland",
              "vastmanland",
              "vastraGotaland",
              "orebro",
              "ostergotland"
            ],
            "type": "string",
            "description": "Limit results to one Swedish county.",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "How Blocket should order the search results.",
            "default": "relevance"
          },
          "publishedToday": {
            "title": "Published today only",
            "type": "boolean",
            "description": "Only return ads that were published today.",
            "default": false
          },
          "yearMin": {
            "title": "Car model year (min)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Cars only: exclude vehicles older than this model year."
          },
          "yearMax": {
            "title": "Car model year (max)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Cars only: exclude vehicles newer than this model year."
          },
          "mileageMax": {
            "title": "Max mileage (mil)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cars only: maximum mileage in Swedish mil (1 mil = 10 km)."
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "any",
              "petrol",
              "diesel",
              "electric",
              "ethanol",
              "gas",
              "hybridPetrol",
              "hybridDiesel",
              "hybridGas",
              "plugInPetrol",
              "plugInDiesel"
            ],
            "type": "string",
            "description": "Cars only: filter by fuel or powertrain type.",
            "default": "any"
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "any",
              "automatic",
              "manual",
              "sequential"
            ],
            "type": "string",
            "description": "Cars only: filter by gearbox type.",
            "default": "any"
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "any",
              "convertible",
              "coupe",
              "familyVan",
              "hatchback3",
              "hatchback5",
              "estate",
              "pickup",
              "sedan",
              "van",
              "suv",
              "other"
            ],
            "type": "string",
            "description": "Cars only: filter by body style.",
            "default": "any"
          },
          "includeDetails": {
            "title": "Load full ad details",
            "type": "boolean",
            "description": "Also open each listing to add description, condition, category and seller contact details. Slower and uses more requests.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings or details records to return.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}