{
  "openapi": "3.0.1",
  "info": {
    "title": "Blocket, FINN & DBA Car Scraper — Nordic Used Car Listings",
    "description": "Scrape used and new car ads from Blocket (Sweden), FINN (Norway) and DBA (Denmark) in one run: make, model, year, mileage, price, fuel, gearbox, dealer, VIN, location and photos. Filter by make, model, price, year, mileage and fuel. No login.",
    "version": "0.1",
    "x-build-id": "xzWhe7alP7rip0NU4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~nordic-cars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-nordic-cars-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/yugenox~nordic-cars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-nordic-cars-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/yugenox~nordic-cars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-nordic-cars-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": {
          "countries": {
            "title": "🌍 Countries",
            "type": "array",
            "description": "Which marketplaces to search: SE = Blocket (Sweden), NO = FINN (Norway), DK = DBA (Denmark). Leave empty for all three.",
            "items": {
              "type": "string",
              "enum": [
                "SE",
                "NO",
                "DK"
              ],
              "enumTitles": [
                "Sweden — Blocket",
                "Norway — FINN",
                "Denmark — DBA"
              ]
            },
            "default": [
              "SE",
              "NO",
              "DK"
            ]
          },
          "make": {
            "title": "🚗 Make",
            "type": "string",
            "description": "Car make, e.g. \"Volvo\", \"Tesla\", \"Volkswagen\" (VW and Mercedes also work). Matched against each site's own make list."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Optional model, e.g. \"XC60\", \"V60\", \"Model Y\", \"Golf\". \"V60\" also includes \"V60 Cross Country\" (the site's model family). A model the site doesn't list is searched as text."
          },
          "keyword": {
            "title": "🔎 Keyword",
            "type": "string",
            "description": "Optional free-text search inside the car ads, e.g. \"dragkrok\" (tow bar), \"AWD\", \"Recharge\"."
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of car ads for the whole run, shared fairly between the countries. 0 = everything (each site shows up to 2,500 ads per search).",
            "default": 100
          },
          "priceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in the local currency (SEK, NOK or DKK)."
          },
          "priceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in the local currency (SEK, NOK or DKK)."
          },
          "yearMin": {
            "title": "Model year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year, e.g. 2018."
          },
          "yearMax": {
            "title": "Model year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year."
          },
          "mileageMinKm": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage in kilometres (converted to Swedish mil for Blocket)."
          },
          "mileageMaxKm": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage in kilometres (converted to Swedish mil for Blocket)."
          },
          "fuel": {
            "title": "Fuel",
            "type": "array",
            "description": "Only these fuel types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "electric",
                "hybrid_petrol",
                "hybrid_diesel",
                "plugin_petrol",
                "plugin_diesel",
                "cng",
                "ethanol",
                "hydrogen"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Electric",
                "Hybrid (petrol)",
                "Hybrid (diesel)",
                "Plug-in hybrid (petrol)",
                "Plug-in hybrid (diesel)",
                "Gas (CNG)",
                "Ethanol (E85)",
                "Hydrogen"
              ]
            }
          },
          "transmission": {
            "title": "Gearbox",
            "enum": [
              "any",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Automatic or manual.",
            "default": "any"
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealers only, private sellers only, or both.",
            "default": "any"
          },
          "condition": {
            "title": "Ad type",
            "enum": [
              "any",
              "used",
              "new",
              "leasing",
              "auction"
            ],
            "type": "string",
            "description": "Used cars for sale, new cars for sale, leasing offers or auctions (auctions: FINN only).",
            "default": "any"
          },
          "region": {
            "title": "📍 Region",
            "type": "string",
            "description": "Optional county / region as the site names it, e.g. \"Stockholm\", \"Skåne\" (SE), \"Oslo\", \"Vestland\" (NO), \"Fyn\", \"Østjylland\" (DK). Countries where the region doesn't exist are skipped."
          },
          "postedToday": {
            "title": "Only ads new today",
            "type": "boolean",
            "description": "Only ads published today — handy for a daily schedule.",
            "default": false
          },
          "startUrls": {
            "title": "🔗 Search links",
            "type": "array",
            "description": "Optional: paste car search links from Blocket, FINN or DBA (…/mobility/search/car?…) with your filters already set on the site. When given, they replace the search fields above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (included in every Apify plan) is used by default.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}