{
  "openapi": "3.0.1",
  "info": {
    "title": "Blocket Cars Search Scraper",
    "description": "Scrape car listings from Blocket.se — Sweden's largest marketplace — and extract 30+ fields including make, model, price, mileage, fuel type, transmission, registration number, and location. Perfect for dealers, analysts, and automotive researchers.",
    "version": "0.0",
    "x-build-id": "Bee8Yn1EvsgJDVPJm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stealth_mode~blocket-cars-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stealth_mode-blocket-cars-search-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/stealth_mode~blocket-cars-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stealth_mode-blocket-cars-search-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/stealth_mode~blocket-cars-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stealth_mode-blocket-cars-search-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": {
          "urls": {
            "title": "URLs of the Cars list urls to scrape",
            "type": "array",
            "description": "Add the URLs of the Cars list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.",
            "items": {
              "type": "string"
            }
          },
          "ignore_url_failures": {
            "title": "Continue running even if some URLs fail to be scraped",
            "type": "boolean",
            "description": "If true, the scraper will continue running even if some URLs fail to be scraped."
          },
          "keyword": {
            "title": "Keyword to search",
            "type": "string",
            "description": "Enter the keyword to search for items"
          },
          "location": {
            "title": "Location to search (Check valid location in the site's URL, e.g: https://www.blocket.se/mobility/search/car?geoLocationName=Ingelsrudvegen+900 -> use Ingelsrudvegen+900)",
            "type": "string",
            "description": "Enter the location (Check valid location in the site's URL, e.g: https://www.blocket.se/mobility/search/car?geoLocationName=Ingelsrudvegen+900 -> use Ingelsrudvegen+900) to search for items"
          },
          "lat": {
            "title": "Latitude to search",
            "type": "string",
            "description": "Enter the latitude to search for items"
          },
          "lon": {
            "title": "Longitude to search",
            "type": "string",
            "description": "Enter the longitude to search for items"
          },
          "radius": {
            "title": "Radius to search (in km, range: 200-500000)",
            "type": "string",
            "description": "Enter the radius to search for items"
          },
          "sort_by": {
            "title": "Sort Items by options",
            "enum": [
              "RELEVANCE",
              "MILEAGE_DESC",
              "MILEAGE_ASC",
              "MODEL",
              "CLOSEST",
              "PRICE_DESC",
              "PRICE_ASC",
              "PUBLISHED_DESC",
              "YEAR_DESC",
              "YEAR_ASC"
            ],
            "type": "string",
            "description": "Sort items by options"
          },
          "min_price": {
            "title": "Min price to search (in kr, range: 0-700000)",
            "type": "string",
            "description": "Enter the min price to search for items"
          },
          "max_price": {
            "title": "Max price to search (in kr, range: 0-700000)",
            "type": "string",
            "description": "Enter the max price to search for items"
          },
          "year_from": {
            "title": "Year from to search (in year, range: 1950-2027)",
            "type": "string",
            "description": "Enter the year from to search for items"
          },
          "year_to": {
            "title": "Year to to search (in year, range: 1950-2027)",
            "type": "string",
            "description": "Enter the year to to search for items"
          },
          "mileage_from": {
            "title": "Mileage from to search (in km, range: 0-20000)",
            "type": "string",
            "description": "Enter the mileage from to search for items"
          },
          "mileage_to": {
            "title": "Mileage to to search (in km, range: 0-20000)",
            "type": "string",
            "description": "Enter the mileage to to search for items"
          },
          "horsepower_from": {
            "title": "Horsepower from to search (in hp, range: 0-500)",
            "type": "string",
            "description": "Enter the horsepower from to search for items"
          },
          "horsepower_to": {
            "title": "Horsepower to to search (in hp, range: 0-500)",
            "type": "string",
            "description": "Enter the horsepower to to search for items"
          },
          "weight_from": {
            "title": "Weight from to search (in kg, range: 0-4000)",
            "type": "string",
            "description": "Enter the weight from to search for items"
          },
          "weight_to": {
            "title": "Weight to to search (in kg, range: 0-4000)",
            "type": "string",
            "description": "Enter the weight to to search for items"
          },
          "fuel_type": {
            "title": "Fuel Type to search",
            "enum": [
              "",
              "1",
              "2",
              "4",
              "2441",
              "3",
              "6",
              "8",
              "5",
              "1352",
              "1356"
            ],
            "type": "string",
            "description": "Enter the fuel type to search for items"
          },
          "body_type": {
            "title": "Body Type to search",
            "enum": [
              "",
              "7",
              "6",
              "5",
              "1",
              "2",
              "4",
              "8",
              "3",
              "10",
              "9",
              "11"
            ],
            "type": "string",
            "description": "Enter the body type to search for items"
          },
          "transmission": {
            "title": "Transmission to search",
            "enum": [
              "",
              "2",
              "1",
              "583"
            ],
            "type": "string",
            "description": "Enter the transmission to search for items"
          },
          "color": {
            "title": "Color to search",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "6",
              "5",
              "7",
              "8",
              "10",
              "11",
              "12",
              "13",
              "15",
              "14",
              "16",
              "9"
            ],
            "type": "string",
            "description": "Enter the color to search for items"
          },
          "page": {
            "title": "Page start",
            "type": "integer",
            "description": "Specify the page number to start scraping from"
          },
          "max_items_per_url": {
            "title": "Max items per URL",
            "type": "integer",
            "description": "The maximum number of items to scrape per URL."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}