{
  "openapi": "3.0.1",
  "info": {
    "title": "Blocket Scraper - New Ads & Price Drop Monitor (Sweden)",
    "description": "For resellers, flippers and car dealers: only the new Blocket.se ads, price drops and removed ads since the last run, on your schedule. Furniture, electronics, cars, boats and more by keyword, county and price in SEK. Cars add year, mileage, fuel, gearbox. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "envq0znQ70xN8twDf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~blocket-new-ads-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-blocket-new-ads-monitor",
        "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/neverempty~blocket-new-ads-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-blocket-new-ads-monitor",
        "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/neverempty~blocket-new-ads-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-blocket-new-ads-monitor",
        "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": {
          "category": {
            "title": "Category",
            "enum": [
              "all",
              "furniture",
              "electronics",
              "sports-outdoor",
              "parents-kids",
              "clothing",
              "hobby-entertainment",
              "building-garden",
              "vehicle-accessories",
              "art-antiques",
              "animals",
              "business",
              "cars",
              "motorcycles",
              "boats",
              "caravans"
            ],
            "type": "string",
            "description": "Schedule it hourly and get only new Blocket ads and price drops. Pick a category, for example Furniture & interior, Electronics or Cars. Leave Category, Keywords, Locations and Search URLs all empty to run the example: furniture in Stockholm."
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. What you would type into the Blocket search box, for example cykel, iphone 15, soffa, volvo v70. Each keyword is its own search.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (county or municipality)",
            "type": "array",
            "description": "Swedish counties (län) or municipalities (kommun), for example Stockholm, Skåne, Västra Götaland, Uppsala kommun, Lund. Several places = ads in any of them. Empty = the whole of Sweden.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional. Paste the address of any Blocket search results page with your own filters already set on blocket.se (for-sale ads, cars, motorcycles, boats or caravans). Each one is watched as its own search, always newest first.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (SEK)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest price in Swedish kronor (SEK)."
          },
          "maxPrice": {
            "title": "Maximum price (SEK)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest price in Swedish kronor (SEK)."
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Optional, for-sale ads only (not cars, motorcycles, boats or caravans). Pick one or more. Empty = any condition.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like-new",
                "good",
                "ok",
                "for-parts"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Good, gently used",
                "OK, visibly used",
                "Not working, for repair or parts"
              ]
            }
          },
          "shippingOnly": {
            "title": "Only ads that can be shipped",
            "type": "boolean",
            "description": "For-sale ads only. Return only ads the seller can ship (Blocket shipping). Empty = all ads."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "dealer"
            ],
            "type": "string",
            "description": "Return only private sellers, or only dealers and shops. Empty = any seller."
          },
          "maxResultsPerSearch": {
            "title": "Max ads per search",
            "minimum": 1,
            "maximum": 2500,
            "type": "integer",
            "description": "How many of the newest ads to read per search (1 to 2500; Blocket shows at most about 2500 per search). Empty = 50. In monitor mode this is the window checked for new ads and changes on each run."
          },
          "monitorMode": {
            "title": "Monitor mode: only new ads and changes",
            "type": "boolean",
            "description": "Schedule it hourly or daily and get only new ads and price drops since the last run. The first run returns the current ads as the starting point; later runs return only changes."
          },
          "includePriceDrops": {
            "title": "Return price drops",
            "type": "boolean",
            "description": "In monitor mode, return ads whose price went down since the last run, with the previous price. Empty = yes."
          },
          "includePriceIncreases": {
            "title": "Return price rises",
            "type": "boolean",
            "description": "In monitor mode, also return ads whose price went up since the last run. Empty = no."
          },
          "minPriceChangePercent": {
            "title": "Minimum price change (%)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "In monitor mode, return a price change only when it is at least this many percent. Smaller changes add up until they reach it. Empty = any change."
          },
          "includeRemoved": {
            "title": "Return removed ads",
            "type": "boolean",
            "description": "In monitor mode, return ads that were returned before and have gone from the list (sold or deleted). Empty = yes."
          },
          "includeUnchanged": {
            "title": "Also return unchanged ads",
            "type": "boolean",
            "description": "In monitor mode, also return already-seen ads with no change (each one is charged). Empty = no."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each schedule its own name (letters, digits, dot, dash, underscore) so separate schedules keep separate memories. Empty = default."
          },
          "resetMonitoringState": {
            "title": "Start this watch again",
            "type": "boolean",
            "description": "Forget what this watch remembered, so this run is a first check again."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}