{
  "openapi": "3.0.1",
  "info": {
    "title": "DBA.dk Scraper",
    "description": "DBA.dk, short for Den Blå Avis, is where Danish second-hand goods have been listed since the newspaper era, and its krone stays pegged to the euro, so a price series needs no FX column. Rows give price, locality, trade type and a retailer-or-private flag. No seller names or coordinates collected.",
    "version": "0.1",
    "x-build-id": "6xkYSTdcdNYgqFiw8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lowlanddata~dba-dk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lowlanddata-dba-dk-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/lowlanddata~dba-dk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lowlanddata-dba-dk-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/lowlanddata~dba-dk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lowlanddata-dba-dk-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": {
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "What to search for on DBA.dk, exactly as you would type it in the site's search box, e.g. \"cykel\" or \"iphone 15\". <b>Ignored when you paste search links or listing IDs below</b>; the run status says so. Leave it out to search a whole category."
          },
          "searchQueries": {
            "title": "More search queries",
            "type": "array",
            "description": "More searches in the same run, one per line, with the same category, place, seller type, condition and price filters. A listing found by two searches comes back once. <b>Max listings counts the whole run</b>, and the searches run in the order given. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "DBA.dk search links",
            "type": "array",
            "description": "Paste search pages copied from dba.dk: a marketplace search (dba.dk/recommerce/forsale/search) with the filters you set on the site (category, place and distance, seller type, condition, price, shipping), or a vehicle search (dba.dk/mobility/search/car, /mc, /boat, /caravan/mobilehome and the other ten) with its make, year, mileage, fuel and the rest. Each link is scraped exactly as the site shows it, so the form fields below stand down for it. <b>Search pages only</b> - for single listings use Specific listing IDs; a browse page (dba.dk/mobility/browse/...) lists categories, not listings. Up to 50.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Specific listing IDs",
            "type": "array",
            "description": "Re-check listings you already know instead of searching: one listing ID per line (the number at the end of every listing address on DBA.dk, and the <code>listingId</code> of every dataset item), or the listing's full address - marketplace or vehicle. Each one is read from its own page: title, price, town, seller type, the full description and the photos on its page, and for a vehicle its make, year, mileage, fuel and the other specifications. A bare number is looked up on the marketplace first and then among the vehicles. A listing the site still shows as sold comes back with <code>status</code> <code>sold</code> and no price; one that is gone from the site is skipped, named in the log and not billed. <b>When given, the search fields of this form are ignored</b> and the run status says which. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Limit the search to one category, written as dba.dk writes it: a main category (<code>Sport og friluftsliv</code>), a sub category (<code>Sofaer og lænestole</code>) or a product category (<code>Cykler</code>). Capitals, spaces and accents are forgiving (\"Moebler\" finds Møbler). When two categories share a name, write the path (<code>Forældre og børn &gt; Legetøj</code>); the run stops and lists the options if you do not. The easiest way to find a name is to browse dba.dk and paste the link into <b>DBA.dk search links</b>. Empty = all categories."
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "car",
              "motorcycle",
              "scooter",
              "atv",
              "caravan",
              "motorhome",
              "boat",
              "truck",
              "bus",
              "construction",
              "tractor",
              "farm-equipment"
            ],
            "type": "string",
            "description": "Search vehicles instead of the marketplace: DBA's vehicle site (DBA Mobility), one kind at a time. The vehicle fields below (make, model, year, mileage, horsepower, fuel, transmission, body type) apply to it; <b>Category and Condition do not</b>. Seller type, place, radius, price, order and dates work as for the marketplace. Leave empty to search the marketplace."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make as you would write it: <code>Toyota</code>, <code>Volkswagen</code>, <code>Mercedes-Benz</code>. Capitals and accents are forgiving. When the site has no listings for a make, the run stops and lists the makes it does have. Needs <b>Vehicle type</b>."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Cars only; needs <b>Make</b>. A model line (<code>Golf</code>, <code>C-Klasse</code>) takes every generation of it, a single model (<code>Golf VII</code>) just that one. For other vehicles put the model in Search query. When the model is not found, the run stops and lists the ones the site has for that make."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only vehicles of this model year or later. Needs <b>Vehicle type</b>."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only vehicles of this model year or earlier."
          },
          "mileageMinKm": {
            "title": "Mileage from (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles that have driven at least this many kilometres. Not every vehicle type has a mileage filter; the run stops and says so when it does not."
          },
          "mileageMaxKm": {
            "title": "Mileage to (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles that have driven at most this many kilometres."
          },
          "horsepowerMin": {
            "title": "Horsepower from",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles with at least this many horsepower (hk). Not every vehicle type has the filter; the run stops and says so when it does not."
          },
          "horsepowerMax": {
            "title": "Horsepower to",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles with at most this many horsepower (hk)."
          },
          "fuel": {
            "title": "Fuel",
            "type": "array",
            "description": "Only vehicles that run on these fuels; pick several to include any of them. Empty = any. A vehicle type only offers the fuels the site lists for it (a boat has petrol, diesel and electric); the run stops and names them when you pick one it does not.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "electric",
                "hybrid_petrol",
                "hybrid_diesel",
                "plugin_petrol",
                "plugin_diesel",
                "cng",
                "gas_petrol",
                "gas_diesel"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Electric",
                "Hybrid, petrol",
                "Hybrid, diesel",
                "Plug-in hybrid, petrol",
                "Plug-in hybrid, diesel",
                "Natural gas (CNG)",
                "Gas, petrol",
                "Gas, diesel"
              ]
            }
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Automatic or manual gearbox. Not every vehicle type has the filter (boats do not); the run stops and says so when it does not. Empty = either."
          },
          "bodyType": {
            "title": "Body type",
            "type": "array",
            "description": "Cars: only these body types; pick several to include any of them. Empty = any. A vehicle type without the filter makes the run stop and say so.",
            "items": {
              "type": "string",
              "enum": [
                "convertible",
                "coupe",
                "crossover",
                "hatchback_3door",
                "hatchback_5door",
                "van",
                "mpv",
                "pickup",
                "sedan",
                "estate",
                "suv",
                "other"
              ],
              "enumTitles": [
                "Convertible",
                "Coupe",
                "Crossover",
                "Hatchback, 3 doors",
                "Hatchback, 5 doors",
                "Van",
                "MPV",
                "Pickup",
                "Sedan",
                "Estate",
                "SUV",
                "Other"
              ]
            }
          },
          "location": {
            "title": "Place",
            "type": "string",
            "description": "Limit the search to a region (<code>Nordsjælland</code>, <code>Fyn</code>, <code>København og omegn</code>), a town (<code>Odense</code>, <code>Aarhus C</code>) or a four-digit postcode (<code>5000</code>), written as in Danish (\"Aarhus\" and \"Århus\" both work). Combine it with <b>Search radius</b> to search around a town or a postcode. When the place is not known the run stops and says so."
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 0.5,
            "maximum": 300,
            "type": "number",
            "description": "Search this far around the town or postcode in <b>Place</b> (0.5 to 300 km). Needs a town or a postcode, not a region. Empty = the place itself."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private sellers only, businesses (dealers) only, or both.",
            "default": "any"
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Only listings in these conditions, the five the site offers; pick several to include any of them. Empty = any condition. Listings without a stated condition are left out when you pick one.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like-new",
                "good",
                "worn",
                "needs-repair"
              ],
              "enumTitles": [
                "New, unopened",
                "Like new",
                "Used, good condition",
                "Used, visible wear",
                "Needs repair"
              ]
            }
          },
          "priceMin": {
            "title": "Minimum price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings costing at least this many Danish kroner."
          },
          "priceMax": {
            "title": "Maximum price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings costing at most this many Danish kroner."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "date",
              "price_asc",
              "price_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Order of results: date (newest first, best for monitoring), price_asc, price_desc, or relevance. A pasted link keeps its own order.",
            "default": "date"
          },
          "postedAfter": {
            "title": "Posted after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2})?(\\.\\d+)?(Z|[+-]\\d{2}:?\\d{2})?)?$",
            "type": "string",
            "description": "Only include listings posted on or after this date. With newest-first sorting the run stops early once older listings are reached. <b>Format: <code>YYYY-MM-DD</code></b> (for example <code>2026-09-08</code>) or a full ISO timestamp such as <code>2026-09-08T14:30:00Z</code>. Slash dates like <code>08/09/2026</code> are refused on purpose: they are read as September in Europe and August in the United States, and this actor will not guess which you meant."
          },
          "postedBefore": {
            "title": "Posted before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2})?(\\.\\d+)?(Z|[+-]\\d{2}:?\\d{2})?)?$",
            "type": "string",
            "description": "Only include listings posted on or before this date. <b>Format: <code>YYYY-MM-DD</code></b> (for example <code>2026-09-08</code>) or a full ISO timestamp such as <code>2026-09-08T14:30:00Z</code>. Slash dates like <code>08/09/2026</code> are refused on purpose: they are read as September in Europe and August in the United States, and this actor will not guess which you meant."
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings. Free-plan runs are capped at 5 items. The form starts at 25 for a cheap first run - that is the form's prefill, not a cap on your plan; clear it to use the default of 1000.",
            "default": 1000
          },
          "scrapeDetails": {
            "title": "Fetch details",
            "type": "boolean",
            "description": "Read each listing's own page for the seller's full free-text description and the complete photo set, neither of which the search results carry. This makes one extra request per listing, so a run is slower and costs one more page fetch each. The seller-profile section is never read - no name or profile contact reaches the output. Leave off for a fast price-and-photo sweep.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. Keep Apify proxy enabled.",
            "default": {
              "useApifyProxy": true
            }
          },
          "reportFailures": {
            "title": "Anonymous reports to the developer",
            "type": "boolean",
            "description": "Only two things are sent to the developer. When a run fails: the actor name and build, an error category, the truncated error message and a one-way hash of your input. At the start of every run: the actor name, the build, a one-way hash of your Apify account id and whether the account is on a paid Apify plan. <b>Your input, your results, your name and your account id itself are never sent.</b> Turn this off and nothing is sent; the actor behaves the same.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}