{
  "openapi": "3.0.1",
  "info": {
    "title": "European Classifieds Price Compare — DE, NL, ES, IT",
    "description": "Compare second-hand prices for one search across Kleinanzeigen (DE), Marktplaats (NL), Wallapop (ES) and Subito (IT): median, quartiles, min/max and the cheapest ads per country, plus a ranking of the cheapest country.",
    "version": "0.1",
    "x-build-id": "oRt1eANXYyK5LSIxb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muira_datamasters~european-classifieds-price-compare/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muira_datamasters-european-classifieds-price-compare",
        "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/muira_datamasters~european-classifieds-price-compare/runs": {
      "post": {
        "operationId": "runs-sync-muira_datamasters-european-classifieds-price-compare",
        "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/muira_datamasters~european-classifieds-price-compare/run-sync": {
      "post": {
        "operationId": "run-sync-muira_datamasters-european-classifieds-price-compare",
        "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": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "What to price, as you would type it on a classifieds site, e.g. <code>iphone 15</code>, <code>gravel bike</code> or <code>thermomix tm6</code>. The same query is searched on every selected site, and only ads whose title contains every word of it are compared. Brand and model names work best across languages."
          },
          "category": {
            "title": "Category",
            "enum": [
              "bikes",
              "electronics",
              "phones",
              "cars",
              "furniture",
              "fashion"
            ],
            "type": "string",
            "description": "Optional. Restricts each search to the matching category on every site, which removes most accessories and unrelated ads (e.g. cases when you look for a phone)."
          },
          "countries": {
            "title": "Countries",
            "uniqueItems": true,
            "type": "array",
            "description": "Countries to compare. Each one is searched on its leading classifieds site: Germany on Kleinanzeigen, the Netherlands on Marktplaats, Spain on Wallapop and Italy on Subito. Default: all four.",
            "items": {
              "type": "string",
              "enum": [
                "DE",
                "NL",
                "ES",
                "IT"
              ],
              "enumTitles": [
                "Germany (Kleinanzeigen)",
                "Netherlands (Marktplaats)",
                "Spain (Wallapop)",
                "Italy (Subito)"
              ]
            },
            "default": [
              "DE",
              "NL",
              "ES",
              "IT"
            ]
          },
          "adsPerCountry": {
            "title": "Ads sampled per country",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of the newest matching ads are collected in each country. Before the statistics are computed, ads whose title does not contain every word of the query (ignoring case, accents and words shorter than 2 characters) are left out, then ads without a price or priced 0, then ads priced below 25% of the median of the rest (accessories, placeholders). Each row shows how many ads were collected, how many were kept (<i>sampleSize</i>) and why the others were excluded. More ads give steadier medians but cost more: every collected ad is a <i>sampled-ad</i> event, kept or not. Free plan: at most 25.",
            "default": 200
          },
          "cheapestN": {
            "title": "Cheapest ads listed per country",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the cheapest ads of each country's sample are included in its row (with title, price, city and link). 0 to leave them out.",
            "default": 5
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads below this price are left out on every site, e.g. to skip accessories and spare parts."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads above this price are left out on every site."
          },
          "condition": {
            "title": "Condition",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only ads in these conditions. Empty = all. Applied where the site shows the condition in its search results; elsewhere (e.g. Kleinanzeigen) ads are kept.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "good",
                "used",
                "for_parts"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Good",
                "Used",
                "For parts / broken"
              ]
            }
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the default to let each site use the proxy that works for it (Apify Proxy datacenter, and residential proxies in Germany for Kleinanzeigen, which blocks datacenter IPs; included in the price). You can also choose your own proxies, which are then used for every site.",
            "default": {
              "useApifyProxy": true
            }
          },
          "healthCheck": {
            "title": "Health check (for scheduled monitoring)",
            "type": "object",
            "description": "Optional. Marks the run as <b>failed</b> when a country returns an error or fewer comparable ads than <i>minSampleSize</i>. Example: <code>{\"minSampleSize\": 10}</code>."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}